diff options
author | midipix <writeonce@midipix.org> | 2016-08-18 04:00:09 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-08-18 11:18:29 -0400 |
commit | 62462a93af5cdc6af536ec23fb4bc3dea3f0baf7 (patch) | |
tree | 18891e1c4a9ed3235e9694b6f5535aa654857a48 /src | |
parent | 083e87e91d9b0456ac44c6450a3f8eeb9c9f10df (diff) | |
download | ptycon-62462a93af5cdc6af536ec23fb4bc3dea3f0baf7.tar.bz2 ptycon-62462a93af5cdc6af536ec23fb4bc3dea3f0baf7.tar.xz |
console: ptyc_init_console(): obtain cursor info.
Diffstat (limited to 'src')
-rw-r--r-- | src/console/ptyc_console_alloc.c | 6 | ||||
-rw-r--r-- | src/internal/ptycon_bridge_impl.h | 1 |
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; }; |