Commit e4da3ca64bcad1fdc29ca2f509d73fe5727471c4

Authored by perry.werneck@gmail.com
1 parent e86fe915
Exists in master and in 1 other branch develop

Removendo includes obsoletas, sessão passa a ser criada automaticamente caso alg…

…uma função da lib seja chamada com NULL no handle
Showing 1 changed file with 15 additions and 0 deletions   Show diff stats
oia.c
... ... @@ -505,7 +505,9 @@ void v3270_draw_oia(cairo_t *cr, H3270 *host, int row, int cols, struct v3270_me
505 505 #ifdef HAVE_PRINTER
506 506 { V3270_OIA_PRINTER, setup_single_char_right },
507 507 #endif // HAVE_PRINTER
  508 +#ifdef HAVE_SCRIPT
508 509 { V3270_OIA_SCRIPT, setup_single_char_right },
  510 +#endif // HAVE_SCRIPT
509 511 { V3270_OIA_INSERT, setup_insert_position },
510 512 { V3270_OIA_TYPEAHEAD, setup_single_char_right },
511 513 { V3270_OIA_SHIFT, setup_double_char_position },
... ... @@ -1051,7 +1053,20 @@ void v3270_update_oia(H3270 *session, LIB3270_FLAG id, unsigned char on)
1051 1053 update_text_field(terminal,on,V3270_OIA_TYPEAHEAD,"T");
1052 1054 break;
1053 1055  
  1056 +#ifdef HAVE_PRINTER
  1057 + case LIB3270_FLAG_PRINTER:
  1058 + update_text_field(terminal,on,V3270_OIA_PRINTER,"P");
  1059 + break;
  1060 +#endif // HAVE_PRINTER
  1061 +
  1062 +#ifdef HAVE_SCRIPT
  1063 + case LIB3270_FLAG_SCRIPT:
  1064 + update_text_field(terminal,on,V3270_OIA_SCRIPT,"S");
  1065 + break;
  1066 +#endif // HAVE_SCRIPT
  1067 +
1054 1068 default:
1055 1069 return;
1056 1070 }
  1071 +
1057 1072 }
... ...