Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Max length input / Max value to display #18

Open
Esysteme opened this issue May 12, 2014 · 6 comments
Open

Max length input / Max value to display #18

Esysteme opened this issue May 12, 2014 · 6 comments
Assignees

Comments

@Esysteme
Copy link

Esysteme commented May 12, 2014

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.

@Hywan
Copy link
Member

Hywan commented May 12, 2014

(Previouly created at hoaproject/Registry#3).

Hello :-),

Could you give us a use case for such a feature?

@Hywan Hywan self-assigned this May 12, 2014
@Hywan
Copy link
Member

Hywan commented May 12, 2014

/cc @jubianchi

@Esysteme
Copy link
Author

@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)

@Hywan
Copy link
Member

Hywan commented May 14, 2014

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?

@Esysteme
Copy link
Author

I think just better to block as html when max reached

@Hywan
Copy link
Member

Hywan commented Aug 8, 2014

To implement correectly this feature, we need to detect if a character is printable or not. Consequently, this is related to #16 (comment).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants