From 829568e6de8fb3f7ce008cb6181b43e59e744b06 Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Thu, 10 May 2012 19:54:54 +0000 Subject: [PATCH] Movendo mais campos para a estrutura de sessão --- appres.h | 2 +- ctlr.c | 2 +- glue.c | 14 +++++++------- init.c | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/appres.h b/appres.h index 1506193..6b926a4 100644 --- a/appres.h +++ b/appres.h @@ -50,7 +50,7 @@ typedef struct { // #endif /*]*/ /* Options (not toggles) */ - char mono; +// char mono; // char extended; // char m3279; // char modified_sel; diff --git a/ctlr.c b/ctlr.c index be11fca..f11d6bd 100644 --- a/ctlr.c +++ b/ctlr.c @@ -258,7 +258,7 @@ void ctlr_set_rows_cols(H3270 *session, int mn, int ovc, int ovr) // Make sure that the current rows/cols are still 24x80. session->cols = 80; session->rows = 24; - session->screen_alt = False; + session->screen_alt = 0; */ } diff --git a/glue.c b/glue.c index fad50a9..7771f4f 100644 --- a/glue.c +++ b/glue.c @@ -133,7 +133,7 @@ static void initialize(void) Trace("%s (init_calls: %d)",__FUNCTION__,init_calls); /* Set the defaults. */ - appres.mono = False; +// appres.mono = False; // appres.extended = True; #if defined(C3270) /*[*/ @@ -318,9 +318,9 @@ static const struct lib3270_option options[] = // { OptLocalEncoding,OPT_STRING,False,ResLocalEncoding,offset(local_encoding), NULL }, //#endif /*]*/ { OptModel, OPT_STRING, False, ResKeymap, offset(model), N_( "Set terminal model (screen size)" ) }, -#if !defined(_WIN32) /*[*/ - { OptMono, OPT_BOOLEAN, True, ResMono, offset(mono), N_( "Forces monochrome display" ) }, -#endif /*]*/ +// #if !defined(_WIN32) /*[*/ +// { OptMono, OPT_BOOLEAN, True, ResMono, offset(mono), N_( "Forces monochrome display" ) }, +// #endif /*]*/ // { OptOnce, OPT_BOOLEAN, True, ResOnce, offset(once), NULL }, // { OptOversize, OPT_STRING, False, ResOversize, offset(oversize), N_( "Sets the screen dimensions to be larger than the default for the chosen model (COLSxROWS)." ) }, { OptPort, OPT_STRING, False, ResPort, offset(port), N_( "The name of the default TCP port to connect" ) }, @@ -429,9 +429,9 @@ static struct { // { ResM3279, offset(m3279), XRM_BOOLEAN }, // { ResModel, offset(model), XRM_STRING }, // { ResModifiedSel, offset(modified_sel), XRM_BOOLEAN }, -#if defined(C3270) && !defined(_WIN32) /*[*/ - { ResMono, offset(mono), XRM_BOOLEAN }, -#endif /*]*/ +//#if defined(C3270) && !defined(_WIN32) /*[*/ +// { ResMono, offset(mono), XRM_BOOLEAN }, +//#endif /*]*/ { ResNumericLock, offset(numeric_lock), XRM_BOOLEAN }, { ResOerrLock, offset(oerr_lock), XRM_BOOLEAN }, // { ResOversize, offset(oversize), XRM_STRING }, diff --git a/init.c b/init.c index d7601fa..7b19e9f 100644 --- a/init.c +++ b/init.c @@ -186,7 +186,7 @@ static void lib3270_session_init(H3270 *hSession, const char *model) #endif } - if(appres.mono) + if(hSession->mono) hSession->m3279 = 0; else hSession->m3279 = 1; -- libgit2 0.21.2