Page 1 of 1

Veiw Ports

Posted: Tue May 30, 2006 8:36 am
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

Posted: Tue May 30, 2006 5:41 pm
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"