Today I learnt about crossterm, a Rust crate for interacting with terminals in a cross-platform way: https://docs.rs/crossterm/latest/crossterm/
It handles things like is_tty() and terminal::size(), which are hard to support correctly in both Linux and Windows. I might port difftastic.
miniblog.
Related Posts
Ooh, today I learnt that terminals support italics! Difftastic now uses italics for comments.
Bold/italics are great because they're still visible even when you're showing text in green or red. They compose nicely :)
I've released difftastic 0.18! Lots of good stuff in this release:
* Better display: a ton of bugfixes and added support for light terminals
* Improved CLI: better --help and discoverable options
* Small performance and parsing (OCaml, Lisp) fixes



