summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/console/ptyc_console_writer.c8
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;