Re: Keyboard input
Posted: Sun Apr 05, 2015 3:42 am
I think it's a good idea, thank you.
char key
If you are following the Bare Bones tutorial, this code will crash. You don't look like someone who understands even C.terminal_writestring(key)
This wouldn't even compile because "!oldkey" is not an l-value.catnikita255 wrote:There's a code:Code: Select all
char oldkey; char key; for(;;) { oldkey = key; key = inb(60); if(!oldkey = key) terminal_writestring(key); }