diff options
author | midipix <writeonce@midipix.org> | 2016-08-13 17:27:11 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-08-14 07:49:33 -0400 |
commit | 79c2fe897d88310734d46cfa6692fda3727e76d5 (patch) | |
tree | b27bd0e84ae9964637b8e41be71f7adc534fdfd1 /src/console/ptyc_console_writer.c | |
parent | fd0f9bfc4a2287f34924370240e313042c0b17d8 (diff) | |
download | ptycon-79c2fe897d88310734d46cfa6692fda3727e76d5.tar.bz2 ptycon-79c2fe897d88310734d46cfa6692fda3727e76d5.tar.xz |
console bridge: added --bell support.
Diffstat (limited to 'src/console/ptyc_console_writer.c')
-rw-r--r-- | src/console/ptyc_console_writer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/console/ptyc_console_writer.c b/src/console/ptyc_console_writer.c index 63384c0..38461a0 100644 --- a/src/console/ptyc_console_writer.c +++ b/src/console/ptyc_console_writer.c @@ -109,6 +109,11 @@ static void * __fastcall ptyc_screen_handler(struct ptyc_term_ctx * tctx) /* switch mode */ return tctx->ctrl_handler; } else { + /* filter out bell key? */ + if (*tctx->wch_pty == 0x7) + if (!(tctx->drvflags & PTYC_DRIVER_BELL)) + return ptyc_screen_handler; + /* copy character to the screen buffer */ *tctx->wch_con = *tctx->wch_pty; |