Skip to content

Commit

Permalink
Discarding STX and SOH ascii control characters.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefano Stabellini committed Jun 11, 2008
1 parent 88be913 commit 1df0174
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions console.c
Expand Up @@ -1546,6 +1546,8 @@ static void console_putchar(TextConsole *s, int ch)
dprintf("putchar norm %02x '%c'\n", ch, ch > 0x1f ? ch : ' ');
switch(ch) {
case NUL:
case STX:
case SOH:
break;
case BEL:
dprintf("bell\n");
Expand Down
2 changes: 2 additions & 0 deletions console.h
Expand Up @@ -11,6 +11,8 @@

/* control characters */
#define NUL 0x00
#define SOH 0x01
#define STX 0x02
#define BEL 0x07
#define BS 0x08
#define HT 0x09
Expand Down

0 comments on commit 1df0174

Please sign in to comment.