putch and scroll

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Tom

putch and scroll

Post 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 )
Tom

Re:putch and scroll

Post by Tom »

ok, have putch working, but how do I scroll down, like DOS?
gtsphere

Re:putch and scroll

Post 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!
frank

Re:putch and scroll

Post 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/ :))
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:putch and scroll

Post 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.
Post Reply