Keyboard input
-
- Member
- Posts: 119
- Joined: Tue Jan 20, 2015 9:01 am
- Libera.chat IRC: glauxosdever
Re: Keyboard input
I think it's a good idea, thank you.
Re: Keyboard input
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)
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
- Alan Kay
- Alan Kay
Re: Keyboard input
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); }
- abcdef4bfd
- Member
- Posts: 492
- Joined: Fri Apr 03, 2015 9:41 am
Re: Keyboard input
Thank you for that, now keyboard is working.