Use wint_t for find_escape_sequences
Thanks @BourgeoisBear
This commit is contained in:
parent
ceb4d662f7
commit
29bc06513d
1 changed files with 1 additions and 1 deletions
2
lolcat.c
2
lolcat.c
|
|
@ -51,7 +51,7 @@ static char helpstr[] = "\n"
|
|||
#define ARRAY_SIZE(foo) (sizeof(foo) / sizeof(foo[0]))
|
||||
const unsigned char codes[] = { 39, 38, 44, 43, 49, 48, 84, 83, 119, 118, 154, 148, 184, 178, 214, 208, 209, 203, 204, 198, 199, 163, 164, 128, 129, 93, 99, 63, 69, 33 };
|
||||
|
||||
void find_escape_sequences(int c, int* state)
|
||||
void find_escape_sequences(wint_t c, int* state)
|
||||
{
|
||||
if (c == '\033') { /* Escape sequence YAY */
|
||||
*state = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue