Max length input / Max value to display
Esysteme opened this issue · 6 comments
It should be nice to add a max value of input :
- Add the max to display to stay in cell (after have to move with curstor < >
- Add a limit of length, to prevent overflow
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
(Previouly created at hoaproject/Registry#3).
Hello :-),
Could you give us a use case for such a feature?
/cc @jubianchi
the goal is to make CLI intervace as :
The goal is the text have to stay in input and don't break the windows.
In second time save the bottom and put it back after we try autocomplete. (nice to have)
I think that this is not part of Hoa\Console\Readline
to support an “input”. But having a max length does not sound bad. Do we print an error when the “end of the line” is reached?
I think just better to block as html when max reached
To implement correectly this feature, we need to detect if a character is printable or not. Consequently, this is related to #16 (comment).