Re:Show HN: GNUplot with sixel – Mix images, ANSI colors and...
by sprash on Friday March 29, 2019 @11:54AM
(#19522725)
With a serialized GPU commands the remote host does not need a GPU since everything is rendered locally. Only the machine running the terminal emulator needs one. And this would also work within screen or tmux if they don't meddle with unknown escape codes.
[ Parent
| on HN ]
Re:Show HN: GNUplot with sixel – Mix images, ANSI colors and...
by chubot on Friday March 29, 2019 @12:08PM
(#19522863)
Even if they don't mess with unknown escape codes, wouldn't they have to know how wide what is being drawn is?
I ran into this issue while writing a shell. All shells use wcwidth() to determine the width of a unicode character. I think all terminals need that information too, and they would also need the analogous information for unknown escapes.
Re:Show HN: GNUplot with sixel – Mix images, ANSI colors and...
by sprash on Friday March 29, 2019 @12:29PM
(#19523093)
It will certainly mess up multi window screen/termux arrangements. The dimensions of the current terminal can be obtained easily. However the position can not. And it will still be possible to draw over other windows.
Re:Show HN: GNUplot with sixel – Mix images, ANSI colors and...
by csdvrx on Friday March 29, 2019 @12:07PM
(#19522846)
With the history of ^O bracketed paste handling exploits and the more recent spectre/meltdown exploits, I'm not sure serialized GPU rendering is such a bright idea.
If the concern is the speed of the scrollback on device rendering the content, wouldn't adding GPU support to say mlterm be enough?
Anyway, if someone has a desperate need of graphical output inside a terminal, this is an actual solution working with little risks and default tools: I only recompiled gnuplot with the proper compile-time flag, exported the GNUTERM variable, and voila!!