Using TERMIOS with Go and macOS

4th August 2024

TERMIOS is concept that describes general terminal line discipline. More directly it controls how a terminal handles input and output. In terms of code it is also a data structure in the termios.h header file. Usually you would interact with it in C with tcgetattr and tcsetattr functions.

Using TERMIOS in Go is mostly the same in terms of concepts, but different enough and lacking in detailed documentation to make the task difficult.