summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/test_curses.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_curses.rb b/test/test_curses.rb
index 7a3ae4cf6b..7bcb172e96 100644
--- a/test/test_curses.rb
+++ b/test/test_curses.rb
@@ -15,7 +15,7 @@ end if defined? Curses
class TestCurses
def run_curses(src, input = nil, timeout: 1)
- PTY.spawn(EnvUtil.rubybin, "-e", <<-"src") {|r, w, pid|
+ PTY.spawn({"TERM"=>ENV["TERM"]||"dumb"}, EnvUtil.rubybin, "-e", <<-"src") {|r, w, pid|
require 'timeout'
require 'curses'
include Curses