From 33c523fdef955c60fb81ccf3e30b8eace12933c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Haoran=20S=2E=20Diao=20=28=E5=88=81=E6=B5=A9=E7=84=B6=29?= <0@hairydiode.xyz> Date: Fri, 5 Sep 2025 23:33:59 -0700 Subject: tty intercept works --- README | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 README (limited to 'README') diff --git a/README b/README new file mode 100644 index 0000000..d5eb34e --- /dev/null +++ b/README @@ -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 -- cgit v1.1