diff options
Diffstat (limited to 'st.c')
| -rw-r--r-- | st.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -34,7 +34,7 @@ | |||
| 34 | #define BETWEEN(x, a, b) ((a) <= (x) && (x) <= (b)) | 34 | #define BETWEEN(x, a, b) ((a) <= (x) && (x) <= (b)) |
| 35 | #define LIMIT(x, a, b) (x) = (x) < (a) ? (a) : (x) > (b) ? (b) : (x) | 35 | #define LIMIT(x, a, b) (x) = (x) < (a) ? (a) : (x) > (b) ? (b) : (x) |
| 36 | #define ATTRCMP(a, b) ((a).mode != (b).mode || (a).fg != (b).fg || (a).bg != (b).bg) | 36 | #define ATTRCMP(a, b) ((a).mode != (b).mode || (a).fg != (b).fg || (a).bg != (b).bg) |
| 37 | #define IS_SET(flag) (term.mode & flag) | 37 | #define IS_SET(flag) (term.mode & (flag)) |
| 38 | 38 | ||
| 39 | /* Attribute, Cursor, Character state, Terminal mode, Screen draw mode */ | 39 | /* Attribute, Cursor, Character state, Terminal mode, Screen draw mode */ |
| 40 | enum { ATTR_NULL=0 , ATTR_REVERSE=1 , ATTR_UNDERLINE=2, ATTR_BOLD=4, ATTR_GFX=8 }; | 40 | enum { ATTR_NULL=0 , ATTR_REVERSE=1 , ATTR_UNDERLINE=2, ATTR_BOLD=4, ATTR_GFX=8 }; |
