Undefine DSUSP key
Enable `Ctrl+Y`, which is bound with it by default on BSD-like systems, for editing.
This commit is contained in:
parent
b49c1380c1
commit
68ffb679d4
@ -115,9 +115,13 @@ class Reline::ANSI
|
|||||||
int_handle = Signal.trap('INT', 'IGNORE')
|
int_handle = Signal.trap('INT', 'IGNORE')
|
||||||
otio = `stty -g`.chomp
|
otio = `stty -g`.chomp
|
||||||
setting = ' -echo -icrnl cbreak'
|
setting = ' -echo -icrnl cbreak'
|
||||||
if /-parenb\b/ =~ `stty -a`
|
stty = `stty -a`
|
||||||
|
if /-parenb\b/ =~ stty
|
||||||
setting << ' pass8'
|
setting << ' pass8'
|
||||||
end
|
end
|
||||||
|
if /\bdsusp *=/ =~ stty
|
||||||
|
setting << ' dsusp undef'
|
||||||
|
end
|
||||||
setting << ' -ixoff'
|
setting << ' -ixoff'
|
||||||
`stty #{setting}`
|
`stty #{setting}`
|
||||||
Signal.trap('INT', int_handle)
|
Signal.trap('INT', int_handle)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user