Skip to content

panic when scrolling #731

@jeevithakannan2

Description

@jeevithakannan2

Describe the bug

To Reproduce

Steps to reproduce the behavior:

  1. Run any command that outputs a very long message.
  2. Press pageup 3 to 4 times.
  3. See error.

Expected behavior

  • No panic and scroll up

Screenshots

image

Additional context

Workarounds

  • Limit the scroll offset up to the maximum number of rows of terminal
    let mut parser = vt100::Parser::new(size.height, size.width, 200);
  • Remove the scroll functionality for now.

Solution

  • Fork the vt100 and make our own crate just like the how other big projects are doing ( Big changes needed in linutil )
  • Switching to a different parser ( Not ideal ).

Checklist

  • I checked for duplicate issues.
  • I checked already existing discussions.
  • This issue is not included in the roadmap.
  • This issue is present on both stable and development branches.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions