Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Telnet LINEMODE Option #114

Open
myonara opened this issue Aug 10, 2024 · 0 comments · May be fixed by #127
Open

Implement Telnet LINEMODE Option #114

myonara opened this issue Aug 10, 2024 · 0 comments · May be fixed by #127
Assignees
Labels
backend to fix in the backend frontend to be fixed in the frontend

Comments

@myonara
Copy link
Contributor

myonara commented Aug 10, 2024

Description:
Implement support for the Telnet LINEMODE option to allow the client to specify line-by-line input mode, improving efficiency for text-based applications. This option is especially useful for applications where data is processed as complete lines rather than character-by-character.

Details:

  1. Option Code: 34

  2. Functionality:

    • When LINEMODE is negotiated, the server allows the client to handle input locally, sending entire lines only after the user presses Enter.
    • LINEMODE includes several suboptions that allow for further customization:
      • MODE: Specifies whether to operate in line or character mode.
      • EDIT: Allows basic local editing, such as handling backspaces.
      • TRAPSIG: Allows the client to manage signal commands locally (e.g., interrupt or quit) before sending them to the server.
      • SLC (Special Line Characters): Defines specific characters for functions like interrupt, EOF, or suspend.
  3. Expected Workflow:

    • The client responds to IAC DO LINEMODE from the server with IAC WILL LINEMODE.
    • The server may then send specific LINEMODE suboptions, to which the client should respond appropriately.
    • The client should support common suboptions like MODE, EDIT, and TRAPSIG for basic line editing and control.
  4. Acceptance Criteria:

    • The client successfully negotiates LINEMODE with the server.
    • The client properly handles and responds to LINEMODE suboptions.
    • Input is processed in line mode after negotiation, sending data only after the user completes each line.

References:

@myonara myonara added backend to fix in the backend frontend to be fixed in the frontend labels Aug 10, 2024
@mystiker mystiker changed the title telnet option LINEMODE Implement Telnet LINEMODE Option Nov 4, 2024
@mystiker mystiker linked a pull request Nov 4, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend to fix in the backend frontend to be fixed in the frontend
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants