From 62462a93af5cdc6af536ec23fb4bc3dea3f0baf7 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 18 Aug 2016 04:00:09 -0400 Subject: console: ptyc_init_console(): obtain cursor info. --- src/console/ptyc_console_alloc.c | 6 ++++++ src/internal/ptycon_bridge_impl.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/console/ptyc_console_alloc.c b/src/console/ptyc_console_alloc.c index a8f1610..7beee15 100644 --- a/src/console/ptyc_console_alloc.c +++ b/src/console/ptyc_console_alloc.c @@ -144,6 +144,12 @@ static int ptyc_init_console(struct ptyc_term_ctx * tctx) true))) return NT_STATUS_UNSUCCESSFUL; + /* cursor info */ + if (!(ntcon->get_console_cursor_info( + tctx->hout, + &tctx->cursor_info))) + return NT_STATUS_UNSUCCESSFUL; + return NT_STATUS_SUCCESS; } diff --git a/src/internal/ptycon_bridge_impl.h b/src/internal/ptycon_bridge_impl.h index 6e31aad..49c1cad 100644 --- a/src/internal/ptycon_bridge_impl.h +++ b/src/internal/ptycon_bridge_impl.h @@ -62,6 +62,7 @@ struct ptyc_term_ctx { nt_coord screen_size; nt_coord window_size; nt_console_screen_buffer_info screen_info; + nt_console_cursor_info cursor_info; struct ptyc_term_data data; struct ptyc_term_input input; }; -- cgit v1.2.3