Put your terminal in raw mode and then use this https://www.tutorialspoint.com/c_standard_library/c_function_getc.htm
Perhaps this is the best guide for you: https://viewsourcecode.org/snaptoken/kilo/02.enteringRawMode.html
Depends on how simple you mean
That will still block until something is entered
Обсуждают сегодня