[641] | 1 | XBVIDEO ; IHS/ADC/GTH - SET VIDEO ATTRIBUTES ; [ 02/07/97 3:02 PM ]
|
---|
| 2 | ;;4.0;XB;;Jul 20, 2009;Build 2
|
---|
| 3 | ;
|
---|
| 4 | ; Thanks to Don Jackson, DSD/OIRM, for the original routine.
|
---|
| 5 | ;
|
---|
| 6 | ; Set various video attributes. $X is saved and the cursor
|
---|
| 7 | ; is returned to it's original position thru X IOXY (except
|
---|
| 8 | ; certain attributes).
|
---|
| 9 | ;
|
---|
| 10 | ; In addition to the attributes supported by ENDR^%ZISS,
|
---|
| 11 | ; some color attributes are supported, and other mnemonics
|
---|
| 12 | ; to provide for backward compatibility.
|
---|
| 13 | ;
|
---|
| 14 | ;
|
---|
| 15 | Q
|
---|
| 16 | ;
|
---|
| 17 | EN(XB) ;PEP - Set video attribute in XB. E.g. D EN^XBVIDEO("IOBOFF").
|
---|
| 18 | ;
|
---|
| 19 | Q:'$L($G(XB))
|
---|
| 20 | Q:$D(ZTQUEUED)
|
---|
| 21 | ;
|
---|
| 22 | NEW DX,DY,XBXY
|
---|
| 23 | S DX=$X,DY=$Y,XBXY=0
|
---|
| 24 | ;
|
---|
| 25 | I '$G(IOST(0)) D HOME^%ZIS
|
---|
| 26 | U IO(0)
|
---|
| 27 | ;
|
---|
| 28 | I $L($T(@XB)),$L($P($T(@XB),";;",6)) S XBXY=$P($T(@XB),";;",7),XB=$P($T(@XB),";;",6)
|
---|
| 29 | I $L($T(@XB^%ZISS)) S X=XB D ENDR^%ZISS W @XB X:XBXY IOXY U IO Q
|
---|
| 30 | ;
|
---|
| 31 | I '$L($T(@XB)) U IO Q
|
---|
| 32 | ;
|
---|
| 33 | S XB("LN")=$T(@XB),XB(1)=$P(XB("LN"),";;",2),XB(2)=$P(XB("LN"),";;",3),XB(3)=$P(XB("LN"),";;",4)
|
---|
| 34 | S XB=$P($G(^%ZIS(2,+IOST(0),XB(1))),"^",XB(2),XB(3))
|
---|
| 35 | I XB="" S XB="*0"
|
---|
| 36 | W @XB
|
---|
| 37 | X:XBXY IOXY
|
---|
| 38 | U IO
|
---|
| 39 | Q
|
---|
| 40 | ;
|
---|
| 41 | ; Global locations for mnenomics and colors supported by %ZISS.
|
---|
| 42 | ;
|
---|
| 43 | ;;<subscript>;;<beginning piece>;;<ending piece>;;<desc>;;<var name>;;<X IOXY flag>
|
---|
| 44 | ;
|
---|
| 45 | 10 ;;5;;1;;1;;TEN PITCH;;IOPTCH10;;1
|
---|
| 46 | 12 ;;5;;2;;2;;TWELVE PITCH;;IOPTCH12;;1
|
---|
| 47 | 16 ;;12.1;;1;;250;;SIXTEEN PITCH;;IOPTCH16;;1
|
---|
| 48 | BLF ;;5;;9;;9;;BLINK OFF;;IOBOFF;;1
|
---|
| 49 | BLN ;;5;;8;;8;;BLINK ON;;IOBON;;1
|
---|
| 50 | CLR ;;6;;1;;1;;RESET;;IORESET;;1
|
---|
| 51 | CUP ;;8;;1;;1;;CURSOR UP;;IOCUU;;0
|
---|
| 52 | DTB ;;17;;2;;2;;DOUBLE HIGH BOTTOM HALF;;IODHLB;;0
|
---|
| 53 | DTP ;;17;;1;;1;;DOUBLE HIGH TOP HALF;;IODHLT;;0
|
---|
| 54 | HIF ;;7;;2;;2;;HI INTENSITY OFF;;IOINORM;;1
|
---|
| 55 | HIN ;;7;;1;;1;;HI INTENSITY ON;;IOINHI;;1
|
---|
| 56 | HOM ;;5;;3;;3;;HOME CURSOR;;IOHOME;;0
|
---|
| 57 | IOF ;;1;;2;;2;;FORM FEED/CLEAR SCREEN;;;;0
|
---|
| 58 | RVF ;;5;;5;;5;;REVERSE VIDEO OFF;;IORVOFF;;1
|
---|
| 59 | RVN ;;5;;4;;4;;REVERSE VIDEO ON;;IORVON;;1
|
---|
| 60 | ULF ;;6;;5;;5;;UNDERLINE OFF;;IOUOFF;;1
|
---|
| 61 | ULN ;;6;;4;;4;;UNDERLINE ON;;IOUON;;1
|
---|
| 62 | ;
|
---|
| 63 | ; Global locations for mnenomics and colors UN-supported by %ZISS.
|
---|
| 64 | ;;<subscript>;;<beginning piece>;;<ending piece>;;<desc>;;<>;;<X IOXY flag>
|
---|
| 65 | CYB ;;C;;3;;3;;CYAN BACKGROUND;;;;1
|
---|
| 66 | GRF ;;C;;1;;1;;GREEN FOREGROUND;;;;1
|
---|
| 67 | REB ;;C;;5;;5;;RED BACKGROUND;;;;1
|
---|
| 68 | WHF ;;C;;4;;4;;WHITE FOREGROUND;;;;1
|
---|
| 69 | YEF ;;C;;2;;2;;YELLOW FOREGROUND;;;;1
|
---|
| 70 | ;
|
---|