linux - is there a way to set "WONT NAWS" with "telnet" command? -
i turned on displaying of options .telnetrc file:
default toggle options and run telnet , among options displays:
sent naws sent iac sb naws 0 100 (100) 0 93 (93) is there way set "wont naws"? system i'm connecting doesn't handle it. (it ignores columns setting , defaults 80, injecting cr/lf characters. know if "wont naws", stop injecting cr/lf characters.)
there more 1 implementation. answer question, have read source code. example,
- the debian package telnet in "jessie" telnet (0.17-36)
- the corresponding source available download http://netkit-telnet_0.17.orig.tar.gz
- in source, option sent unconditionally, seen in
telnet.cc:
if (telnetport) { send_do(telopt_sga, 1); send_will(telopt_ttype, 1); send_will(telopt_naws, 1); send_will(telopt_tspeed, 1); send_will(telopt_lflow, 1); send_will(telopt_linemode, 1); send_will(telopt_environ, 1); send_do(telopt_status, 1); if (env_getvalue("display", 0)) send_will(telopt_xdisploc, 1); if (eight) tel_enter_binary(eight); } of course, having source, can modify , make feature configurable.
Comments
Post a Comment