mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 08:32:45 +08:00
Fix stale references to getch()
This commit is contained in:
parent
f1266dd8f5
commit
f97650bf9a
|
@ -221,7 +221,7 @@ maybe_t<char_event_t> input_event_queue_t::readch_timed() {
|
|||
}
|
||||
// We are not prepared to handle a signal immediately; we only want to know if we get input on
|
||||
// our fd before the timeout. Use pselect to block all signals; we will handle signals
|
||||
// before the next call to getch().
|
||||
// before the next call to readch().
|
||||
sigset_t sigs;
|
||||
sigfillset(&sigs);
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ sendline(r"")
|
|||
expect_prompt()
|
||||
|
||||
# As before but it comes after the ESC.
|
||||
# The signal will arrive while we are waiting in getch_timed().
|
||||
# The signal will arrive while we are waiting in readch_timed().
|
||||
send("abc\x1b")
|
||||
sleep(0.05)
|
||||
os.kill(sp.spawn.pid, signal.SIGUSR1)
|
||||
|
|
Loading…
Reference in New Issue
Block a user