summaryrefslogtreecommitdiffhomepage
path: root/src/console/ptyc_console_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/console/ptyc_console_alloc.c')
-rw-r--r--src/console/ptyc_console_alloc.c8
1 files changed, 8 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;