Skip to content

Commit 51b27be

Browse files
committed
Add WINCH to FORWARDED_SIGNALS
This is necessary, in conjunction with a change in ~/.irbrc, to enable terminal window resizing while using spring. Signal.trap('SIGWINCH', proc { Readline.set_screen_size(*`stty size`.split.map(&:to_i)); Readline.refresh_line })
1 parent 354637f commit 51b27be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/spring/client/run.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
module Spring
66
module Client
77
class Run < Command
8-
FORWARDED_SIGNALS = %w(INT QUIT USR1 USR2 INFO) & Signal.list.keys
8+
FORWARDED_SIGNALS = %w(INT QUIT USR1 USR2 INFO WINCH) & Signal.list.keys
99
TIMEOUT = 1
1010

1111
def initialize(args)

0 commit comments

Comments
 (0)