diff options
author | Haoran S. Diao (刁浩然) <0@hairydiode.xyz> | 2025-09-05 23:33:59 -0700 |
---|---|---|
committer | Haoran S. Diao (刁浩然) <0@hairydiode.xyz> | 2025-09-05 23:33:59 -0700 |
commit | 33c523fdef955c60fb81ccf3e30b8eace12933c9 (patch) | |
tree | 8c01ced33af089f64bb845710432aec996038749 /README |
tty intercept works
Diffstat (limited to 'README')
-rw-r--r-- | README | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -0,0 +1,25 @@ +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 + +-------------------------------=[Useful Commands]=------------------------------ +ps l +tty +infocmp |