]> git.lizzy.rs Git - plan9front.git/commit
vt, ssh: don't send interrupts on window resize
authorOri Bernstein <ori@eigenstate.org>
Sat, 26 Jun 2021 17:29:27 +0000 (17:29 +0000)
committerOri Bernstein <ori@eigenstate.org>
Sat, 26 Jun 2021 17:29:27 +0000 (17:29 +0000)
commitb68b3a6e19eb57c9f1c8b70b624f103254f4964a
treef34e4bed0c0f8c3d26b444ae9da24bcfb7c8cdc0
parent4fd09def0fc51d0606e677f1ab59ad695d1cd780
vt, ssh: don't send interrupts on window resize

When resizing windows, vt would signal ssh by updating
the window size and sending an interrupt. Ssh reacted
by forwarding both the winch and an interrupt.

This change adds a WINCH generation counter so that
ssh can differentiate between resizes and interrupts.
If an interrupt comes in, and the WINCH generation
changes, then the interrupt is taken as signalling a
WINCH.
sys/src/cmd/ssh.c
sys/src/cmd/vt/main.c