Commit 829568e6de8fb3f7ce008cb6181b43e59e744b06
1 parent
f0298d3d
Exists in
master
and in
3 other branches
Movendo mais campos para a estrutura de sessão
Showing
4 changed files
with
10 additions
and
10 deletions
Show diff stats
appres.h
@@ -50,7 +50,7 @@ typedef struct { | @@ -50,7 +50,7 @@ typedef struct { | ||
50 | // #endif /*]*/ | 50 | // #endif /*]*/ |
51 | 51 | ||
52 | /* Options (not toggles) */ | 52 | /* Options (not toggles) */ |
53 | - char mono; | 53 | +// char mono; |
54 | // char extended; | 54 | // char extended; |
55 | // char m3279; | 55 | // char m3279; |
56 | // char modified_sel; | 56 | // char modified_sel; |
ctlr.c
@@ -258,7 +258,7 @@ void ctlr_set_rows_cols(H3270 *session, int mn, int ovc, int ovr) | @@ -258,7 +258,7 @@ void ctlr_set_rows_cols(H3270 *session, int mn, int ovc, int ovr) | ||
258 | // Make sure that the current rows/cols are still 24x80. | 258 | // Make sure that the current rows/cols are still 24x80. |
259 | session->cols = 80; | 259 | session->cols = 80; |
260 | session->rows = 24; | 260 | session->rows = 24; |
261 | - session->screen_alt = False; | 261 | + session->screen_alt = 0; |
262 | */ | 262 | */ |
263 | 263 | ||
264 | } | 264 | } |
glue.c
@@ -133,7 +133,7 @@ static void initialize(void) | @@ -133,7 +133,7 @@ static void initialize(void) | ||
133 | Trace("%s (init_calls: %d)",__FUNCTION__,init_calls); | 133 | Trace("%s (init_calls: %d)",__FUNCTION__,init_calls); |
134 | 134 | ||
135 | /* Set the defaults. */ | 135 | /* Set the defaults. */ |
136 | - appres.mono = False; | 136 | +// appres.mono = False; |
137 | // appres.extended = True; | 137 | // appres.extended = True; |
138 | 138 | ||
139 | #if defined(C3270) /*[*/ | 139 | #if defined(C3270) /*[*/ |
@@ -318,9 +318,9 @@ static const struct lib3270_option options[] = | @@ -318,9 +318,9 @@ static const struct lib3270_option options[] = | ||
318 | // { OptLocalEncoding,OPT_STRING,False,ResLocalEncoding,offset(local_encoding), NULL }, | 318 | // { OptLocalEncoding,OPT_STRING,False,ResLocalEncoding,offset(local_encoding), NULL }, |
319 | //#endif /*]*/ | 319 | //#endif /*]*/ |
320 | { OptModel, OPT_STRING, False, ResKeymap, offset(model), N_( "Set terminal model (screen size)" ) }, | 320 | { OptModel, OPT_STRING, False, ResKeymap, offset(model), N_( "Set terminal model (screen size)" ) }, |
321 | -#if !defined(_WIN32) /*[*/ | ||
322 | - { OptMono, OPT_BOOLEAN, True, ResMono, offset(mono), N_( "Forces monochrome display" ) }, | ||
323 | -#endif /*]*/ | 321 | +// #if !defined(_WIN32) /*[*/ |
322 | +// { OptMono, OPT_BOOLEAN, True, ResMono, offset(mono), N_( "Forces monochrome display" ) }, | ||
323 | +// #endif /*]*/ | ||
324 | // { OptOnce, OPT_BOOLEAN, True, ResOnce, offset(once), NULL }, | 324 | // { OptOnce, OPT_BOOLEAN, True, ResOnce, offset(once), NULL }, |
325 | // { OptOversize, OPT_STRING, False, ResOversize, offset(oversize), N_( "Sets the screen dimensions to be larger than the default for the chosen model (COLSxROWS)." ) }, | 325 | // { OptOversize, OPT_STRING, False, ResOversize, offset(oversize), N_( "Sets the screen dimensions to be larger than the default for the chosen model (COLSxROWS)." ) }, |
326 | { OptPort, OPT_STRING, False, ResPort, offset(port), N_( "The name of the default TCP port to connect" ) }, | 326 | { OptPort, OPT_STRING, False, ResPort, offset(port), N_( "The name of the default TCP port to connect" ) }, |
@@ -429,9 +429,9 @@ static struct { | @@ -429,9 +429,9 @@ static struct { | ||
429 | // { ResM3279, offset(m3279), XRM_BOOLEAN }, | 429 | // { ResM3279, offset(m3279), XRM_BOOLEAN }, |
430 | // { ResModel, offset(model), XRM_STRING }, | 430 | // { ResModel, offset(model), XRM_STRING }, |
431 | // { ResModifiedSel, offset(modified_sel), XRM_BOOLEAN }, | 431 | // { ResModifiedSel, offset(modified_sel), XRM_BOOLEAN }, |
432 | -#if defined(C3270) && !defined(_WIN32) /*[*/ | ||
433 | - { ResMono, offset(mono), XRM_BOOLEAN }, | ||
434 | -#endif /*]*/ | 432 | +//#if defined(C3270) && !defined(_WIN32) /*[*/ |
433 | +// { ResMono, offset(mono), XRM_BOOLEAN }, | ||
434 | +//#endif /*]*/ | ||
435 | { ResNumericLock, offset(numeric_lock), XRM_BOOLEAN }, | 435 | { ResNumericLock, offset(numeric_lock), XRM_BOOLEAN }, |
436 | { ResOerrLock, offset(oerr_lock), XRM_BOOLEAN }, | 436 | { ResOerrLock, offset(oerr_lock), XRM_BOOLEAN }, |
437 | // { ResOversize, offset(oversize), XRM_STRING }, | 437 | // { ResOversize, offset(oversize), XRM_STRING }, |
init.c
@@ -186,7 +186,7 @@ static void lib3270_session_init(H3270 *hSession, const char *model) | @@ -186,7 +186,7 @@ static void lib3270_session_init(H3270 *hSession, const char *model) | ||
186 | #endif | 186 | #endif |
187 | } | 187 | } |
188 | 188 | ||
189 | - if(appres.mono) | 189 | + if(hSession->mono) |
190 | hSession->m3279 = 0; | 190 | hSession->m3279 = 0; |
191 | else | 191 | else |
192 | hSession->m3279 = 1; | 192 | hSession->m3279 = 1; |