188 reputation
6
bio website
location Vaasa, Finland
age 23
visits member for 1 year, 3 months
seen Jan 26 at 21:06
stats profile views 4

Desire to understand through experience and knowledge which are gained through practical experimentation. The more I know, the more lost I feel.


Jan
26
awarded  Editor
Jan
26
revised How to directly read keyboard input in real-time?
Formating
Jan
21
awarded  Citizen Patrol
Jan
14
awarded  Teacher
Jan
14
answered How can I change locale/encoding to avoid getting weird characters in terminal?
Jan
14
comment How can I change locale/encoding to avoid getting weird characters in terminal?
Change the character translation in PuTTY to UTF-8.
Oct
8
awarded  Popular Question
Jun
24
comment When should I keep debugging symbols in kernel modules?
+1 for mentioning security concerns.
Jun
24
awarded  Supporter
Jan
24
awarded  Scholar
Jan
24
accepted How to directly read keyboard input in real-time?
Jan
24
comment How to directly read keyboard input in real-time?
Thank you for this! I can set the tty(?) to raw mode before running the program and set it to sane afterwards, which works around the problem. Not very conveinient or portable and incurs ~20 byte overhead(uncompressed) but definitely better than I had thought before! It seems that using ioctl + TCSETSW requires storing the termios struct which is 57 bytes, which obviously is very costy for me in this case. I need to experiment with this a bit, but so far I found a "good enough" solution for my needs. Thanks again, saved my day. :)
Jan
24
asked How to directly read keyboard input in real-time?