Re:Interactive command line HTTP inspector written in Go
by robert_tweed on Saturday February 04, 2017 @09:16PM
(#13570427)
If you mean the general principle of this kind of pseudo-GUI in text mode, look into codepage 437 [1]. It's possible to do more advanced stuff with custom glyphs [3], but it doesn't look like this does anything like that - it generally requires direct hardware access to modify the font.
This was a pretty common technique in 90s DOS programs, but it can be tricky to get working cross platform over a serial terminal. The library you found seems to rely on termbox [2] for that.
[1] https://en.m.wikipedia.org/wiki/Code_page_437
[2] https://github.com/nsf/termbox-go
(edit)
[3] I thought Norton Commander did this, but I was mistaken - it just uses codepage 437. It was Norton Utilities [4].
[4] https://en.m.wikipedia.org/wiki/VGA-compatible_text_mode
Re:Interactive command line HTTP inspector written in Go
by nitrogen on Sunday February 05, 2017 @03:03PM
(#13574251)
For UNIX-style terminals, there are also VT-nnn (can't remember the nnn) line drawing commands, and Unicode line drawing characters.
My favorite DOS app that modified the VGA font was Impulse Tracker. It could actually draw oscilloscopes in text mode, and its source code is available.
Re:Interactive command line HTTP inspector written in Go
by PerryCox on Sunday February 05, 2017 @12:43PM
(#13573460)
Non mobile links:
Re:Interactive command line HTTP inspector written in Go
by eddieroger on Saturday February 04, 2017 @08:50PM
(#13570319)
You found the library. Looks like simple math stuff. Neat.
EDIT: Actually it seems to be a library: https://github.com/jroimartin/gocui but the question still stands!