Hacker News new | ask | show | jobs
by majewsky 3162 days ago
Yeah, I too was hoping for something substantital, e.g. a description of how to allocate and manage a pseudo-terminal (especially since I'll be needing that for a project of mine quite soon). I'll probably be looking at the st(1) source code, then.
1 comments

I was experimenting with pty's just the other day. I needed only I/O and window size updates, so it turned out fairly succinct:

https://github.com/sjmulder/trickle/blob/master/tritty.c

I'm not at all an experienced Unix programmer though so take it with a grain of salt. Would be happy to hear about any defects or possible improvements.