ReGIS

ReGIS

ReGIS, short for "Remote Graphic Instruction Set", was a vector graphics markup language developed by Digital Equipment Corporation (DEC) for later models of their famous VT series of computer terminals. ReGIS supported rudimentary vector graphics consisting of lines, circular arcs, and text. Initially available for specially modified versions of the VT100 (the "GIGI" VT125), ReGIS was also implemented in the "40" versions of follow-on terminal designs, the VT240/241, VT340/341, and finally the VT525.

Description

ReGIS consisted of five primary drawing commands and a selection of status and device control commands. ReGIS mode was entered by specifying the escape code sequence P0p, and exited with . The digit in the first sequence was optional and specified a mode, 0 was the default and picked up drawing where it left off, 1 reset the system to a blank slate, and 2 and 3 were the same as 0 and 1, but left a single line of text at the bottom of the screen for entering commands. The sequence P is the generic "Device Control String" (DCS) used in the VT series of terminals, and is also used for a variety of other commands.

All drawing was based on an active pen location. Any command that moved the pen left it there for the next operation, similar to the operation of a mechanical plotter. The coordinate system was 0 to 799 in the X axis, and 0 to 479 in Y, with 0,0 in the upper left. Oddly, the Y coordinates were "folded" so odd and even coordinates were the same location on the screen. The coordinate system could also be set by the user.

Coordinates could be pushed or pulled from a stack, and every command allowed the stack to be used as a parameter, the "b" parameter pushed the current coordinates on the stack, "e" popped it back off again. Coordinates could be specified in absolute or relative terms;

[200,100] is an absolute position at x=200, y=100 [+200,-100] is a relative positon at x=current X+200, y=current Y-100 [200] is absolute x=200, y=unchanged (same as [200,+0] ) [,-100] is relative, x=unchanged, y=currentY-100

There were four main drawing commands and three control commands;

P "Position", move the pen V "Vector", draw a line C "Curve", draw a circle (C) or arc (A) F "Fill", draws a filled polygon T "Text", output the following string of text S "Screen", a catch-all command for setting a wide variety of modes R "Report", outputs current status W "Write", sets the pen parameters L "Load", loads an alternate character set @ "Macrograph", see below

Each of these commands used the various coordinate modes in different ways, and some had additional parameters that were enclosed in parentheses. Commands could be followed by one or more parameters, allowing continued drawing from a single command. The interpreter was not case sensitive.

Some ReGIS terminals supported color, using a series of registers. These could be set with the s command using a variety of color input styles. s(m3(r100g0b0)) sets color register ("map") 3 to "r"ed using the RGB color system, while s(m3(h120l50s100)) does the same using the HSV system. The W command likewise set a wide variety of different styles, mostly for masking, fills and brushes.

Finally, ReGIS allowed commands to be stored into a "macrograph" and then recalled using the @ operator. Up to 10,000 characters of code could be stored in the macros, each named with a single letter.

Sample

P0p S(E)(C1) P [100,440] V(S), [+100,+0] , [+0,-10] , [+0,+10] ,(E) P [500,300] ,F(C [+100] )

This code enters ReGIS mode and uses the S command to erase the screen with (E) and then turns on the visible cursor with (C1). P [100,440] moves the pen to 100,440 absolute. V(S), [+100,+0] , [+0,-10] , [+0,+10] ,(E) draws a series of liens, first pushing the current pen location onto the stack with (S), then drawing three lines using relative coordinates, and then using (E) to pop the previously saved location off the stack and draw to it. The result is a rectangle 100 by 10 pixels in size.

P [500,300] ,F(C [+100] ) then moves to a new location, and uses the "F"ill command to wrap a "C"ircle. The fill command could wrap any number of commands within its parentheses, allowing it to fill complex shapes. It also allowed the inclusion of a "temporary write" that allowed the programmer to set the fill style within the fill, and abandon it as soon as it ended.

ee also

*Sixel

References

* [http://vt100.net/docs/vt3xx-gp/ "VT330/VT340 Programmer Reference Manual, Volume 2: Graphics Programming"] , Digital, EK-VT3XX-GP-002, 2nd Edition, May 1988
* [http://members.tripod.com/~ilkerf/cdoc/decregis.html "DEC ReGIS Graphics News"] , "DEC Professional", August 1990, pg. 22


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • Regis — Régis Sommaire 1 Variantes 2 Popularité du nom 3 Régis comme nom de personne ou prénom 3.1 Prénom …   Wikipédia en Français

  • Régis — Regis und Régis ist ein Vor und Familienname. Inhaltsverzeichnis 1 Herkunft 2 Bekannte Namensträger 2.1 Vorname 2.2 Zweitname 2.3 Familienname // …   Deutsch Wikipedia

  • Regis — may refer to: * Live with Regis and Kelly and its previous incarnations * Regis College, a Catholic women s college in Weston, Massachusetts * Regis College, University of Toronto, the Jesuits Graduate Theology College at the University of… …   Wikipedia

  • Regis — und Régis ist ein Vor und Familienname. Inhaltsverzeichnis 1 Herkunft 2 Bekannte Namensträger 2.1 Vorname 2.2 Zweitname …   Deutsch Wikipedia

  • Regis — Saltar a navegación, búsqueda Regis es un personaje del universo de Reinos Olvidados. Regis, el halfling, nació en Calimport o cerca de allí, lejos en el sur. Sus primeros recuerdos son de una infancia malgastada en las calles, mendigando y… …   Wikipedia Español

  • Régis — m French: name given in honour of St Jean François Régis (d. 1640) of Narbonne, who strove to reform prostitutes. His surname derives from an Old Provençal word meaning ‘ruler’ …   First names dictionary

  • Regis [1] — Regis (R. villa), soll einst Sitz eines Fürsten der Pelasger in Etrurien, südlich von Fiora gewesen sein; war schon zur Römerzeit Ruine u. galt nur als Bezeichnung eines Landungsplatzes u. der seichten Küste …   Pierer's Universal-Lexikon

  • Regis [2] — Regis, Vasallenstädtchen im Gerichtsamt Borna des königlich sächsischen Kreisdirectionsbezirks Leipzig, an der Pleiße; Weberei, Kamillenbau; 670 Ew …   Pierer's Universal-Lexikon

  • Regis [3] — Regis, Peter Sylvan, geb. 1632, Cartesianer, lehrte Philosophie in Toulouse u. Paris, doch brachten es die Jesuiten dahin, daß 1680 sein Hörsaal geschlossen wurde; er st. 1707 u. schr.: Beantwortungen der Entwürfe Huets u. Duhamels gegen die… …   Pierer's Universal-Lexikon

  • Regis — Regis, Stadt in der sächs. Kreish. Leipzig, Amtsh. Borna, an der Pleiße und mit Station Breitingen R. an der Staatsbahnlinie Leipzig Hof, 144 m ü. M., hat eine evang. Kirche, Flanschenfabrik u. Stanzwerke, Akkumulatorenfabrik, Elektrizitätswerk,… …   Meyers Großes Konversations-Lexikon

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”