summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorHaoran S. Diao (刁浩然) <0@hairydiode.xyz>2025-09-05 23:33:59 -0700
committerHaoran S. Diao (刁浩然) <0@hairydiode.xyz>2025-09-05 23:33:59 -0700
commit33c523fdef955c60fb81ccf3e30b8eace12933c9 (patch)
tree8c01ced33af089f64bb845710432aec996038749 /README
tty intercept works
Diffstat (limited to 'README')
-rw-r--r--README25
1 files changed, 25 insertions, 0 deletions
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