ReGIS

From SizeCoding
Revision as of 02:07, 15 February 2024 by Popolon (talk | contribs) (Created page with "'''ReGIS''' is a vector graphics markup language made by DEC for it's VT125, VT230, VT240/241 and above terminals. commands can be sent to it by serial or any other text/tty c...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

ReGIS is a vector graphics markup language made by DEC for it's VT125, VT230, VT240/241 and above terminals. commands can be sent to it by serial or any other text/tty connexion. Depending on terminal resolution and features changes

  • VT125

Use it on Linux distros

Xterm supports it. Arch Linux and derivative support it from scratch. It must be recompiled on Debian and derivatives, with the --enable-regis-graphics option. Display will change depending on used VT emulation.

Launch xterm like this to have more capabilities:

xterm +u8 -geometry 132x50 -ti vt340 -tn vt340 /bin/bash

then launch the script or connect by one of the available serial tools (screen, minicom, etc...) to the hw producing the markup.

The markup is send to terminal prefixed, after the documentation by 0x1b 0x50 0x32 x70 (ESC + 'P2p', but on xterm implementation at least, any single digit decimal number instead of 2 works). It is also suffixed by 0x1b 0x5c (ESC + '\', standard VT endline sequence).

Implementation in Bash:

echo -e "\x1bP2p${command}\x1b\\"

in Lua:

io.stream(string.char(0x1b).."P2p"..command..string.char(0x1b,0x5c))

Don't forget to flush the stream in tests with system based languages, to avoid a buffer filling few seconds wait :).