summaryrefslogtreecommitdiff
path: root/lib/highline/terminal.rb
Commit message (Collapse)AuthorAgeFilesLines
* Do not call stty on non-ttyKeenan Brock2023-04-241-1/+1
| | | | | | | | | | | | | | | | | | | | | When testing on a non-tty (e.g.: github actions), either one of these lines produces an error: ```ruby input.echo = true ask("question", "y") { |q| q.readline = true } ``` The error is produced by ruby internals: ```bash echo | rake | cat ......stty: stdin isn't a terminal...... ``` This change skips the stty calls if the input is not on a tty, so the errors will not be produced.
* These files have no shebang and should not be executableBrandon Dunne2022-02-231-0/+0
|
* Avoid YARD warning UnknownParamOlle Jonsson2019-03-291-2/+0
|
* Remove now useless codeAbinoam P. Marques Jr2017-11-211-4/+2
|
* Prompt treated the same with or without readlineAbinoam P. Marques Jr2017-11-211-1/+1
|
* Fix rescueing without error classAbinoam P. Marques Jr2017-09-251-1/+1
|
* Fix exception suppresionAbinoam P. Marques Jr2017-09-251-6/+0
|
* Use get_character name because it implies effortAbinoam P. Marques Jr2017-09-251-1/+1
|
* Enforce double quotes on stringsAbinoam P. Marques Jr2017-07-071-3/+3
|
* Remove unecessary options paramAbinoam P. Marques Jr2017-07-021-3/+3
|
* Rubocop automatic correctionsAbinoam P. Marques Jr2017-06-301-22/+21
|
* Deprecate HighLine::Terminal::CHARACTER_MODE constant and unify ↵Abinoam Praxedes Marques Jr2015-12-141-0/+6
| | | | #character_mode approach
* Improve HighLine::Terminal and childs documentationAbinoam Praxedes Marques Jr2015-12-141-3/+10
|
* Improve HighLine::Terminal documentationAbinoam Praxedes Marques Jr2015-12-141-3/+44
|
* Promote some methods up to base class reducing duplicationAbinoam Praxedes Marques Jr2015-11-171-0/+69
|
* Remove unecessary begin clause. Use def as 'delimiter'.Abinoam Praxedes Marques Jr2015-09-091-5/+3
|
* Skip Readline tests for Windows also'Abinoam Praxedes Marques Jr2015-07-231-0/+4
|
* Make Readline tests be skipped when JRuby or RubiniusAbinoam Praxedes Marques Jr2015-07-191-0/+4
| | | | | | | We currently didn't find a way to test Readline on JRuby and Rubinius without echoing to console. At MRI Ruby we set Readline.input and Readline.output to File instances.
* Make HighLine::Terminal instances respect HighLine defined input and outputAbinoam Praxedes Marques Jr2015-07-191-3/+10
| | | | | Also save input and output as HighLine::Terminal instance variables reducing argument passing needs.
* Add Terminal::IOConsole (copy Terminal::UnixStty)Abinoam Praxedes Marques Jr2015-07-171-2/+16
|
* Add some rdoc markup for correct doc generationAbinoam Praxedes Marques Jr2015-07-171-0/+1
| | | | | Some copyright notes above scoped class/module definitions were mixing up with the main scope (HighLine) class documentation.
* Remove commented (non functional) codeAbinoam Praxedes Marques Jr2015-06-171-68/+0
| | | | As suggested by @maurogeorge at https://github.com/JEG2/highline/pull/140#discussion_r32679353
* remove unneccessary shebang lines from *.rb files in libMichal Cichra2015-06-151-1/+0
|
* Move #raw_no_echo_mode_exec from HighLine to TerminalAbinoam Praxedes Marques Jr2015-05-211-0/+9
| | | | | | | | I think the "knowledge" about how to exec a block in raw no echo mode should be contained in the HighLine::Terminal itself. (It doesn't depend on anything outside that class!) With the help of the recent commit, we could move it to there in this step.
* Ask 'terminal' for jruby? status. Don't rely on ConstantsAbinoam Praxedes Marques Jr2015-04-291-0/+4
|
* Scaffold HighLine::Terminal base classAbinoam Praxedes Marques Jr2015-04-291-1/+31
|
* Indent onlyAbinoam Praxedes Marques Jr2015-04-291-46/+46
|
* Turn SystemExtensions into TerminalAbinoam Praxedes Marques Jr2015-04-291-0/+76