1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/reline] Wait for the process to be started in start_terminal

https://github.com/ruby/reline/commit/d29d33dcf5
This commit is contained in:
aycabta 2020-09-12 07:37:46 +09:00
parent 62666a6bbd
commit 092c253bff

View file

@ -168,6 +168,7 @@ begin
set emacs-mode-string [emacs]
LINES
start_terminal(5, 30, %W{ruby -I#{@pwd}/lib #{@pwd}/bin/multiline_repl})
sleep 0.5
close
assert_screen(<<~EOC)
Multiline REPL.
@ -181,6 +182,7 @@ begin
set emacs-mode-string "[emacs]"
LINES
start_terminal(5, 30, %W{ruby -I#{@pwd}/lib #{@pwd}/bin/multiline_repl})
sleep 0.5
close
assert_screen(<<~EOC)
Multiline REPL.
@ -196,6 +198,7 @@ begin
set vi-cmd-mode-string "{CmD}"
LINES
start_terminal(5, 30, %W{ruby -I#{@pwd}/lib #{@pwd}/bin/multiline_repl})
sleep 0.5
write(":a\n\C-[k")
close
assert_screen(<<~EOC)