termios sets the stdin terminal to raw make sure to use read/write syscalls, these are non blocking, and will not mess up the output of things. now all line discipline is handled by the pty -------------------------------=[Controlling TTY]=------------------------------ Forked bash process makes itself a session leader, then sets the pty as the controlling tty It now acts as a bash ----------------------------------=[Resizeing]=--------------------------------- SIGWINCH hook, very simple -----------------------------------=[Testing]=---------------------------------- fg/bg ctrl-c ctrl-z all works cmus, bcmus, all work vitetris telnet star wars pageup/down doesn't work when im is on vim starts in vreplace mode for some reason -------------------------------=[Useful Commands]=------------------------------ ps l tty infocmp