Programming with Reflection Control Functions Following is a summary of the control functions supported by Reflection. Control Function Mnemonic Description Csi!p DECSTR Reset terminal (soft reset) Csi&u DECRQUPSS Request UPSS Csi>0c DA Request secondary device attributes Csi>24;11;0c DA Response to secondary device attributes Csi>c DA Request secondary device attributes Csi?$p DECRQM Request DEC private mode settings Csi?;… l RM Reset DEC private mode Csi?;… h SM Set DEC private mode Csi?;$y DECRPM Report DEC private mode setting Csi?0i MC Send graphics to printer Csi?0J DECSED Erase unprotected characters from cursor to end of screen Csi?0K DECSEL Erase unprotected characters from cursor to end of line Csi?10n DSR Report printer ready Csi?13n DSR Report no printer Csi?15n DSR Request printer status Csi?18h DECPFF Send form feed after printing Csi?18l DECPFF No form feed after printing Csi?19h DECPEX Print full screen Csi?19l DECPEX Print scrolling region Csi?1h DECCKM Cursor keys application Csi?1i MC Print line Csi?1J DECSED Erase unprotected characters from top of screen to cursor Csi?1K DECSEL Erase unprotected characters from beginning of line to cursor Csi?1l DECCKM Cursor keys normal Csi?20n DSR Report UDKs unlocked Csi?21n DSR Report UDKs locked Csi?2i MC Send graphics to host Csi?25h DECTCEM Cursor visible Csi?25l DECTCEM Cursor invisible Csi?25n DSR Request UDK status (VT200) Csi?26n DSR Request keyboard dialect Csi?27;n DSR Response to keyboard dialect Csi?2J DECSED Erase unprotected characters from screen Csi?2K DECSEL Erase unprotected characters from line Csi?2l DECANM VT52 emulation Csi?3h DECCOLM Columns 132 Csi?3l DECCOLM Columns 80 Csi?42h DECNRCM Use national replacement: 7-bit Csi?42l DECNRCM Use national replacement: 7-bit and 8-bit Csi?43h DECGEPM Expanded print mode Csi?43l DECGEPM Compressed print mode Csi?44h DECGPCM Print color mode Csi?44l DECGPCM Print monochrome mode Csi?45h DECGPCS Print color syntax set to RGB Csi?45l DECGPCS Print color syntax set to HLS Csi?46h DECGPBM Print background Csi?46l DECGPBM Do not print background Csi?47h DECGRPM Print rotated mode Csi?47l DECGRPM Print compressed mode Csi?4h DECSCLM Smooth scroll Csi?4l DECSCLM Jump scroll Csi?4i MC Auto print off Csi?50n DSR Report a locator device detected Csi?53n DSR Report no locator device detected Csi?55n DSR Request status of locator device Csi?56n DSR Request type of locator device Csi?57;0n DSR Report no locator device connected Csi?57;1n DSR Report locator device is a mouse Csi?5h DECSCNM Inverse video Csi?5l DECSCNM Normal video Csi?5i MC Auto print on Csi?60h DECHCCM Couples the cursor to the display (horizontally) Csi?60l DECHCCM Uncouples the cursor from the display (horizontally) Csi?61h DECVCCM Couples the cursor to the display (vertically) Csi?61l DECVCCM Uncouples the cursor from the display (vertically) Csi?62n DECMSR Device status request for a macro space report (VT400 mode only) Csi?63;n DECCKSR Request memory checksum of macros (VT400 mode only) Csi?*{ —- Macro space report; is the number of bytes divided by 16 (rounded down) Csi?64h DECPCCM Couples the cursor to the display (page cursor coupling) Csi?64l DECPCCM Uncouples the cursor from the display (page cursor coupling) Csi?66h DECNKM Numeric keypad mode application Csi?66l DECNKM Numeric keypad mode numeric Csi?67h DECBKM Backarrow key set to BS Csi?67l DECBKM Backarrow key set to DT Csi?6h DECOM Origin mode set Csi?6l DECOM Origin mode reset Csi?7h DECAWM Autowrap on Csi?7l DECAWM Autowrap off Csi?80h DECSDM Disable sixel scrolling Csi?80l DECSDM Enable sixel scrolling Csi?8h DECARM Keyboard auto repeat on Csi?8l DECARM Keyboard auto repeat off Csi?i MC Send graphics to printer Csi$p DECRQM Request ANSI mode settings Csi;$y DECRPM Report ANSI mode settings Csi;;; ${ DECSERA Selective erase of rectangular area (VT420 only) Csi;;; ;; ...$r DECCARA Change attributes rectangular area (VT420 only) Csi?;;; ; ...$t DECRARA Reverse attributes in rectangular area (VT420 only) Csi;;; ;;; ;$v DECCRA Copy rectangular area (VT420 only) Csi;;; $x DECFRA Fill rectangular area (VT420 only) Csi;;; ;;*y DECRQCRA Request memory checksum (VT420 only) Csi;;; $z DECERA Erase rectangular area (VT420 only) Csi@ ICH Insert characters CsiA CUU Cursor up CsiB CUD Cursor down CsiC CUF Cursor forward CsiD CUB Cursor backward CsiZ CBT Cursor backtab Csi;f HVP Move cursor to horizontal and vertical position Csi;… h SM Set ANSI mode Csi;H CUP Cursor position Csi;… l RM Reset ANSI mode CsiL IL Insert lines Csi;...m SGR Select graphic rendition CsiM DL Delete lines from cursor CsiP DCH Delete characters from cursor Csi;r DECSTBM Set top and bottom scrolling region margins CsiP PPA Page position absolute CsiQ PPR Page position relative CsiR PPB Page position backward Csi;R CPR Report cursor position CsiS SU Pan down CsiT SD Pan up CsiU NP Next page CsiV PP Previous page CsiX ECH Erase characters on line Csi*x DECSACE Select attribute change extent Csi*z DECINVM Invoke macro Csi0"q DECSCA Select erasable character Csi0$} DECSASD Top 24 lines = active display Csi0$~ DECSSDT Do not display status line Csi0;1234c WRQRQSN Serial number request Csi0;1235c WRQRQUPI UPI request Csi0c DA Request primary device attributes Csi0g TBC Tab clear Csi0i MC Print screen Csi0J ED Erase from cursor to end of screen Csi0K EL Erase from cursor to end of line Csi0n DSR Report no device malfunction Csi0w DECSHORP Print 10 characters per inch, 80 characters per row Csi1w DECSHORP Print 10 characters per inch, 80 characters per row Csi2w DECSHORP Print 12 characters per inch, 96 characters per row Csi4w DECSHORP Print 16.5 characters per inch, 132 characters per row Csi0x DA Request terminal parameters Csi0z DECVERP Print 6 lines per inch (approx. 63 lines/page) Csi1z DECVERP Print 6 lines per inch (approx. 63 lines/page) Csi2z DECVERP Print 8 lines per inch (approx. 84 lines/page) Csi3z DECVERP Print 12 lines per inch (approx. 125 lines/page) Csi4z DECVERP Print 2 lines per inch (approx. 21 lines/page) Csi5z DECVERP Print 3 lines per inch (approx. 32 lines/page) Csi6z DECVERP Print 4 lines per inch (approx. 42 lines/page) Csi1"q DECSCA Select protected character Csi1$} DECSASD Status line set to active display Csi1$~ DECSSDT Status line set to indicator Csi1$u DECRQTSR Request terminal state report Csi1$w DECRQPSR Request cursor information report Csi12h SRM Local echo off Csi12l SRM Local echo on Csi1J ED Erase from top of screen to cursor Csi1K EL Erase from beginning of line to cursor Csi1x DA Request terminal parameters Csi1w Print 10 characters per inch (80 chars/row) Csi1z Print 6 lines per inch (approx. 63 lines/page) Csi2"q DECSCA Select erasable character Csi2$~ DECSSDT Status line: host writable Csi2$u DECRQTSR Request color table report (VT340) Csi2$w DECRQPSR Request tab stop report Csi2;;; ; ; 1;0x DA Response to Csi0x Csi20h LNM Auto linefeed on Csi20l LNM Auto linefeed off Csi2h KAM Keyboard lock Csi2J ED Erase entire screen Csi2K EL Erase entire line Csi2l KAM Keyboard unlock Csi2w Print 12 characters per inch (96 chars/row) Csi2z Print 8 lines per inch (approx. 84 lines/page) Csi3;;; ; ; 1;0x DA Response to Csi1x Csi3g TBC Clear all tabs Csi3h — Display controls on Csi3l — Display controls off Csi3z Print 12 lines per inch (approx. 125 lines/page) Csi4h IRM Insert mode Csi4i MC Printer controller mode off Csi5i MC Printer controller mode on Csi4l IRM Replace mode Csi4w Print 16.5 characters per inch (132 chars/row) Csi4z Print 2 lines per inch (approx. 21 lines/page) Csi5n DSR Request operating status Csi5z Print 3 lines per inch (approx. 32 lines/page) Csi6z Print 4 lines per inch (approx. 42 lines/page) Csi24t DECSLPP With 24 lines per page, sets number of pages to 6 Csi25t DECSLPP With 25 lines per page, sets number of pages to 5 Csi36t DECSLPP With 36 lines per page, sets number of pages to 4 Csi48t DECSLPP With 48 lines per page, sets number of pages to 3 Csi72t DECSLPP With 72 lines per page, sets number of pages to 2 Csi144t DECSLPP With 144 lines per page, sets number of pages to 1 Csi61"p DECSCL VT102 emulation Csi62"p DECSCL VT200 series emulation 8-bit controls Csi62;0"p DECSCL VT200 series emulation 8-bit controls Csi62;1"p DECSCL VT200 series emulation 7-bit controls Csi62;2"p DECSCL VT200 series emulation 8-bit controls Csi63"p DECSCL VT300 series emulation 8-bit controls Csi63;0"p DECSCL VT300 series emulation 8-bit controls Csi63;1"p DECSCL VT300 series emulation 7-bit controls Csi63;2"p DECSCL VT300 series emulation 8-bit controls Csi6n CPR Request cursor position Csic DA Request primary device attributes Csig TBC Tab clear Csii MC Print screen Csi4;;...;y DECTST Terminal test (disconnect) Dcs$q...St DECRQSS Request control function setting Dcs;;P3; qs...sSt — Sixel data format Dcs$wSt DECLBD Define locator device buttons (mouse) Dcs;|St DECUDK Load user-defined keys Dcs$r...St DECRPSS Report control function setting Dcs0!u%5St DECAUPSS Assign UPSS as DEC Supplemental Graphic Dcs0p Enter ReGIS at point command exited (Reflection for Digital Graphics only) Dcs1!uASt DECAUPSS Assign UPSS as ISO Latin-1 Dcs1$p....St DECRSTS Restore terminal state from DECTSR Dcs1$s....St DECTSR Report terminal state Dcs1$t....St DECRSPS Restore cursor from DECCIR Dcs1$u....St DECCIR Report cursor information Dcs1234;Ps{St WRQCMD Invoke Reflection command Dcs2000;; {St WRQCMD Invoke host-initiated Reflection Basic command or script Dcs1p Enter ReGIS and begin new command; ReGIS commands are not displayed (Reflection for Digital Graphics only) Dcs2p Enter ReGIS at point command exited; ReGIS commands are displayed (Reflection for Digital Graphics only) Dcs3p Enter ReGIS and begin new command; ReGIS commands are displayed (Reflection for Digital Graphics only) Dcsp Enter ReGIS at point command exited; ReGIS commands are not displayed (Reflection for Digital Graphics only) Dcs2$pSt DECRSTS Restore color table (VT340) Dcs2$sSt DECCTR Report color table (VT340) Dcs2$t....St DECRSPS Restore tab from DECTABSR Dcs2$u....St DECTABSR Report tab stop DcsPfn;Pcn; Pe;PcmW;Pw;Pt; Pcmh;Pcss{ Dscs U.../L...;St DECDLD Downline loadable character set Dcs;; !zD...DSt DECDMAC Define macro Esc( SCS Selects G0 Esc) SCS Selects G1, 94-character set Esc- SCS Selects G1, 96-character set Esc* SCS Selects G2 (VT200), 94-character set Esc+ SCS Selects G3 (VT200), 94-character set Esc. SCS Selects G2 (VT200), 96-character set Esc/ SCS Selects G3 (VT200), 96-character set Esc< — ANSI mode ¾ exit VT52 emulation mode Esc= DECKPAM Keypad mode application Esc= DECKPAM Keypad mode application (VT52) Esc> DECKPNM Keypad mode normal Esc> DECKPNM Keypad mode normal (VT52) Esc\ — Exit ReGIS mode (Reflection for Digital Graphics only) Esc] MC Print screen (VT52) Esc^ MC Auto print mode on (VT52) Esc_ MC Auto print mode off (VT52) Esc| LS3R Map G3 into GR Esc} LS2R Map G2 into GR Esc~ LS1R Map G1 into GR esc$@ JIS C 6226-1978 Esc$B JIS X 0208-1983 Esc&@Esc$B JIS X 0208-1990 Esc$(D JIS X 0212-1990 Esc(J JIS Roman (same as Esc(H) Esc(H JIS Roman (same as Esc(J) Esc(B ASCII Esc(I Half width Katakana Esc#3 DECDHL Double-width and height line (top half) Esc#4 DECDHL Double-width and height line (bottom half) Esc#5 DECSWL Single-width and height line Esc#6 DECDWL Double-width and single height line Esc#8 DECALN Test pattern EscF S7C1T VT200 emulation 7-bit controls EscG S8C1T VT200 emulation 8-bit controls Esc7 DECSC Save cursor state Esc8 DECRC Restore cursor state EscA — Cursor up (VT52) EscB — Cursor down (VT52) EscC — Cursor forward (VT52) Escc RIS Reset to initial state (hard reset) EscD — Cursor backward (VT52) EscH — Home cursor (VT52) EscH — Set tab EscI — Reverse linefeed (VT52) EscJ — Erase from cursor to end of screen (VT52) EscK — Erase to end of line (VT52) Escn LS2 Map G2 into GL EscN SS2 Map G2 into GL for next character Esco LS3 Map G3 into GL EscO SS3 Map G3 into GL for next character EscV — Print cursor line (VT52) EscW — Printer controller mode on (VT52) EscX — Printer controller mode off (VT52) EscY — Cursor to row column (VT52) EscZ — Request primary device attributes (VT52) Ind IND Index Nel NEL Next line Ri RI Reverse linefeed Si LS0 Map G0 into GL So LS1 Map G1 into GL