version 1.9, 2013/06/07 13:16:18 |
version 1.10, 2017/02/11 14:57:15 |
Line 323 encode_string(const char *term, const ch |
|
Line 323 encode_string(const char *term, const ch |
|
last = '\0'; |
last = '\0'; |
/* Convert escape codes */ |
/* Convert escape codes */ |
while ((ch = *str++) != '\0') { |
while ((ch = *str++) != '\0') { |
|
if (ch == '\n') { |
|
/* Following a newline, strip leading whitespace from |
|
* capability strings. */ |
|
while (isspace((unsigned char)*str)) |
|
str++; |
|
continue; |
|
} |
if (slash == 0 && ch == '\\') { |
if (slash == 0 && ch == '\\') { |
slash = 1; |
slash = 1; |
continue; |
continue; |