mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_curses.rb: default TERM
* test/test_curses.rb (TestCurses#run_curses): default TERM environment variable which is needed by ncurses. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
385de15d55
commit
626235a6d7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue