Re:Build your own Terminal using Qt
by majewsky on Wednesday October 25, 2017 @04:10AM
(#15548326)
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.
[ Parent
| on HN ]
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.