1// Copyright 2017 VMware, Inc. All Rights Reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//    http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package telnet
16
17// Telnet protocol specific  values
18const (
19	// Iac is Interpret as Command
20	Iac  byte = 255
21	Dont byte = 254
22	Do   byte = 253
23	Wont byte = 252
24	Will byte = 251
25	Null byte = 0
26
27	Se  byte = 240 // Subnegotiation End
28	Nop byte = 241 // No Operation
29	Dm  byte = 242 // Data Mark
30	Brk byte = 243 // Break
31	IP  byte = 244 // Interrupt process
32	Ao  byte = 245 // Abort output
33	Ayt byte = 246 // Are You There
34	Ec  byte = 247 // Erase Character
35	El  byte = 248 // Erase Line
36	Ga  byte = 249 // Go Ahead
37	Sb  byte = 250 // Subnegotiation Begin
38
39	Binary          byte = 0   // 8-bit data path
40	Echo            byte = 1   // echo
41	Rcp             byte = 2   // prepare to reconnect
42	Sga             byte = 3   // suppress go ahead
43	Nams            byte = 4   // approximate message size
44	Status          byte = 5   // give status
45	Tm              byte = 6   // timing mark
46	Rcte            byte = 7   // remote controlled transmission and echo
47	Naol            byte = 8   // negotiate about output line width
48	Naop            byte = 9   // negotiate about output page size
49	Naocrd          byte = 10  // negotiate about CR disposition
50	Naohts          byte = 11  // negotiate about horizontal tabstops
51	Naohtd          byte = 12  // negotiate about horizontal tab disposition
52	Naoffd          byte = 13  // negotiate about formfeed disposition
53	Naovts          byte = 14  // negotiate about vertical tab stops
54	Naovtd          byte = 15  // negotiate about vertical tab disposition
55	Naolfd          byte = 16  // negotiate about output LF disposition
56	Xascii          byte = 17  // extended ascii character set
57	Logout          byte = 18  // force logout
58	Bm              byte = 19  // byte macro
59	Det             byte = 20  // data entry terminal
60	Supdup          byte = 21  // supdup protocol
61	SupdupOutput    byte = 22  // supdup output
62	SndLoc          byte = 23  // send location
63	Ttype           byte = 24  // terminal type
64	Eor             byte = 25  // end or record
65	TuID            byte = 26  // TACACS user identification
66	OutMrk          byte = 27  // output marking
67	TtyLoc          byte = 28  // terminal location number
68	Vt3270Regime    byte = 29  // 3270 regime
69	X3Pad           byte = 30  // X.3 PAD
70	Naws            byte = 31  // window size
71	Tspeed          byte = 32  // terminal speed
72	Lflow           byte = 33  // remote flow control
73	LineMode        byte = 34  // Linemode option
74	XDispLoc        byte = 35  // X Display Location
75	OldEnviron      byte = 36  // Old - Environment variables
76	Authentication  byte = 37  // Authenticate
77	Encrypt         byte = 38  // Encryption option
78	NewEnviron      byte = 39  // New - Environment variables
79	TN3270E         byte = 40  // TN3270E
80	XAuth           byte = 41  // XAUTH
81	Charset         byte = 42  // CHARSET
82	Rsp             byte = 43  // Telnet Remote Serial Port
83	ComPortOption   byte = 44  // Com Port Control Option
84	SupLocalEcho    byte = 45  // Telnet Suppress Local Echo
85	TLS             byte = 46  // Telnet Start TLS
86	Kermit          byte = 47  // KERMIT
87	SendURL         byte = 48  // SEND-URL
88	ForwardX        byte = 49  // FORWARD_X
89	PragmaLogon     byte = 138 // TELOPT PRAGMA LOGON
90	SspiLogin       byte = 139 // TELOPT SSPI LOGON
91	PragmaHeartbeat byte = 140 // TELOPT PRAGMA HEARTBEAT
92	ExtOptList      byte = 255 // Extended-Options-List
93	NoOp            byte = 0
94)
95