233 reputation
39
bio website
location Kuopio, Finland
age 24
visits member for 2 years, 11 months
seen Nov 4 at 17:02

A curious, self-admitted Rust fanboy with an itch for low-level programming topics.


Sep
24
awarded  Autobiographer
Jun
25
awarded  Enlightened
Jun
25
awarded  Nice Answer
Dec
19
awarded  Yearling
Sep
14
awarded  Student
Jun
8
awarded  Notable Question
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?