Readline does not cope well with long prompt inputs
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?
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
@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.
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
@koso00 Awesome, looking forward to seeing your changes, let's continue this discussion in the dedicated feature tickets #82 and #92.