diff options
-rwxr-xr-x | tool/redmine-backporter.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tool/redmine-backporter.rb b/tool/redmine-backporter.rb index 2e5d7d32e5..ea56dc19c2 100755 --- a/tool/redmine-backporter.rb +++ b/tool/redmine-backporter.rb @@ -202,17 +202,16 @@ def mygets line = '' while 1 case c = console.getch - when "\r" + when "\r", "\n" puts line << c return line - when "\x07", "\b" # DEL/BS - print "\b" - line.chop! - when "\x15" # C-u + when "\C-?", "\b" # DEL/BS + print "\b \b" if line.chop! + when "\C-u" print cls line.clear - when "\x04" # C-d + when "\C-d" return nil if line.empty? line << c else |