Text input

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
Willy

Text input

Post by Willy »

Okey, now that I have my printing thingy ready, I would need some help with the text input... well to be honest I have *no* idea how it should be done :-\
If you could point me some tuts that would be nice :) ,
but any other info will also be very useful.
frank

Re:Text input

Post by frank »

text input? you mean keyboard input?
Willy

Re:Text input

Post by Willy »

Well, yes thats what I 'm looking for.... :)
frank

Re:Text input

Post by frank »

in al,0x60
or if you'd like to use the win key
in ax,0x60

(ms probably made it 2 bytes 'cause they did want other os-es to use that key) :P

al or ax then contains the scancode.
for example :1 = esc
but that differs on every keyboard...
make some kind of keyboard modules :)


(you can find a list of scancodes at osd (search at google: osd keyboard)
K.J.

Re:Text input

Post by K.J. »

Umm... actually, unless you want to use BIOS ints, you need to use the kbd's IRQ(IRQ 1). It's not really easy to do, mostly because keyboard scancodes vary in legth drastically. A doc on keyboard scancodes, and getting the scancodes is here:
http://osdev.neopages.net/docs/kbd.php

K.J.
Post Reply