Changeset 38135 in project


Ignore:
Timestamp:
01/19/20 23:26:02 (5 weeks ago)
Author:
justinmeiners
Message:

example corrections. add constants.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/termbox

    r38134 r38135  
    111111
    112112Example usage:
    113     (tb-change-cell x  y #\@ (bitwise-ior tb/color/black tb/attrib/bold) tb/color/red)
     113    (tb-change-cell x y #\@ (bitwise-ior tb/color/black tb/attrib/bold) tb/color/red)
    114114 
    115 2. tb/output/256      => [0..256]
     1152. tb/output/256 => [0..256]
    116116In this mode you can leverage the 256 terminal mode:
    117117* 0x00 - 0x07: the 8 colors as in tb/output/normal
     
    122122Example usage:
    123123    (tb-change-cell x  y #\@ 184 240)
    124     (tb-change-cell x  y #\@ 0xb8 0xf0)
     124    (tb-change-cell x  y #\@ #xb8 #xf0)
    125125
    1261263. tb/output/216 => [0..216]
     
    134134If 'mode' is tb/output/current, it returns the current output mode.
    135135Default termbox output mode is tb/output/normal
     136
     137====  Constants
     138
     139Modifiers
     140
     141<constant> tb/mod/alt </constant>
     142
     143<constant> tb/mod/motion </constant>
     144
     145Colors
     146
     147<constant> tb/color/default </constant>
     148
     149<constant> tb/color/black </constant>
     150
     151<constant> tb/color/red </constant>
     152
     153<constant> tb/color/green </constant>
     154
     155<constant> tb/color/yellow </constant>
     156
     157<constant> tb/color/blue </constant>
     158
     159<constant> tb/color/magenta </constant>
     160
     161<constant> tb/color/cyan </constant>
     162
     163<constant> tb/color/white </constant>
     164
     165Attributes
     166
     167<constant> tb/attrib/bold </constant>
     168
     169<constant> tb/attrib/underline </constant>
     170
     171<constant> tb/attrib/reverse </constant>
    136172
    137173
Note: See TracChangeset for help on using the changeset viewer.