my kingdom for a cross-platform terminal library in pure Rust
-
Show this thread
-
Replying to @steveklabnik
I've literally tried to write this except not in rust (mostly python at the points I tried) and then realized that HOO BOY terminals are complicated and then I just mostly give up
4 replies 0 retweets 3 likes -
Replying to @homomculus @steveklabnik
They're rather not if you're not trying to support the gun-nut MRA ex-maintainer's fetish for 70s hardware. Basically everything remotely relevant is a vt220 superset & coding just to that (+fun stuff like hicolor) is easy.
1 reply 0 retweets 1 like -
IOW terminals look hard because of an epic YAGNI fail.
1 reply 0 retweets 0 likes -
Replying to @RichFelker @steveklabnik
I mean, the Windows console prior to a certain build (15-something I think?) of Windows 10 is most definitely not a VT220 superset, though I believe it *does* support a very small subset even on the older console host But for most functions it has a distinct non-escape-code API.
1 reply 0 retweets 1 like -
You can support just about everything else that way for sure, even if you might be missing some non-essential convenience features, but Windows pre-10 is still a pretty significant potential userbase, even for a terminal-based library.
1 reply 0 retweets 1 like -
Replying to @homomculus @steveklabnik
Just put a separate terminal emulator process in between your actual program and the Windows console window.
1 reply 0 retweets 0 likes
Just found this - looks like MS is conceding doing the portable-everywhere-else thing is the right way forward:https://blogs.msdn.microsoft.com/commandline/2018/08/02/windows-command-line-introducing-the-windows-pseudo-console-conpty/ …
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.