Commit 0181038357bf30d342cfcab38d5eea2dd36d3652
1 parent
5d97f4fb
Exists in
master
and in
5 other branches
Incluindo configuração do tipo de host via xml
Showing
2 changed files
with
19 additions
and
11 deletions
Show diff stats
src/lib3270/telnet.c
... | ... | @@ -517,16 +517,6 @@ int net_connect(H3270 *session, const char *host, char *portname, Boolean ls, Bo |
517 | 517 | vrprnt = parse_ctlchar("^R"); |
518 | 518 | vlnext = parse_ctlchar("^V"); |
519 | 519 | |
520 | -/* | |
521 | - vintr = parse_ctlchar(appres.intr); | |
522 | - vquit = parse_ctlchar(appres.quit); | |
523 | - verase = parse_ctlchar(appres.erase); | |
524 | - vkill = parse_ctlchar(appres.kill); | |
525 | - veof = parse_ctlchar(appres.eof); | |
526 | - vwerase = parse_ctlchar(appres.werase); | |
527 | - vrprnt = parse_ctlchar(appres.rprnt); | |
528 | - vlnext = parse_ctlchar(appres.lnext); | |
529 | -*/ | |
530 | 520 | t_valid = 1; |
531 | 521 | } |
532 | 522 | #endif /*]*/ | ... | ... |
src/pw3270/hostdialog.c
... | ... | @@ -202,7 +202,25 @@ |
202 | 202 | } |
203 | 203 | else |
204 | 204 | { |
205 | - #warning TODO: Configurar o tipo de host de acordo com systype | |
205 | + int f; | |
206 | + | |
207 | + iHostType = -1; | |
208 | + for(f=0;f<G_N_ELEMENTS(host_type);f++) | |
209 | + { | |
210 | + if(!g_ascii_strcasecmp(systype,host_type[f].name)) | |
211 | + { | |
212 | + g_message("Host set to %s (%s) by action property",host_type[f].name,host_type[f].description); | |
213 | + iHostType = f; | |
214 | + break; | |
215 | + } | |
216 | + } | |
217 | + | |
218 | + if(iHostType == -1) | |
219 | + { | |
220 | + iHostType = 0; | |
221 | + g_message("Unexpected host type \"%s\", using defaults",systype); | |
222 | + } | |
223 | + | |
206 | 224 | } |
207 | 225 | |
208 | 226 | if(!colortype) | ... | ... |