4 ms·
I am not convinced one very detailed spec describing such details you mention even exists. I guess if vim, emacs, and less work correctly you are close to done.
by usr1106 3y ago
I am not convinced one very detailed spec describing such details you mention even exists. I guess if vim, emacs, and less work correctly you are close to done. Screen and tmux are others coming to mind.
All of them are open source, why don't you check how they end up emitting escape sequences? My guess would be through abstraction via something like terminfo/termcap. Ncurses might be another place to look at.
Don't forget about dynamic resizing from day one. That won't be mentioned in old documents from the VT100 times. Don't remember which VT was the first one that could be switch to 132(?) characters a line.
- hnlmorg 3y agoFunny enough, I’ve been using tmux as my benchmark. Good idea about testing the other tools. I found BSD ‘top’ particularly troublesome too because that uses alternative character sets to do the line art. The dynamic resizing is something I’ve decided to relegate to later in the project. Hopefully that decision doesn’t bite me and m the arse but I haven’t a clue how I’d approach that problem right now