A.1. TELNET appendix

The constants defined for the easier use of TELNET options and suboptions are listed in the table below. Suboptions are listed directly under the option they refer to. All suboptions have the TELNET_SB prefix. The RFC describing the given option is also shown in the table.

NameConstant value of option/suboptionDetailed in RFC #
TELNET_BINARY0856
TELNET_ECHO1857
TELNET_SUPPRESS_GO_AHEAD3858
TELNET_STATUS5859
TELNET_SB_STATUS_SB_IS0 
TELNET_SB_STATUS_SB_SEND1 
TELNET_TIMING_MARK6860
TELNET_RCTE7726
TELNET_NAOCRD10652
TELNET_SB_NAOCRD_DR0 
TELNET_SB_NAOCRD_DS1 
TELNET_NAOHTS11653
TELNET_SB_NAOHTS_DR0 
TELNET_SB_NAOHTS_DS1 
TELNET_NAOHTD12654
TELNET_SB_NAOHTD_DR0 
TELNET_SB_NAOHTD_DS1 
TELNET_NAOFFD13655
TELNET_SB_NAOFFD_DR0 
TELNET_SB_NAOFFD_DS1 
TELNET_NAOVTS14656
TELNET_SB_NAOVTS_DR0 
TELNET_SB_NAOVTS_DS1 
TELNET_NAOVTD15657
TELNET_SB_NAOVTD_DR0 
TELNET_SB_NAOVTD_DS1 
TELNET_NAOLFD16658
TELNET_SB_NAOLFD_DR0 
TELNET_SB_NAOLFD_DS1 
TELNET_EXTEND_ASCII17698
TELNET_LOGOUT18727
TELNET_BM19735
TELNET_SB_BM_DEFINE1 
TELNET_SB_BM_ACCEPT2 
TELNET_SB_BM_REFUSE3 
TELNET_SB_BM_LITERAL4 
TELNET_SB_BM_CANCEL5 
TELNET_DET201043, 732
TELNET_SB_DET_DEFINE1 
TELNET_SB_DET_ERASE2 
TELNET_SB_DET_TRANSMIT3 
TELNET_SB_DET_FORMAT4 
TELNET_SB_DET_MOVE_CURSOR5 
TELNET_SB_DET_SKIP_TO_LINE6 
TELNET_SB_DET_SKIP_TO_CHAR7 
TELNET_SB_DET_UP8 
TELNET_SB_DET_DOWN9 
TELNET_SB_DET_LEFT10 
TELNET_SB_DET_RIGHT11 
TELNET_SB_DET_HOME12 
TELNET_SB_DET_LINE_INSERT13 
TELNET_SB_DET_LINE_DELETE14 
TELNET_SB_DET_CHAR_INSERT15 
TELNET_SB_DET_CHAR_DELETE16 
TELNET_SB_DET_READ_CURSOR17 
TELNET_SB_DET_CURSOR_POSITION18 
TELNET_SB_DET_REVERSE_TAB19 
TELNET_SB_DET_TRANSMIT_SCREEN20 
TELNET_SB_DET_TRANSMIT_UNPROTECTED21 
TELNET_SB_DET_TRANSMIT_LINE22 
TELNET_SB_DET_TRANSMIT_FIELD23 
TELNET_SB_DET_TRANSMIT_REST_SCREEN24 
TELNET_SB_DET_TRANSMIT_REST_LINE25 
TELNET_SB_DET_TRANSMIT_REST_FIELD26 
TELNET_SB_DET_TRANSMIT_MODIFIED27 
TELNET_SB_DET_DATA_TRANSMIT28 
TELNET_SB_DET_ERASE_SCREEN29 
TELNET_SB_DET_ERASE_LINE30 
TELNET_SB_DET_ERASE_FIELD31 
TELNET_SB_DET_ERASE_REST_SCREEN32 
TELNET_SB_DET_ERASE_REST_LINE33 
TELNET_SB_DET_ERASE_REST_FIELD34 
TELNET_SB_DET_ERASE_UNPROTECTED35 
TELNET_SB_DET_FORMAT_DATA36 
TELNET_SB_DET_REPEAT37 
TELNET_SB_DET_SUPPRESS_PROTECTION38 
TELNET_SB_DET_FIELD_SEPARATOR39 
TELNET_SB_DET_FN40 
TELNET_SB_DET_ERROR41 
TELNET_SUPDUP21736, 734
TELNET_SUPDUP_OUTPUT22749
TELNET_SEND_LOCATION23779
TELNET_TERMINAL_TYPE241091
TELNET_SB_TERMINAL_TYPE_IS0 
TELNET_SB_TERMINAL_TYPE_SEND1 
TELNET_EOR25885
TELNET_TUID26927
TELNET_OUTMRK27933
TELNET_TTYLOC28 946 
TELNET_3270_REGIME291041
TELNET_SB_3270_REGIME_IS0 
TELNET_SB_3270_REGIME_ARE1 
TELNET_X3_PAD301053
TELNET_SB_X3_PAD_SET0 
TELNET_SB_X3_PAD_RESPONSE_SET1 
TELNET_SB_X3_PAD_IS2 
TELNET_SB_X3_PAD_RESPONSE_IS3 
TELNET_SB_X3_PAD_SEND4 
TELNET_NAWS311073
TELNET_TERMINAL_SPEED321079
TELNET_SB_TERMINAL_SPEED_IS0 
TELNET_SB_TERMINAL_SPEED_SEND1 
TELNET_TOGGLE_FLOW_CONTROL331372
TELNET_SB_TOGGLE_FLOW_CONTROL_OFF0 
TELNET_SB_TOGGLE_FLOW_CONTROL_ON1 
TELNET_SB_TOGGLE_FLOW_CONTROL_RESTART_ANY 2 
TELNET_SB_TOGGLE_FLOW_CONTROL_RESTART_XON 3 
TELNET_LINEMODE341184
TELNET_SB_LINEMODE_MODE1 
TELNET_SB_LINEMODE_FORWARDMASK2 
TELNET_SB_LINEMODE_SLC3 
TELNET_X_DISPLAY_LOCATION351096
TELNET_SB_X_DISPLAY_LOCATION_IS0 
TELNET_SB_X_DISPLAY_LOCATION_SEND1 
TELNET_OLD_ENVIRONMENT361408
TELNET_SB_OLD_ENVIRONMENT_IS0 
TELNET_SB_OLD_ENVIRONMENT_SEND1 
TELNET_SB_OLD_ENVIRONMENT_INFO2 
TELNET_AUTHENTICATION372941
TELNET_SB_AUTHENTICATION_IS0 
TELNET_SB_AUTHENTICATION_SEND1 
TELNET_SB_AUTHENTICATION_REPLY2 
TELNET_SB_AUTHENTICATION_NAME3 
TELNET_ENCRYPT382946
TELNET_SB_ENCRYPT_IS0 
TELNET_SB_ENCRYPT_SUPPORT1 
TELNET_SB_ENCRYPT_REPLY2 
TELNET_SB_ENCRYPT_START3 
TELNET_SB_ENCRYPT_END4 
TELNET_SB_ENCRYPT_REQUEST_START5 
TELNET_SB_ENCRYPT_REQUEST_END6 
TELNET_SB_ENCRYPT_ENC_KEYID7 
TELNET_SB_ENCRYPT_DEC_KEYID8 
TELNET_ENVIRONMENT391572
TELNET_SB_ENVIRONMENT_IS0 
TELNET_SB_ENVIRONMENT_SEND1 
TELNET_SB_ENVIRONMENT_INFO2 
TELNET_TN3270E401647
TELNET_SB_TN3270E_ASSOCIATE0 
TELNET_SB_TN3270E_CONNECT1 
TELNET_SB_TN3270E_DEVICE_TYPE2 
TELNET_SB_TN3270E_FUNCTIONS3 
TELNET_SB_TN3270E_IS4 
TELNET_SB_TN3270E_REASON5 
TELNET_SB_TN3270E_REJECT6 
TELNET_SB_TN3270E_REQUEST7 
TELNET_SB_TN3270E_SEND8 
TELNET_CHARSET422066
TELNET_SB_CHARSET_REQUEST1 
TELNET_SB_CHARSET_ACCEPTED2 
TELNET_SB_CHARSET_REJECTED3 
TELNET_SB_CHARSET_TTABLE_IS4 
TELNET_SB_CHARSET_TTABLE_REJECTED5 
TELNET_SB_CHARSET_TTABLE_ACK6 
TELNET_SB_CHARSET_TTABLE_NAK7 
TELNET_COM_PORT442217
TELNET_SB_COM_PORT_CLI_SET_BAUDRATE1 
TELNET_SB_COM_PORT_CLI_SET_DATASIZE2 
TELNET_SB_COM_PORT_CLI_SET_PARITY3 
TELNET_SB_COM_PORT_CLI_SET_STOPSIZE4 
TELNET_SB_COM_PORT_CLI_SET_CONTROL5 
TELNET_SB_COM_PORT_CLI_NOTIFY_LINESTATE6 
TELNET_SB_COM_PORT_CLI_NOTIFY_MODEMSTATE 7 
TELNET_SB_COM_PORT_CLI_FLOWCONTROL_SUSPEND 8 
TELNET_SB_COM_PORT_CLI_FLOWCONTROL_RESUME 9 
TELNET_SB_COM_PORT_CLI_SET_LINESTATE_MASK 10 
TELNET_SB_COM_PORT_CLI_SET_MODEMSTATE_MASK 11 
TELNET_SB_COM_PORT_CLI_PURGE_DATA12 
TELNET_SB_COM_PORT_SVR_SET_BAUDRATE101 
TELNET_SB_COM_PORT_SVR_SET_DATASIZE102 
TELNET_SB_COM_PORT_SVR_SET_PARITY103 
TELNET_SB_COM_PORT_SVR_SET_STOPSIZE104 
TELNET_SB_COM_PORT_SVR_SET_CONTROL105 
TELNET_SB_COM_PORT_SVR_NOTIFY_LINESTATE106 
TELNET_SB_COM_PORT_SVR_NOTIFY_MODEMSTATE 107 
TELNET_SB_COM_PORT_SVR_FLOWCONTROL_SUSPEND 108 
TELNET_SB_COM_PORT_SVR_FLOWCONTROL_RESUME 109 
TELNET_SB_COM_PORT_SVR_SET_LINESTATE_MASK 110 
TELNET_SB_COM_PORT_SVR_SET_MODEMSTATE_MASK 111 
TELNET_SB_COM_PORT_SVR_PURGE_DATA112 
TELNET_KERMIT472840
TELNET_SB_KERMIT_START_SERVER0 
TELNET_SB_KERMIT_STOP_SERVER1 
TELNET_SB_KERMIT_REQ_START_SERVER2 
TELNET_SB_KERMIT_REQ_STOP_SERVER3 
TELNET_SB_KERMIT_SOP4 
TELNET_SB_KERMIT_RESP_START_SERVER8 
TELNET_SB_KERMIT_RESP_STOP_SERVER9 
TELNET_EXOPL255861
TELNET_SUBLIMINAL_MSG2571097

Table A.1. TELNET options and suboptions