I have some code (attached below as a minimal example) that switches the terminal to raw mode (disabling the echoing of pressed keys). This works fine using tcsetattr() from termios.h, both on Linux ...
* get it directly from our copy. * Right now only x86 is being supported for beautifying ioctl args * in 'perf trace', see tools/perf/trace/beauty/Build and builtin ...