| QTIPS - Border.Colour |
| QTIPS - Overriding Menu Colours |
| Utility Diskette # 3 - Part II |
| QTIPS - Query Windows - Changing Colours |
| Reader's Clinic - Screen Width |
| Screen Grabber |
| Reader's Clinic - Slow Multivalued Screen Display |
| Utility Diskette # 4 |
| Reader's Clinic - Different Id Same Record |
| Reader's Clinic - Scaled Masked Decimal Conversions |
| Base Conversions |
| User Defined Conversions |
| Reader's Forum - Numeric Precision in R/Basic - Hal Wyman |
| Reader's Clinic - Functions and Subroutines |
| Reader's Letters - Jim Owen |
| Playing with Scan Codes |
| Argument passing - Subroutines and Functions - Mike Pope |
RevMedia FKB
| Document | V1I10A7 |
| Title | Flashing Background |
| Keywords | BACKGROUND VIDEO.RW ESC.TO.ATTR ATTR.TO.ESC BITOR |
| Text | Users of VIDEO RW will be aware that the colour attributes for each byte of information on screen are stored in a single character yet generally colour escape sequences are four characters long The conversion between these formats is facilitated by the AREV functions ESC TO ATTR and ATTR TO ESC Thus to get the screen attribute for Yellow on Blue (Esc C1N) one would simply say ATTR = ESC TO ATTR(CHAR(27) : "C1N") Converting FROM attribute to escape conversely uses the ATTR TO ESC The highest bit of the colour attribute determines whether or not the colour has a flashing background If the highest bit is set the background will flash If not the background will remain normal To set the highest bit it is necessary to BITOR the attribute WITH 128 Try running the following with a (B option DECLARE FUNCTION ATTR TO ESC ESC TO ATTR X = ESC TO ATTR(@AW<4>) X = BITOR(SEQ(X) 128) X = ATTR TO ESC(CHAR(X)) PRINT @AW<4> : "Hello" PRINT X : "Hello" INPUT X 1 (Volume 1 Issue 10 Page 9) |
Page last modified: 08/02/03