Skip to content

Readline does not cope well with long prompt inputs #4

Open

Description

@clue
No description provided.

Activity

  1. added
    bugSomething isn't working
    on Sep 9, 2014
  2. clue commented on May 18, 2015

    @clue
    OwnerAuthor

    We can probably use control codes (VT100 anybody?) to get the current terminal size and limit our user input line to the maximum width available. This is non-trivial, but certainly doable. Any other thoughts?

  3. added this to the v2.4.0 milestone on Aug 19, 2019
  4. naive17 commented on Sep 16, 2019

    @naive17

    we can use intval(getenv('COLUMNS')), but i don't think that limiting user input length is the right answer.
    Maybe something like nano scrolling line is the way

  5. clue commented on Sep 24, 2019

    @clue
    OwnerAuthor

    @koso00 Thanks for you input, I agree relying on COLUMNS could be a starting point, but this doesn't completely solve this problem. For instance, we also need to take care of resize events, so I've just filed #92 to keep track of this underlying feature.

    Once we know the terminal size, we can limit and/or wrap the user input line.

  6. naive17 commented on Sep 25, 2019

    @naive17

    Actually i forked the project, you can see i added mouse events and i'm planning to add resize with the same "way".
    you can watch yourself

  7. clue commented on Sep 25, 2019

    @clue
    OwnerAuthor

    @koso00 Awesome, looking forward to seeing your changes, let's continue this discussion in the dedicated feature tickets #82 and #92.

  8. modified the milestones: v2.4.0, v2.5.0 on Nov 20, 2020
  9. removed this from the v2.5.0 milestone on Jun 13, 2021
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

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions