[#4479] Requesting addition to IRB (configurable standard output) — Sascha Ebach <se@...>

Hello,

13 messages 2005/02/24
[#4482] Re: Requesting addition to IRB (configurable standard output) — Sam Roberts <sroberts@...> 2005/02/25

Quoting se@digitale-wertschoepfung.de, on Fri, Feb 25, 2005 at 01:22:34AM +0900:

[#4483] Re: Requesting addition to IRB (configurable standard output) — Eric Hodel <drbrain@...7.net> 2005/02/25

On 24 Feb 2005, at 19:51, Sam Roberts wrote:

[#4488] Re: Requesting addition to IRB (configurable standard output) — Sam Roberts <sroberts@...> 2005/02/26

Quoting drbrain@segment7.net, on Sat, Feb 26, 2005 at 02:43:31AM +0900:

[#4489] Re: Requesting addition to IRB (configurable standard output) — Eric Hodel <drbrain@...7.net> 2005/02/26

On 25 Feb 2005, at 16:03, Sam Roberts wrote:

Re: [PATCH] add color_set support to curses.c

From: "U.Nakamura" <usa@...>
Date: 2005-02-09 00:31:04 UTC
List: ruby-core #4398
Hello,

In message "Re: [PATCH] add color_set support to curses.c"
    on Feb.09,2005 08:07:17, <matz@ruby-lang.org> wrote:
| |Patch is attached.
| 
| I will merge the patch.

Ah, I know the environment which have USE_COLOR definition
but doesn't have wcolor_set. It's Windows's PDCurses.

Index: ext/curses/curses.c
===================================================================
RCS file: /home/cvs/ruby/ext/curses/curses.c,v
retrieving revision 1.24.2.2
diff -u -1 -p -r1.24.2.2 curses.c
--- ext/curses/curses.c	8 Feb 2005 23:12:31 -0000	1.24.2.2
+++ ext/curses/curses.c	9 Feb 2005 00:30:21 -0000
@@ -1197,3 +1197,3 @@ window_setscrreg(VALUE obj, VALUE top, V
 
-#ifdef USE_COLOR
+#if defined(USE_COLOR) && defined(HAVE_WCOLOR_SET)
 static VALUE
@@ -1487,5 +1487,5 @@ Init_curses()
     rb_define_method(cWindow, "setpos", window_setpos, 2);
-#ifdef USE_COLOR
+#if defined(USE_COLOR) && defined(HAVE_WCOLOR_SET)
     rb_define_method(cWindow, "color_set", window_color_set, 1);
-#endif /* USE_COLOR */
+#endif /* USE_COLOR && HAVE_WCOLOR_SET */
     rb_define_method(cWindow, "cury", window_cury, 0);
Index: ext/curses/extconf.rb
===================================================================
RCS file: /home/cvs/ruby/ext/curses/extconf.rb,v
retrieving revision 1.17
diff -u -1 -p -r1.17 extconf.rb
--- ext/curses/extconf.rb	17 Dec 2003 06:38:10 -0000	1.17
+++ ext/curses/extconf.rb	9 Feb 2005 00:30:21 -0000
@@ -21,3 +21,3 @@ end
 if make
-  for f in %w(beep bkgd bkgdset curs_set deleteln doupdate flash getbkgd getnstr init isendwin keyname keypad resizeterm scrl set setscrreg ungetch wattroff wattron wattrset wbkgd wbkgdset wdeleteln wgetnstr wresize wscrl wsetscrreg def_prog_mode reset_prog_mode timeout wtimeout nodelay init_color)
+  for f in %w(beep bkgd bkgdset curs_set deleteln doupdate flash getbkgd getnstr init isendwin keyname keypad resizeterm scrl set setscrreg ungetch wattroff wattron wattrset wbkgd wbkgdset wdeleteln wgetnstr wresize wscrl wsetscrreg def_prog_mode reset_prog_mode timeout wtimeout nodelay init_color wcolor_set)
     have_func(f)

Regards,
-- 
U.Nakamura <usa@garbagecollect.jp>



In This Thread

Prev Next