Difference between revisions of "ReGIS"
(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...") |
|||
Line 1: | Line 1: | ||
'''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. | '''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. | ||
+ | |||
+ | == Overview of the features == | ||
Depending on terminal resolution and features changes | Depending on terminal resolution and features changes | ||
− | * VT125 | + | * VT125 768×240 pixels, 2 bitplans |
+ | * VT230 800×480 pixels, 2 bitplans | ||
+ | * VT240/VT241 768×480 pixels, 4 bitplans | ||
+ | |||
+ | There is "shading" management allowing to mix simple patterns for fill or border, | ||
+ | |||
+ | It supports curves with polynomial interpolation, by default with only one point + a value, it builds a circle. | ||
+ | |||
== Use it on Linux distros == | == Use it on Linux distros == |
Latest revision as of 02:15, 15 February 2024
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.
Overview of the features
Depending on terminal resolution and features changes
- VT125 768×240 pixels, 2 bitplans
- VT230 800×480 pixels, 2 bitplans
- VT240/VT241 768×480 pixels, 4 bitplans
There is "shading" management allowing to mix simple patterns for fill or border,
It supports curves with polynomial interpolation, by default with only one point + a value, it builds a circle.
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 :).