diff options
author | midipix <writeonce@midipix.org> | 2016-07-20 15:25:39 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-07-21 03:47:30 -0400 |
commit | f7f96356ac2d0d248cb911a8f97050d2b31165d7 (patch) | |
tree | ce1f18dea8c56cee9282ea86e3937fae2e9d2b56 | |
parent | 9cd8e5d920e96d53971870e5e437a9c9c831d3e4 (diff) | |
download | ptycon-f7f96356ac2d0d248cb911a8f97050d2b31165d7.tar.bz2 ptycon-f7f96356ac2d0d248cb911a8f97050d2b31165d7.tar.xz |
console: added screen buffer size initialization.
-rw-r--r-- | src/console/ptyc_console_alloc.c | 8 | ||||
-rw-r--r-- | src/internal/ptycon_bridge_impl.h | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/console/ptyc_console_alloc.c b/src/console/ptyc_console_alloc.c index b1fee77..ea44971 100644 --- a/src/console/ptyc_console_alloc.c +++ b/src/console/ptyc_console_alloc.c @@ -110,6 +110,11 @@ static int ptyc_init_console(struct ptyc_term_ctx * tctx) 0,0,NT_CONSOLE_TEXTMODE_BUFFER,0))) return NT_STATUS_UNSUCCESSFUL; + if (!(ntcon->set_console_screen_buffer_size( + tctx->hout, + tctx->screen_size))) + return NT_STATUS_UNSUCCESSFUL; + if (!(ntcon->set_console_active_screen_buffer(tctx->hout))) return NT_STATUS_UNSUCCESSFUL; @@ -155,6 +160,9 @@ int ptyc_alloc_console(struct ptyc_driver_ctx * dctx) tctx = &ictx->tctx; lctx = &ictx->lctx; + tctx->screen_size.x = 512; + tctx->screen_size.y = 4096; + if (!(ntcon->alloc_console())) return NT_STATUS_UNSUCCESSFUL; diff --git a/src/internal/ptycon_bridge_impl.h b/src/internal/ptycon_bridge_impl.h index 279ce07..7f882da 100644 --- a/src/internal/ptycon_bridge_impl.h +++ b/src/internal/ptycon_bridge_impl.h @@ -53,6 +53,8 @@ struct ptyc_term_ctx { ptyc_term_handler * ctrl_command; uint16_t foreground; uint16_t background; + nt_coord screen_size; + nt_coord window_size; struct ptyc_term_data data; struct ptyc_term_input input; }; |