Skip to content

Scrollback for non-raw terminals #8

Description

@willothy

Can check if terminal is raw via the termios crate. All terminals can have scrollback buffers since dynamically checking if a terminal needs one would be complicated, but scroll events should be sent directly to terminals in raw mode instead of affecting the screen's view.

TODO:

  • Necessary changes:
    • Restructure process output handling to allow buffering before passthrough over RPC to client.
    • Refactor input handling to allow for more complex keymaps (refactor!: rework input handling #7)
      • Migrate fully from Termion to Termwiz?
  • Scrollback implementation
    • Add per-session scrollback buffer with bounded capacity (~1000 lines?)
    • Create basic "view" model to control the view over the scrollback buffer

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions