diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-04-03 11:38:55 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-04-03 11:38:55 +0000 |
commit | 2c5ea79f1762dcbafca8d08bc5bdb47d75670f03 (patch) | |
tree | 281e1696494e62aab0602d0186669520f7ecec7b /Src/zsh.h | |
parent | b44ed0b03250e17a21194ca63602ff8dd5191583 (diff) | |
download | zsh-2c5ea79f1762dcbafca8d08bc5bdb47d75670f03.tar.gz zsh-2c5ea79f1762dcbafca8d08bc5bdb47d75670f03.tar.xz zsh-2c5ea79f1762dcbafca8d08bc5bdb47d75670f03.zip |
24782: initial go at highlighting of characters in zle command lines
Diffstat (limited to 'Src/zsh.h')
-rw-r--r-- | Src/zsh.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Src/zsh.h b/Src/zsh.h index 495f51ad2..08dd140fd 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -1941,6 +1941,8 @@ struct ttyinfo { #define TXTUNDERLINE 0x04 #define TXTDIRTY 0x80 +#define TXT_ATTR_ON_MASK 0x07 + #define txtisset(X) (txtattrmask & (X)) #define txtset(X) (txtattrmask |= (X)) #define txtunset(X) (txtattrmask &= ~(X)) @@ -1949,7 +1951,11 @@ struct ttyinfo { #define TXTNOSTANDOUT 0x20 #define TXTNOUNDERLINE 0x40 -#define txtchangeisset(X) (txtchange & (X)) +#define TXT_ATTR_OFF_MASK 0x70 +/* Bits to shift off right to get on */ +#define TXT_ATTR_OFF_ON_SHIFT (4) + +#define txtchangeisset(T,X) ((T) & (X)) #define txtchangeset(X, Y) (txtchange |= (X), txtchange &= ~(Y)) /****************************************/ |