I wonder if anyone's ever written a terminal capable of syntax-highlighting text displayed on the screen, in case the program you're using is writing complex structured text but didn't color-annotate it.
(The funny thing about this screenshot is that it *looks* incredibly offputting and overwhelming, but if you look very carefully you'll realize it's just giving the backtrace for an anyhow!, in other words, the thing to do is ignore it and look above it for the human-readable message that anyhow will have printed. In the case of THIS rust_backtrace, the "error" turned out to be "the program is working perfectly, and error handling in the program correctly caught an error in the input")
@mcc If you ever deal with errors like this in front of non-programmers it looks like witchcraft to them
They don't know all we're doing is unfocusing our eyes and scrubbing for the right text indent shape
@mcc The terminal shouldn't do it, it's just meant to show the text. A shell could absolutely do it, but then that turns into a layering violation and has the potential to cause a massive slowdown
@sackofbones "shouldn't" and "could" are *very* distant concepts
@ireneista i thought Powershell shipping output around as CLR objects was a really good idea :(
@mcc @ireneista I was excited for nushell to be "what if PowerShell, but good," and then...
https://slopscan.ava.pet/repo/https%3A%2F%2Fgithub%2Ecom%2Fnushell%2Fnushell%2F/main
@mcc not to my knowledge but that seems like a rad idea, actually
@mcc i am pretty sure i could extract the syntax highlighting engine myself and others worked on in nano (originally as part of the quinn fork) to devise a program which can be piped through to do this
@ariadne that's very interesting. entirely out of curiosity, would that code happen to be GPL?
i was sincerely thinking last week about writing a meld/vimdiff-like inside nano, due to vimdiff being too hard for me (and i'm even a vim user)
@mcc yes, everything in nano is GPL.
@c0dec0dec0de @ryanc @ariadne If we had the nano syntax highlighting, we could maybe just have a button that's like "look at the characters visible on the screen right now… imagine that was copypasted into a text document… do any of the syntax highlighting plugins match it?"
@mcc I'm sure an OpenType font could be created that parsed the output. I mean, if there's an OTF that goes from hex to Z80 opcodes ...
I also said *could*, definitely not *should*
@mcc future attack vectors will be tele^h^h^hvibe coded
@mcc hmmmm CLIM presentation types are kind of coming at the same thing from the other direction