Skip to content

Commit 248ba1c

Browse files
committed
Filter out bell in apty
1 parent 7cc379e commit 248ba1c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

bin/apty.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ void send_(struct ptybuf *buf) {
4040
char *p = buf->d;
4141
for (; i < n; i++) {
4242
switch (p[i]) {
43+
case '\a':
44+
/* filter out bell */
45+
break;
4346
case '\b':
4447
c -= c > bol;
4548
eol -= eol == c + 1;

0 commit comments

Comments
 (0)