Close

Graphics in an xterm

A project log for Silly software wishlist

Motivation to do some software projects by writing them down.

lion mclionheadlion mclionhead 12/12/2018 at 23:170 Comments

The lion kingdom originally wanted just a command line audio editor. It would draw the waveform in ASCII or embed monochrone graphics in the xterm, using the regis protocol or custom character sets.


XTerm does draw graphics in the same window as the text. It has to be compiled using configure --enable-regis-graphics


Then it has to be run as xterm -ti vt340


printf("\eP0p"
"S(C1)"
"S(M3(R100G0B0))"
"P[300,50]"
"V(B),[+100,+0],[+0,-10],"
"[-100,+0],(E)"
"P[300,200],"
"F(C[+100])"
"\e\\");


draws some simple graphics.

You might use this to have an embedded system draw graphics through a serial port.  

It should be noted the regis protocol doesn't work inside the screen program.  That wraps stdout in some other codes.

Discussions