Page 1 of 1
putch and scroll
Posted: Sat Oct 05, 2002 8:54 pm
by Tom
Hello, I have two questions.
First:
How do I handel '/'' and '/"' and '//' in my putch?
Also, how do I scroll down on the screen?
( in text mode 80x25 ).
Thank you, ( also look at my message about handeling keys, have another question there )
Re:putch and scroll
Posted: Sat Oct 05, 2002 9:12 pm
by Tom
ok, have putch working, but how do I scroll down, like DOS?
Re:putch and scroll
Posted: Sat Oct 05, 2002 9:37 pm
by gtsphere
i was just wondering, did you get a keyboard handler working that is able to do scancode -> ascii keys, so i could type and it prints it on the screen (like echoing)? or something similar, thanks in advance!
Re:putch and scroll
Posted: Sun Oct 06, 2002 3:03 am
by frank
one possibility is reading all the chars in the videomemory and put them 25 back or front. (scroll down or up)
Like I did....
(see the nitix source :
http://www.anemaet.nl/nitix/ )
Re:putch and scroll
Posted: Mon Oct 07, 2002 12:04 am
by Pype.Clicker
your putch function do not need to worry about \' \" and \\ as they are syntactic sugar for the compiler. The very same way, when you type \n at the end of your string, your binary object file will *not* contain any \ or n character but instead a new-line character sequence (0x0a or 0x0d: can't remember which one
the very same way, putch('\'') will receive a single quote character.