ruby-changes:28281
From: nobu <ko1@a...>
Date: Wed, 17 Apr 2013 15:39:50 +0900 (JST)
Subject: [ruby-changes:28281] nobu:r40333 (trunk): test_curses.rb: default TERM
nobu 2013-04-17 15:39:41 +0900 (Wed, 17 Apr 2013) New Revision: 40333 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40333 Log: test_curses.rb: default TERM * test/test_curses.rb (TestCurses#run_curses): default TERM environment variable which is needed by ncurses. Modified files: trunk/test/test_curses.rb Index: test/test_curses.rb =================================================================== --- test/test_curses.rb (revision 40332) +++ test/test_curses.rb (revision 40333) @@ -15,7 +15,7 @@ end if defined? Curses https://github.com/ruby/ruby/blob/trunk/test/test_curses.rb#L15 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/