├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── BUG_REPORT.md │ ├── FEATURE_REQUEST.md │ └── config.yml ├── PULL_REQUEST_TEMPLATE.md └── workflows │ └── ci.yml ├── .gitignore ├── .rspec ├── .rubocop.yml ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── Gemfile ├── LICENSE.txt ├── README.md ├── Rakefile ├── appveyor.yml ├── assets └── shell.gif ├── benchmarks ├── speed_read_char.rb └── speed_read_line.rb ├── bin ├── console └── setup ├── examples ├── keypress.rb ├── keypress_nonblock.rb ├── line.rb ├── multi_prompt.rb ├── multiline.rb ├── noecho.rb └── shell.rb ├── lib ├── tty-reader.rb └── tty │ ├── reader.rb │ └── reader │ ├── completer.rb │ ├── completion_event.rb │ ├── completions.rb │ ├── console.rb │ ├── history.rb │ ├── key_event.rb │ ├── keys.rb │ ├── line.rb │ ├── mode.rb │ ├── version.rb │ ├── win_api.rb │ └── win_console.rb ├── spec ├── perf │ └── read_line_spec.rb ├── spec_helper.rb └── unit │ ├── complete_word_spec.rb │ ├── completions_spec.rb │ ├── history_disabled_spec.rb │ ├── history_spec.rb │ ├── key_event_spec.rb │ ├── line_spec.rb │ ├── publish_keypress_event_spec.rb │ ├── read_keypress_spec.rb │ ├── read_line_spec.rb │ ├── read_multiline_spec.rb │ └── subscribe_spec.rb ├── tasks ├── console.rake ├── coverage.rake └── spec.rake └── tty-reader.gemspec /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: piotrmurach 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/BUG_REPORT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/.github/ISSUE_TEMPLATE/BUG_REPORT.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/.github/ISSUE_TEMPLATE/config.yml -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | --require spec_helper 3 | --warnings 4 | -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/Rakefile -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/appveyor.yml -------------------------------------------------------------------------------- /assets/shell.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/assets/shell.gif -------------------------------------------------------------------------------- /benchmarks/speed_read_char.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/benchmarks/speed_read_char.rb -------------------------------------------------------------------------------- /benchmarks/speed_read_line.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/benchmarks/speed_read_line.rb -------------------------------------------------------------------------------- /bin/console: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/bin/console -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/bin/setup -------------------------------------------------------------------------------- /examples/keypress.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/examples/keypress.rb -------------------------------------------------------------------------------- /examples/keypress_nonblock.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/examples/keypress_nonblock.rb -------------------------------------------------------------------------------- /examples/line.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/examples/line.rb -------------------------------------------------------------------------------- /examples/multi_prompt.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/examples/multi_prompt.rb -------------------------------------------------------------------------------- /examples/multiline.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/examples/multiline.rb -------------------------------------------------------------------------------- /examples/noecho.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/examples/noecho.rb -------------------------------------------------------------------------------- /examples/shell.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/examples/shell.rb -------------------------------------------------------------------------------- /lib/tty-reader.rb: -------------------------------------------------------------------------------- 1 | require_relative 'tty/reader' 2 | -------------------------------------------------------------------------------- /lib/tty/reader.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/lib/tty/reader.rb -------------------------------------------------------------------------------- /lib/tty/reader/completer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/lib/tty/reader/completer.rb -------------------------------------------------------------------------------- /lib/tty/reader/completion_event.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/lib/tty/reader/completion_event.rb -------------------------------------------------------------------------------- /lib/tty/reader/completions.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/lib/tty/reader/completions.rb -------------------------------------------------------------------------------- /lib/tty/reader/console.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/lib/tty/reader/console.rb -------------------------------------------------------------------------------- /lib/tty/reader/history.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/lib/tty/reader/history.rb -------------------------------------------------------------------------------- /lib/tty/reader/key_event.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/lib/tty/reader/key_event.rb -------------------------------------------------------------------------------- /lib/tty/reader/keys.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/lib/tty/reader/keys.rb -------------------------------------------------------------------------------- /lib/tty/reader/line.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/lib/tty/reader/line.rb -------------------------------------------------------------------------------- /lib/tty/reader/mode.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/lib/tty/reader/mode.rb -------------------------------------------------------------------------------- /lib/tty/reader/version.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/lib/tty/reader/version.rb -------------------------------------------------------------------------------- /lib/tty/reader/win_api.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/lib/tty/reader/win_api.rb -------------------------------------------------------------------------------- /lib/tty/reader/win_console.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/lib/tty/reader/win_console.rb -------------------------------------------------------------------------------- /spec/perf/read_line_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/spec/perf/read_line_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/unit/complete_word_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/spec/unit/complete_word_spec.rb -------------------------------------------------------------------------------- /spec/unit/completions_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/spec/unit/completions_spec.rb -------------------------------------------------------------------------------- /spec/unit/history_disabled_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/spec/unit/history_disabled_spec.rb -------------------------------------------------------------------------------- /spec/unit/history_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/spec/unit/history_spec.rb -------------------------------------------------------------------------------- /spec/unit/key_event_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/spec/unit/key_event_spec.rb -------------------------------------------------------------------------------- /spec/unit/line_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/spec/unit/line_spec.rb -------------------------------------------------------------------------------- /spec/unit/publish_keypress_event_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/spec/unit/publish_keypress_event_spec.rb -------------------------------------------------------------------------------- /spec/unit/read_keypress_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/spec/unit/read_keypress_spec.rb -------------------------------------------------------------------------------- /spec/unit/read_line_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/spec/unit/read_line_spec.rb -------------------------------------------------------------------------------- /spec/unit/read_multiline_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/spec/unit/read_multiline_spec.rb -------------------------------------------------------------------------------- /spec/unit/subscribe_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/spec/unit/subscribe_spec.rb -------------------------------------------------------------------------------- /tasks/console.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/tasks/console.rake -------------------------------------------------------------------------------- /tasks/coverage.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/tasks/coverage.rake -------------------------------------------------------------------------------- /tasks/spec.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/tasks/spec.rake -------------------------------------------------------------------------------- /tty-reader.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-reader/HEAD/tty-reader.gemspec --------------------------------------------------------------------------------