Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/reline/ansi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,13 @@ def self.prep
int_handle = Signal.trap('INT', 'IGNORE')
otio = `stty -g`.chomp
setting = ' -echo -icrnl cbreak'
if /-parenb\b/ =~ `stty -a`
stty = `stty -a`
if /-parenb\b/ =~ stty
setting << ' pass8'
end
if /\bdsusp *=/ =~ stty
setting << ' dsusp undef'
end
setting << ' -ixoff'
`stty #{setting}`
Signal.trap('INT', int_handle)
Expand Down