[前][次][番号順一覧][スレッド一覧]

ruby-changes:23341

From: drbrain <ko1@a...>
Date: Thu, 19 Apr 2012 08:59:33 +0900 (JST)
Subject: [ruby-changes:23341] drbrain:r35392 (trunk): * ext/curses/curses.c (window_nodelay): Fixed call-seq of nodelay to

drbrain	2012-04-19 08:59:22 +0900 (Thu, 19 Apr 2012)

  New Revision: 35392

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35392

  Log:
    * ext/curses/curses.c (window_nodelay):  Fixed call-seq of nodelay to
      include the '='.
    
      Improved description window.nodelay=.

  Modified files:
    trunk/ChangeLog
    trunk/ext/curses/curses.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 35391)
+++ ChangeLog	(revision 35392)
@@ -1,3 +1,10 @@
+Thu Apr 19 08:59:02 2012  Eric Hodel  <drbrain@s...>
+
+	* ext/curses/curses.c (window_nodelay):  Fixed call-seq of nodelay to
+	  include the '='.
+
+	  Improved description window.nodelay=.
+
 Thu Apr 19 08:47:54 2012  Eric Hodel  <drbrain@s...>
 
 	* io.c (io_readpartial):  Document the output buffer parameter is
Index: ext/curses/curses.c
===================================================================
--- ext/curses/curses.c	(revision 35391)
+++ ext/curses/curses.c	(revision 35392)
@@ -2439,11 +2439,14 @@
 #ifdef HAVE_NODELAY
 /*
  * Document-method: Curses::Window.nodelay
- * call-seq: nodelay(bool)
+ * call-seq:
+ *   window.nodelay = bool
  *
- * Causes Curses::Window.getch to be a non-blocking call.  If no input is ready, getch returns ERR.
+ * When in no-delay mode Curses::Window#getch is a non-blocking call.  If no
+ * input is ready #getch returns ERR.
  *
- * If disabled (+bool+ is +false+), Curses::Window.getch waits until a key is pressed.
+ * When in delay mode (+bool+ is +false+ which is the default),
+ * Curses::Window#getch blocks until a key is pressed.
  *
  */
 static VALUE

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]