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); }
Re: Keyboard input
Thank you for that, now keyboard is working.
Developing U365.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing
OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing
OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.