summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/console/ptyc_console_alloc.c6
-rw-r--r--src/internal/ptycon_bridge_impl.h1
2 files changed, 7 insertions, 0 deletions
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;
};