From 2ded43b586991998e22151d0902b85ca9ba75373 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 18 Aug 2016 08:12:56 -0400 Subject: console: ptyc_flush_screen_buffer(): maintain cursor visibility. --- src/console/ptyc_console_writer.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/console') 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; -- cgit v1.2.3