diff options
author | midipix <writeonce@midipix.org> | 2016-08-18 08:12:56 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-08-18 11:18:35 -0400 |
commit | 2ded43b586991998e22151d0902b85ca9ba75373 (patch) | |
tree | 3be1ea4ca589540abd75075817afb4b43b33cdee /src | |
parent | 690c8cefb49c228ad88230596485269627ac3141 (diff) | |
download | ptycon-2ded43b586991998e22151d0902b85ca9ba75373.tar.bz2 ptycon-2ded43b586991998e22151d0902b85ca9ba75373.tar.xz |
console: ptyc_flush_screen_buffer(): maintain cursor visibility.
Diffstat (limited to 'src')
-rw-r--r-- | src/console/ptyc_console_writer.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/console/ptyc_console_writer.c b/src/console/ptyc_console_writer.c index 38461a0..1729ea9 100644 --- a/src/console/ptyc_console_writer.c +++ b/src/console/ptyc_console_writer.c @@ -159,6 +159,14 @@ static void * __fastcall ptyc_flush_screen_buffer(struct ptyc_term_ctx * tctx) &nwritten, 0); + ntcon->get_console_screen_buffer_info( + tctx->hout, + &tctx->screen_info); + + ntcon->set_console_cursor_position( + tctx->hout, + tctx->screen_info.cursor_position); + tctx->wch_con = tctx->data.screen; return tctx->wch_con; |