Veiw Ports

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!
Post Reply
linster
Newbie
Posts: 2
Joined: Tue May 30, 2006 8:31 am

Veiw Ports

Post by linster »

Okie dokie. I need to know how to put a dos prompt in a window (not a fake one!). I was thinking of using a Veiw port, and input statements, because i know that you could put bitmaps in veiw ports, but i was wondering how you would do the same with a dos prompt. Here is the veiwport code i used for loading bitmaps in Linster OS:

Veiw(40, 40)-(70, 70)
Load640 "backround.bmp"
Veiw
RyanKelly
Coder
Posts: 48
Joined: Sun Jan 22, 2006 6:40 pm
Contact:

Post by RyanKelly »

Unfortunately, the VIEW setting doesn't effect the location of character output.

You could implement your own screen buffer and cursor position.

As for the DOS screen, you could display a prompt, use INPUT to get the command line. Then shell the command with the output redirected to a temporary file, then read the file into your custom screen buffer.

INPUT com$
com$=com$+ " >output.tmp"
Post Reply