summaryrefslogtreecommitdiffhomepage
path: root/src/console
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-08-18 04:00:09 -0400
committermidipix <writeonce@midipix.org>2016-08-18 11:18:29 -0400
commit62462a93af5cdc6af536ec23fb4bc3dea3f0baf7 (patch)
tree18891e1c4a9ed3235e9694b6f5535aa654857a48 /src/console
parent083e87e91d9b0456ac44c6450a3f8eeb9c9f10df (diff)
downloadptycon-62462a93af5cdc6af536ec23fb4bc3dea3f0baf7.tar.bz2
ptycon-62462a93af5cdc6af536ec23fb4bc3dea3f0baf7.tar.xz
console: ptyc_init_console(): obtain cursor info.
Diffstat (limited to 'src/console')
-rw-r--r--src/console/ptyc_console_alloc.c6
1 files changed, 6 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;
}