Permalink
Browse files

Used #getc instead of #getch to make sure not to reset the raw mode t…

…oo often
  • Loading branch information...
Mon-Ouie committed Apr 6, 2013
1 parent 616af55 commit 5011eb37994b5e2b259fd6bd395868b5158ff6c9
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/coolline/coolline.rb
View
@@ -209,8 +209,7 @@ def readline(prompt = ">> ", default_line = "")
@history << @line
@input.raw do |raw_stdin|
until (char = raw_stdin.getch) == "\r"
until (char = raw_stdin.getc) == "\r"
@menu.erase
handle(char)

0 comments on commit 5011eb3

Please sign in to comment.