-
|
There is the simple prog rewrite by sample2: kernel.cpp:
if add this line: so is there some way to let all the key works fine,and write the key typed in char[][]?I know I shoud make a int[][] to track the movement of the mouse Thanks! kernel.h and main.cpp stay the same: kernel.h: main.cpp: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
To switch off canonic mode you can use: |
Beta Was this translation helpful? Give feedback.




CConsolein canonic mode is a line editor, you cannot move on the whole screen with it. Some special keys (e.g. cursor up and down) have no function in the line editor, but are also not filtered out. There is no buffer, which holds the character codes for all character on screen. So you cannot read them back. If you want this, you have to implement it by yourself. You should switch the console to non-canonic and non-echo mode for this purpose.