From 9baca4ee05586204fae3264257005c5cbddcc24d Mon Sep 17 00:00:00 2001 From: PerryWerneck Date: Sat, 10 Dec 2016 18:15:39 -0200 Subject: [PATCH] Incluindo métodos para pegar o tamanho da tela. --- screen.c | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) diff --git a/screen.c b/screen.c index 3bb9946..3538d25 100644 --- a/screen.c +++ b/screen.c @@ -247,6 +247,12 @@ LIB3270_EXPORT int lib3270_get_width(H3270 *h) return h->cols; } +LIB3270_EXPORT int lib3270_get_height(H3270 *h) +{ + CHECK_SESSION_HANDLE(h); + return h->rows; +} + void update_model_info(H3270 *session, int model, int cols, int rows) { if(model == session->model_num && session->maxROWS == rows && session->maxCOLS == cols) -- libgit2 0.21.2