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

8 commits

Author SHA1 Message Date
nobu
bc1bfb6997 test_curses.rb: reap zombie
* test/test_curses.rb (TestCurses#run_curses): reap zombie, since
  PTY.spawn with block does not wait the sub process but just
  detaches.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-19 07:47:19 +00:00
nobu
626235a6d7 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
2013-04-17 06:39:41 +00:00
naruse
03eab41dfb Send input after curses is ready or raise error
On Linux, ncurses's initscr aborts with showing
"Error opening terminal: unknown.".
This fix can catch the error message.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-13 21:39:23 +00:00
naruse
dad98e5798 Explictly flush stdio
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-10 21:59:13 +00:00
nobu
6779f24eb5 test_curses.rb: add sentinel
* test/test_curses.rb (TestCurses#run_curses): add sentinel to get rid
  of read pty output after the child process terminated, which causes
  EIO on Linux.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-08 05:12:08 +00:00
nobu
e3b9ed7649 curses.c: fix function
* ext/curses/curses.c (Init_curses): fix implementation function,
  crmode should be same as cbreak.  [ruby-core:54013] [Bug #8222]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-05 04:23:05 +00:00
nobu
7cd3fcfbaa * test/test_curses.rb: tests for getch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-05 04:23:02 +00:00
akr
e5cf1dcf7b * test/test_curses.rb: new file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 13:27:29 +00:00