Re: telnet client enhancement proposal
Simon Josefsson via Bug reports for the GNU Internet utilities <[email protected]> Mon, 12 Jan 2026 08:56:12 +0100
| Newsgroups | gmane.comp.gnu.inetutils.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hi! Interesting, how do other telnet clients behave wrt to this? Is your suggested solution implemented by any other client? I'm not sure if we should introduce a implementation difference like this without serious consideration and (attempts to) discussion with other implementers. /Simon [email protected] writes: > Hi! > > > I recently came across an ancient issue related to the ambiguity in > interpreting > the escape key in terminal applications. The problem lies in > distinguishing the > escape key "\x1b" from ANSI escape sequences (e.g., "\x1b[A" for the > up arrow). > > Traditionally, this issue has been addressed by measuring the time gap > between > receiving the initial escape character "\x1b" and the following > "[A". If there > is a noticeable delay between them, they are considered as separate > keys (ESC, > '[', and 'A'). Otherwise, they are treated as a single up arrow key > press. > > While this time-based approach works well for locally executed terminal > applications, telnet applications are still affected by network > latency issues. > > To tackle this, I suggest enabling the negotiation of the Telnet End > of Record > Option in the Inetutils telnet client. Currently, the client does not > seem to > support this option effectively. Although some handling exists in the > source > code, it appears to be activated only when the TN3270 macro is defined. > > If the telnet client could send an IAC EOR 2-octet sequence after each > key > press, the ambiguity could be easily resolved, at least in character > mode > transmission. > > > Erich > >
signature.asc
(application/pgp-signature, 1.2 KB)
-----BEGIN PGP SIGNATURE----- iQNoBAEWCgMQFiEEo8ychwudMQq61M8vUXIrCP5HRaIFAmlkqRwUHHNpbW9uQGpv c2Vmc3Nvbi5vcmfCHCYAmDMEXJLOtBYJKwYBBAHaRw8BAQdACIcrZIvhrxDBkK9f V+QlTmXxo2naObDuGtw58YaxlOu0JVNpbW9uIEpvc2Vmc3NvbiA8c2ltb25Aam9z ZWZzc29uLm9yZz6IlgQTFggAPgIbAwULCQgHAgYVCAkKCwIEFgIDAQIeAQIXgBYh BLHSvRN1vst4TPT4xNc89jjFPAa+BQJn0XQkBQkNZGbwAAoJENc89jjFPAa+BtIA /iR73CfBurG9y8pASh3cbGOMHpDZfMAtosu6jbpO69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