3 ms·
That's an awesome tool. I wish it would output to the terminal, too. Thinking about that, as an exercise in Unix philosophy, how would you add hex output to su
by sjmulder 9y ago
That's an awesome tool. I wish it would output to the terminal, too.
Thinking about that, as an exercise in Unix philosophy, how would you add hex output to such a tool? One could add a -x option or such that would output like xxd(1), but then you might want to go and implement more of xxd's options like maximum line width and such, leading to the duplication that composition of tools is supposed to prevent. But how would you make it composable? Either gzthermal would need to understand xxd's output, or xxd would need to know about terminal escape codes to properly map the coloured output.