Re:The Terminal Escape Sequences Ocean Is Deep and Dark
by EthanHeilman on Wednesday January 18, 2023 @09:52AM
(#34427284)
r0c is a really cool project. I should dig through this codebase and see what tricks I can learn.
Another fun one was asking the terminal how big it is [2] (and also figuring out the modem speed as a side effect) -- especially when a major telnet client fails as soon as the width is above 256 characters [3]...
Both of these would have been simple if the terminal is a local one, but the fun part is dealing with an unknown implementation at the other end of tcp - and the fact that that's even possible :-)
[1]: https://github.com/9001/r0c/blob/master/r0c/ivt100.py#L1651-...
[2]: https://github.com/9001/r0c/blob/master/r0c/ivt100.py#L625-L...
[3]: https://github.com/9001/r0c/commit/5e7d64d7f81cab3350259b0cd...