ˆ---- ReGIS commands notes ---- S Screen W Write P Position V Vector C Curve T Text L Load @ Macrocraph R Report F Polygon Fill ; Resyncronization -------------------------------------------------------------------------------- Coordinates [10,86] absolute values for X and Y [52] - " - only for X [,121] - " - for Y [+15,-10] ralative for X and Y -------------------------------------------------------------------------------- Entering and exiting -------------------------------------------------------------------------------- ESC Pp or ESC P0p ÷ÈÏÄ,ÔÁÍ ÇÄÅ ÂÙÌÏ ×ÙÊÄÅÎÏ ESC P1p enter at the command level ESC P2p last mode + command display mode (×ÎÉÚÕ ÜËÒÁÎÁ) ESC P3p command level + command display mode ESC \ exit ReGIS mode -------------------------------------------------------------------------------- Screen Control Commands -------------------------------------------------------------------------------- s[X,Y] or s[+X,-Y] scroll h[x,y][X,Y] hard copy area ( printer ) M output mapping Map locations ( ËÁÒÔÙ Ã×ÅÔÏ× ) H L S R G B 0 Black 0 0 0 0 0 0 1 Dark grey 120 50 100 100 0 0 2 Light grey 240 50 100 0 100 0 3 White 180 100 100 100 100 0 example : S(M1(L25)2(L99)3(L50)) Changing Color Values a for RGB system b for HLS system RGB system D dark R red G green B blue C cyan Y yellow M magenta W white HLS system H hue angle ( 0 to 360 degrees ) ( 0 for blue ,120 for red, 240 for gree n ) L lightness ( 0 to 100 percent ) S saturation ( 0 to 100 percent ) example : s(m1(aH60L80S60)3(aH150L50S60)) Background Intensity Control - I s(i0) s(i(r)) s(i(h180l50s100)) Time delay - T s(t60) delay for 1 second ( 60 ticks ) Screen Erase - E does not change the cursor position does not change the current background color or shade ? Temporary write control - W Cursor Control - C S(C<0 or 1>) turns cursor on or off ( 1-on , 0-off ) H - Output Cursor S(C(H)) - sets output cursor num : omitted,0 or 1 - Diamond (default) ; 2 - Crosshair I - Input Cursor ( only on VT340 ) S(C(I)) - sets input cursor number omitted or 0 crosshair (default) 1 Diamond 2 Crosshair 3 Rubber band line 4 Rubber band rectangle User defined style cursor size is 16x24 pixels ( ÌÉÛÎÅÅ ÏÔÓÅËÁÅÔÓÑ ) example : S(C(I[+5,+10]"XO")) C cursor control option I input cursor [+5,+10]-origin of the cursor "" char. mask X is displayed in the fogeground color O is displayed in the background color Display Graphics Page - P S(P<1 or 0>) : selects the displayed page. 0 is the first & 1 is the second -------------------------------------------------------------------------------- Write Control Commands -------------------------------------------------------------------------------- M - PV multiplication control W(M) ( ËÏÜÆÆÉÃÉÅÎÔ ÕÍÎÏÖÅÎÉÑ × ÏÐÅÒÁÃÉÑÈ ÒÉÓÏ×ÁÎÉÑ É ÐÏÚÉÃ. ) extern const char* gr$error_message( void ); / * ôÅËÓÔÏ×ÏÅ ÓÏÏÂÝÅÎÉÅ Ï ÐÏÓÌÅÄÎÅÊ ÏÛÉÂËÅ */ P - Pattern control W(P<0 through 9>) standard patterns 0 00000000 empty 1 11111111 solid 2 11110000 dash 3 11100100 dash-dot 4 10101010 dot 5 11101010 dash-dot-dot 6 10001000 sparse dot 7 10000100 asymmetrical sparse dot 8 11001000 sparse dash-dot 9 10000110 sparse dot-dash w(p01100110) - bit pattern W(P(M)) I - Foreground intensity examples : w(i0), w(i(r), w(i(h180l50s100)) F - Plane select control W(F0) 00 None \ W(F1) 01 Plane 0 | for VT330 ( & VT240 m.b. ) W(F2) 10 Plane 1 | W(F3) 11 All planes / ( 2-bit code for select the planes ) Writing styles V Overlay foreground only R Replace foreground & background C Complement foreground only ( whitout intensity ) E Erase foreground only W(F,C) N - Negative pattern control (?) W(N<0 or 1>) - turns the negative pattern control off or on S - Shading control W(S<0 or 1>) - turns shading off or on W(S<0 or 1>,[]) or W(S<0 or 1>,[,]) Shading on reference with this line select shading character W(S'') -------------------------------------------------------------------------------- Position Commands -------------------------------------------------------------------------------- P PV direction values 3 2 1 \ | / \ | / \|/ 4 --------- 0 /|\ / | \ / | \ 5 6 7 B - begin bounded position stack S - start unbounded position stack E - end bounded unbounded position stack P(P<0 or 1>) - Select graphics page option -------------------------------------------------------------------------------- Vector Commands -------------------------------------------------------------------------------- áÎÁÌÏÇÉÞÎÏ Position Commands Temp. write control V(ˆW€()) -------------------------------------------------------------------------------- Curve Commands -------------------------------------------------------------------------------- Circles ˆC€ - circle with a center at the current position & circumference at th e ˆC€(ˆC€) - circle with center at specified this option stays in effect until you enter a new command P[100,100] C(C)[+50][+25] P[300,100] C[+50][+25] P[500,100] C(C)[+50] C[+25] Arcs C(ˆA€) - Arc with a center at the current & with angl es C(ˆA€ˆC€) _ Arc with center at specified this option stays in effect until you enter a new command P[350,200] C(A180C)[-150] P[+700] C(A-180C)[-150] P[50,100] C(A-60C)[150,150](A135C)[+160,150](A-89C)[+250,+150] Curve interpolation C(ˆB€)(E) - closed curve sequence example : P[100,100] C(B) [][75,125][150,200][225,125][300,200][375,125][450,200 ][525,125][] (E) C(ˆS€)(E) - open curve sequence example : P[75,125] C(S) [150,200][225,125][300,200][375,125][450,200][525,125] (E) Temp. write control C(ˆW€()) -------------------------------------------------------------------------------- Text Commands -------------------------------------------------------------------------------- T'' or T"" - write text T(A<0 to 3>) - selects a character set, in which text will draws ˆL€ - select GL character set ( only with alphabet 0 ) T(A0(L"")) To select this set Use the designator ASCII (B DEC Special Graphics (0 DEC Technical (> British (A Italian (Y Dutch (4 Norwegian/Danish (' Finnish (5 Portuguese (%6 French (R Spanish (Z French Canadian (9 Swedish (7 German (K Swiss (= examples : T(A0(L"(>")) - selects the DEC Technical set for use with ReGIS T(A0(L"(0")) - selects the DEC Special Graphics set for use with ReGI S ˆR€ - select GR character set ( only with alphabet 0 ) To select this set Use the designator DEC Supplemental Graphics )%5 ISO Latin-1 supplemental -A ( -@ ? ) example : T(A0(L"(B",R")%5")) - maps the ASCII set into GL and DEC Supplemental Graphics set into GR for use with ReGIS Character spacing format : t ( is a relative [X,Y] value ) ˆS€ - size option 1) standard character cell size T(S<0 to 16>) 2) display cell size T(S[width,height]) - screen area used for each text character 2) unit cell size T(U[width,height]) - defines the size of characters -------------------------------------------------------------------------------- Set number Display cell size Unit cell size Positioning S0 [9,10] [8,10] [9,] S1 [9,20] [8,20] [9,] S2 [18,30] [16,30] [18,] S3 [27,45] [24,45] [27,] S4 [36,60] [32,60] [36,] S5 [45,75] [40,75] [45,] S6 [54,90] [48,90] [54,] S7 [63,105] [56,105] [63,] S8 [72,120] [64,120] [72,] S9 [81,135] [72,135] [81,] S10 [90,150] [80,150] [90,] S11 [99,165] [88,165] [99,] S12 [108,180] [96,180] [108,] S13 [117,195] [104,195] [117,] S14 [126,210] [112,210] [126,] S15 [135,225] [120,225] [135,] S16 [144,240] [128,240] [144,] ˆH€ - Height multiplier : T(H) ( is range 1 to 256 ) ˆM€ - Size multiplier : T(M[width,height]) Tilt options 1. ˆD€ - sting tilt : T(D,S<0 to 16>) is the tilt angle ( 45 degree increment ) 2. string/character tilt : T(D,S<0 to 16>,D) ˆI€ - italic option : T(I) value Actual italic value -31 or less -45 degrees -1 through -30 -22 0 0 ( not slanted ) 1 through 30 22 31 or greater 45 Temporary text control T(B)(E) example : P[100,100] T(D0,S5,I0)'ABCD' P[500,100] T(B)(D180,S5)'ABCD'(E) P[500,1 00] T'ABCD' ˆPV €spacing - subscripts,superscripts and overstrikes Value Function 1 Superscript - move the character up from the baseline and away from the previous character 2 Superscript - move the character straight up from the ba seline 3 Overstrike - move the character back over the previous character cell 4 Subscript - move the character straight down from the baseline 5 Subscript - move the character down from the baseline and away from the previous character Temporary write control T(W)) example : P[400,200] W(S1) V[,+100][+200] P[100,100] T(D0,S5)'ABCD' P[410,210] T (W(C))'ABCD' P[100,300] T'ABCD' -------------------------------------------------------------------------------- Load Commands -------------------------------------------------------------------------------- 1. Select Character Set : L(A<1 to 3>) -------- -- 2. Scecify Name : L(A'') or L(A"") | | may be up to 10 characters long | * * | 3. Load Character Cell : L"" | ***** | Each character cell has 80 pixels in a 8x10 array. | * * * | example : L(a3"alpha")"S"00,14,3E,54,3E,15,3E,14,00,00 | ***** | This axample loads symbol in a 3-rd character set ,named "alpha"| * * *| | ***** | | * * | | | | | -------- -- -------------------------------------------------------------------------------- Macrographs -------------------------------------------------------------------------------- Note : The VT300 can store up to 26 macrogaphs, you can nest macrogaphs up to 16 levels deep The VT300 can store at least 10,000 bytes of macrogaph data ( in dynamic memory ). 1. Define macrogaph : @:@; example : @S W(S1) P[+50,+50] V[-100][-100,-50][+100][+50,-100][+50,+100][+100] [-100,+50] P[+50,+125] W(S1) V[-50,-125][-100][-50,+125] W(I0) V[+100,-75][+100,+75] @; P[200,200] W(I2) @S W(I1) P[400,150] @S W(I2) P[600,200] @S 2. Invoke macrogaph : @ ( is not case sensitive ) 3. Clear macrogaph @. - clear all macrogaphs @:@; - clear specified macrogaph ( because of blank definition ) -------------------------------------------------------------------------------- Report Commands -------------------------------------------------------------------------------- R(P) - report the absolute screen cursor position "[x,y]" R(M()) - report macrogaph option @= - start a report @; - end report R(M(=)) - Macrogaph storage status ( report how much storage space can be used for macrogaphs, and how much of that space is free ). The terminal reports this information as following format : "ˆaaaa€,ˆtttt €" ˆaaaa€ is the amount space still available for macrographs. ˆtttt €is the total amount of the storage space can be used for macrogra phs. R(L) - report about character set. Format : A'' R(E) - error condition( "," N-no. of error, M-ASCII code of the character) „Code Condition error char. Meaning 0 No error Always 0 No error since last ';' 1 Ignore char. The ignored char. An unexpected character was foun d and ignored 2 Extra option Always 0 The syntax s(h[x,y][x,y] contain s more than two coordinates coordinate pairs.The extra pairs were ignored. 3 Extra coord. Always 0 The syntax [x,y] contains more t han two values coordinate values.The extra valu es were ignored. 4 Alphaber out Always 0 The syntax L(A<0 to 3>) containe d of range a number less than 0 or greater than 3. 5 Reserved 6 Reserved 7 Begin/start (B) or (S) overflow 8 Begin/start underflow (E) 9 Text standard Always 0 „ size error I - graphics input mode R(I0) - one-shot mode R(I1) - multiple graphics input mode R(P(I)) - report position interactive( return ASCII code and absolute input curs or position ) -------------------------------------------------------------------------------- Polygon Fill Commands -------------------------------------------------------------------------------- 1. Vector option : F(V) examples : 1) P[50,200] F(V(B)[+100][,+100][-100](E)) - filled square 2) P[400,300] F(V(B)[300,200][200,300][300,400](E)) - filled diamond 2. Curve and arc option : F(C) examples : 1) P[100,200] F(C(B)[+200][,+100][-200](E)) - filled ellips 2) P[500,300] F(C[+100]) - filled circle 3. Position option ( I don't know for what that option need ) 4. Temporary write control option : F(W()) examples : 1) P[200,100] F(W(I(W)),V[+100]C(C,A-90)[-50] V[,+100]C(C,A-90)[-50] V[-100]C(C,A-90)[,-50] V[,-100]C(C,A-90)[+50]) - filled white box wi th rounded corners 2) P[400,300] F(W(S'x')V(B)[+200,-100]C(C,a+30)[-200,+100]V(E)) - pie segment filled with 'x'-s -------------------------------------------------------------------------------- ReGIS Default Values Summary -------------------------------------------------------------------------------- Screen Controls S(A[0,0][799,479]) screen coordinates S[0,0] no scrolling S(M0(AD)1(AB)2(AR)3(AG) 4(AM)5(AC)6(AY)7(AW)8(AD) VT340 output map values 9(AB)10(AR)11(AG)12(AM) 13(AC)14(AY)15(AW)) S(I0) background 0 Write Controls W(M1) PV mult. factor = 1 W(P1) Solid line W(P(M2)) Pattern mult.factor = 2 W(N0) Negative pattern disabled VT330 : W(F3) for VT240 too VT340 : W(F15) Writing enabled to all bitmap planes VT330 : W(I3) for VT240 too VT340 : W(I7) Foreground intensity W(V) Overlay writing W(S0) Shading off Text T(A0) ISO Latin alphabet Nr 1 char. set T(S1) Standard cell size 1 T(S[9,20]) Display cell size assotiated with std. char. cell size T(U[8,20]) Unit cell size assotiated with std. char. cell size T[+9,+0] Cheracter positioning T(H2) Height multiplier = 2 T(D0 S1 D0) String tilt & character tilt off T(I0) Italic off T(M[1,2]) Multiplication factor = 1 for width & 2 for height Load L(A1) Character set 1 selected for load -------------------------------------------------------------------------------- Examples -------------------------------------------------------------------------------- Basic Graph S(M0(L0) 1(L33) 2(L67) 3(L100)) (I3,E) W(10,P1(M1),F3,V,S0,I0) @:TV[-10]P[+100,+50]@; @:MV[,+10]P[+100,-10]@; P[100,100] V[,+300][+500] P[100,150] @T @T @T @T @T P[60,140] T(A0,S1,I0)(D0,S1,D0) T'100'P[60,+50] T'80'P[60,+50] T'60'P[60,+50] T'40'P[60,+50] T'20'P[60,+50] T' 0'P[225,400] @M @M @M @M P[225,400][-10,+20] T'Q1'P[+85] T'Q2'P[+80] T'Q3'P[+80] T'Q4'P[40,200] T(B)[+0,+12](D270,S[9,20],U[8,20]) '% BUDGET'(E) P[350,450] T'QUARTER' Pie Graph S(E) P[300,320] W(S'/') C[+135] W(S0) C[+135] P[+135] W(S1)(I3) C(C,A+45)[300,320] V[300,320] P[+25,-7] W(S1)(I0) P[+150] C(C,A+45)[-150] V[325,313] P[220,220] T(S2,W(R))'other90.0%' P[495,225] T'Administrative10.0%' P[30,60] T(B)(S3,I-22) 'Administrative Costs Are Small Portion of Total'(E) Graph With Shading S(E) P[50,50] V[,+350][+600] P[70,70] T(S2)'Effective Sales Management Produced Sales in Excess of Plan Each Quarter' P[160,420] T(I-22)'1'P[+120] T'2'P[+120] T'3'P[+90] T'4'P[192,400] W(S1)P[,-85]V[-40] P[342,400][,-120]V[-40] P[482,400][,-60]V[-40] P[602,400][,-170]V[-40] P[+20,-30] T(S1)'Actual' P[172,399]T(S3) W(S'#',R)P[,-60]V[-40] P[322,399][,-95]V[-40] P[462,399][,-50]V[-40] P[582,399][,-140]V[-40]T(S1) P[-55,+5]W(S0,V)T'Plan' P[582,399] V[,-140][-40][,+140] P[462,399] V[,-50][-40][,+50] P[322,399] V[,-95][-40][,+95] P[172,399] V[,-60][-40][,+60] -------------------------------------------------------------------------------- ˆSixel Graphics -------------------------------------------------------------------------------- Sixel is a group of six pixels in a vertical column. Device control string : DCS P1 ; P2; P3; q s...s ST ( DCS is the ESC P in a 7-bit environment, ST is the ESC \ ) P1 is the pixel aspect ratio : „P1 Pixel Aspect Ratio Omitted 2:1 (default) 0,1 2:1 2 5:1 3,4 3:1 5,6 2:1 7,8,9 1:1 P2 selects how terminal draws the background color. 0 or 2 pixel position specified as 0 set to the current background. 1 pixel position specified as 0 remain at their current color. P3 is the horizontal grid parameter.The horizontal grid is the horizontal size between two pixel dots. s...s is the sixel encodes data string ( the characters in the range of ? to ~ ) ˆSixel Control Functions Graphics repeat introduser (ˆ!€) format: ! „Pn€ „character „Pn€ is the repeat count( decimal value ) „character€ is the character to repeat Raster attributes (ˆ"€) format: " „Pan€ ; „Pad€ ; „Ph€ ; „Pv „Pan€ and „Pad€ defines the pixel aspect ratio for the following sixel data Pan string: ----- = pixel aspect ratio Pad „Ph€ and „Pv€ define the horizontal and vartical size of the image( in pixel s ) Color introduser (ˆ#€) Basic colors : # Pc - Pc is the color number : HLS or RGB colors : # „Pc€ ; „Pu€ ; „Px€ ; „Py€ ; „Pz Pc is the color number Pu is the color coordinate system ( 1 for HLS and 2 for RGB systems ) Px is hue for HLS and red for RGB system Py is lightness for HLS and green for RGB system Pz is saturation for HLS and blue for RGB system Graphics carriage return (ˆ$€) This cheracter indicates the end of the sixel line.The active position returns to the left page border of the same sixel line. Graphics new line (ˆ-€) This cheracter indicates the end of the sixel line.The active position moves to the left margin of the next sixel line. Sixel scrolling enabled : CSI ? 8 0 h Sixel scrolling disabled : CSI ? 8 0 l -------------------------------------------------------------------------------- ˆPrinting Graphics -------------------------------------------------------------------------------- Graphics expanded print mode (DECGEPM) set ( expanded ) CSI ? 4 3 h reset ( compressed ) CSI ? 4 3 l Graphics print color mode (DECGPCM) set ( color ) CSI ? 4 4 h reset ( B & W ) CSI ? 4 4 l Graphics print color sintax (DECGPCS) set ( RGB ) CSI ? 4 5 h reset ( HLS ) CSI ? 4 5 l Graphics print background mode (DECGPBM) set ( background ) CSI ? 4 6 h reset ( no background ) CSI ? 4 6 l Graphics rotated print mode (DECGRPM) set ( rotated ) CSI ? 4 7 h reset ( compressed ) CSI ? 4 7 l Graphics to host (MC) : CSI ? 2 i Graphics to printer (MC) : CSI ? i or CSI ? 0 i ESC[5i : enable printer port ESC[!p init. printer ESC[?21J Landscape format ESC[w clear margins ESC[4i disable printer port ESCPp s(a[0,0][799,479]h) ESC\