tty-reader icon indicating copy to clipboard operation
tty-reader copied to clipboard

A set of methods for processing keyboard input in character, line and multiline modes.

Results 15 tty-reader issues
Sort by recently updated
recently updated
newest added

Useful if you have an application that would like to sleep at the end of every loop. This will let it wait for & collect the keypress until the sleep...

### Describe the problem A potential suggestion/feeling check before I go ahead and try to contribute. We have a user of our CLI tool (which uses shiny TTY::Prompt) that was...

enhancement

### Describe the change It adds the XTERM escape code `\eO` ### Why are we doing this? The F1-F4 keys were not correctly detected on a MacOS terminal. ### Benefits...

### Describe the change Fix typo ### Requirements - [X] Tests written & passing locally? - [X] Code style checked? - [X] Rebased with `master` branch? - [X] Documentation updated?...

@jemc My initial stub at high level api would be something along these lines: ```ruby LIST = ['delete', 'update', 'search'] reader = TTY::Reader.new reader.completion_append_character = " " reader.completion_proc = ->...

enhancement

@roscom suggested in [tty-prompt issue](https://github.com/piotrmurach/tty-prompt/issues/103) "Secondly, I currently manage the history in a redis cache, outside of rb-readline which is then available to all users. On session start up, the...

enhancement
help wanted

### Describe the change This is a trivial change that affords `^W` etc; closing #29 and #25. ### Why are we doing this? Users expect common shell key bindings to...

Hey, trying to implement `^W` in `read_line` and can't figure out how to do it. It appears that [control characters have been explicitly no-op'd](https://github.com/piotrmurach/tty-reader/blob/ac9257188cfd19f91f5386217ef29c218b9a83bd/lib/tty/reader.rb#L339) in the ordinary control flow. When...

### Describe the change This PR addresses an issue with multiline prompts whereby longer previous lines cause the width calculation to be incorrect, leading to strange behaviour in the terminal...

### Describe the problem return key press event key has ctrl=true # when only pressing return, and not ctrl ### Steps to reproduce the problem ``` reader.on(:keypress) do |event| puts...

bug