mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
vt: execute: handle \0 (NUL), by ignoring it
This commit is contained in:
parent
d2e0ba3670
commit
332f1c6a21
1 changed files with 3 additions and 0 deletions
3
vt.c
3
vt.c
|
|
@ -789,6 +789,9 @@ action(struct terminal *term, enum action _action, uint8_t c)
|
|||
case ACTION_EXECUTE:
|
||||
LOG_DBG("execute: 0x%02x", c);
|
||||
switch (c) {
|
||||
case '\0':
|
||||
break;
|
||||
|
||||
case '\n':
|
||||
/* LF - line feed */
|
||||
term_linefeed(term);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue