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

term.rs: prevent clear_last_lines from deleting input below the cursor #121

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Commits on Apr 29, 2022

  1. Make sure clear_last_lines never clears below the current cursor.

    Instead, check the number of rows above the cursor position,
    and error if passed a too large number.
    grunweg committed Apr 29, 2022
    Configuration menu
    Copy the full SHA
    e96b5d7 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2022

  1. Configuration menu
    Copy the full SHA
    bf33cc9 View commit details
    Browse the repository at this point in the history
  2. wip: Add function to compute the current cursor position.

    The implementation is a proof-of-concept, and not fully polished yet.
    grunweg committed Apr 30, 2022
    Configuration menu
    Copy the full SHA
    6811ca1 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2022

  1. Polish get_cursor_position.

    - Also parse multi-digit cursor positions correctly.
    - Clear the terminal after sending the code.
    - accept an u16, as terminal can be up to 65536 chars wide or long
    - just read a limited buffer, not an entire line;
    I can use a fixed-size buffer because of the above.
    - note two current FIXMEs in the code.
    - restrict this code to UNIX systems for now.
    grunweg committed May 8, 2022
    Configuration menu
    Copy the full SHA
    5376c13 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2022

  1. Configuration menu
    Copy the full SHA
    0f7bbac View commit details
    Browse the repository at this point in the history