Hacker News new | ask | show | jobs
by Kenji 2666 days ago
I haven't inherited it but the C source of the simple terminal st is really really clean and good: https://st.suckless.org/

I highly recommend it, it's only a couple thousand lines so it's worth the read. Never before have I seen such readable and clean C code. I read it and then implemented my own terminal emulator from scratch, which we now use on an embedded platform at work to debug problems that cannot be debugged using a PC (for example because Ethernet and serial connections to the device are broken).