Suppress bell during the test
This commit is contained in:
parent
6f5f15f1e4
commit
9f60ceec54
Notes:
git
2020-07-18 19:33:36 +09:00
@ -596,7 +596,14 @@ module BasetestReadline
|
||||
end
|
||||
w.write("a\t\n")
|
||||
w.flush
|
||||
line = Readline.readline('> ', false)
|
||||
begin
|
||||
stderr = $stderr.dup
|
||||
$stderr.reopen(null)
|
||||
line = Readline.readline('> ', false)
|
||||
ensure
|
||||
$stderr.reopen(stderr)
|
||||
stderr.close
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user