ncursesw 1.4.12 → 1.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Changes +3 -0
- data/ncurses_wrap.c +17 -17
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8754a10870f91ce6c48d2482fb10d990f0a0429653fa9f5a7bb28f7a077e9608
|
4
|
+
data.tar.gz: 108f8b3f906c2e1355354633acccaed824a1dd70dc1d770f049150f8bf7ea0e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 762a8a786de43dea665fbecb8a936089d64a84ec20ece8ead5d8d116c93d68f8db88f63814700b813d5348bd37b2e168f1588cd80186afaaec7d5d100cb267c4
|
7
|
+
data.tar.gz: df600969cf72cdb85a4691464aaa0520755acc8dd3f1aa9916c8c013805d20893deb49c3b867ad623dc766d4fd0fddf807f32880eb50222586e05037c3d9a4b7
|
data/Changes
CHANGED
data/ncurses_wrap.c
CHANGED
@@ -146,9 +146,9 @@ init_constants_1(void)
|
|
146
146
|
#endif
|
147
147
|
}
|
148
148
|
|
149
|
-
static VALUE rbncurs_COLORS()
|
149
|
+
static VALUE rbncurs_COLORS(VALUE dummy)
|
150
150
|
{return INT2NUM(COLORS);}
|
151
|
-
static VALUE rbncurs_COLOR_PAIRS()
|
151
|
+
static VALUE rbncurs_COLOR_PAIRS(VALUE dummy)
|
152
152
|
{return INT2NUM(COLOR_PAIRS);}
|
153
153
|
|
154
154
|
static
|
@@ -371,7 +371,7 @@ init_functions_0(void)
|
|
371
371
|
NCFUNC(wgetnstr, 3);
|
372
372
|
}
|
373
373
|
|
374
|
-
static VALUE get_stdscr()
|
374
|
+
static VALUE get_stdscr(VALUE dummy)
|
375
375
|
{
|
376
376
|
VALUE rb_stdscr = rb_iv_get(mNcurses, "@stdscr");
|
377
377
|
if (rb_stdscr == Qnil) {
|
@@ -380,7 +380,7 @@ static VALUE get_stdscr()
|
|
380
380
|
}
|
381
381
|
return rb_stdscr;
|
382
382
|
}
|
383
|
-
static VALUE get_curscr()
|
383
|
+
static VALUE get_curscr(VALUE dummy)
|
384
384
|
{
|
385
385
|
VALUE rb_curscr = rb_iv_get(mNcurses, "@curscr");
|
386
386
|
if (rb_curscr == Qnil) {
|
@@ -390,7 +390,7 @@ static VALUE get_curscr()
|
|
390
390
|
return rb_curscr;
|
391
391
|
}
|
392
392
|
#ifdef HAVE_NEWSCR
|
393
|
-
static VALUE get_newscr()
|
393
|
+
static VALUE get_newscr(VALUE dummy)
|
394
394
|
{
|
395
395
|
VALUE rb_newscr = rb_iv_get(mNcurses, "@newscr");
|
396
396
|
if (rb_newscr == Qnil) {
|
@@ -400,15 +400,15 @@ static VALUE get_newscr()
|
|
400
400
|
return rb_newscr;
|
401
401
|
}
|
402
402
|
#endif
|
403
|
-
static VALUE get_LINES() {return INT2NUM(LINES);}
|
404
|
-
static VALUE get_COLS() {return INT2NUM(COLS);}
|
403
|
+
static VALUE get_LINES(VALUE dummy) {return INT2NUM(LINES);}
|
404
|
+
static VALUE get_COLS(VALUE dummy) {return INT2NUM(COLS);}
|
405
405
|
#ifdef HAVE_TABSIZE
|
406
|
-
static VALUE get_TABSIZE() {return INT2NUM(TABSIZE);}
|
406
|
+
static VALUE get_TABSIZE(VALUE dummy) {return INT2NUM(TABSIZE);}
|
407
407
|
#endif
|
408
408
|
#ifdef HAVE_ESCDELAY
|
409
409
|
/* This global was an undocumented feature under AIX curses. */
|
410
410
|
/* ESC expire time in milliseconds */
|
411
|
-
static VALUE get_ESCDELAY(){return INT2NUM(ESCDELAY);}
|
411
|
+
static VALUE get_ESCDELAY(VALUE dummy){return INT2NUM(ESCDELAY);}
|
412
412
|
static VALUE set_ESCDELAY(VALUE dummy, VALUE new_delay)
|
413
413
|
{
|
414
414
|
ESCDELAY=NUM2INT(new_delay);
|
@@ -419,7 +419,7 @@ static VALUE set_ESCDELAY(VALUE dummy, VALUE new_delay)
|
|
419
419
|
/* This global is wrapper-specific. It denotes the interval after which the
|
420
420
|
terminal is periodically checked for having resized or not. */
|
421
421
|
/* time in milliseconds */
|
422
|
-
static VALUE get_RESIZEDELAY(){return rb_iv_get(mNcurses, "@resize_delay");}
|
422
|
+
static VALUE get_RESIZEDELAY(VALUE dummy){return rb_iv_get(mNcurses, "@resize_delay");}
|
423
423
|
static VALUE set_RESIZEDELAY(VALUE dummy, VALUE rb_new_delay)
|
424
424
|
{
|
425
425
|
int c_new_delay = NUM2INT(rb_new_delay);
|
@@ -480,7 +480,7 @@ static VALUE rbncurs_keybound(VALUE dummy, VALUE keycode, VALUE count)
|
|
480
480
|
}
|
481
481
|
#endif
|
482
482
|
#ifdef HAVE_CURSES_VERSION
|
483
|
-
static VALUE rbncurs_curses_version(){return rb_str_new2(curses_version());}
|
483
|
+
static VALUE rbncurs_curses_version(VALUE dummy){return rb_str_new2(curses_version());}
|
484
484
|
#endif
|
485
485
|
#ifdef HAVE_DEFINE_KEY
|
486
486
|
static VALUE rbncurs_define_key(VALUE dummy, VALUE definition, VALUE keycode)
|
@@ -504,7 +504,7 @@ static VALUE rbncurs_resizeterm(VALUE dummy, VALUE lines, VALUE columns)
|
|
504
504
|
}
|
505
505
|
#endif
|
506
506
|
#ifdef HAVE_USE_DEFAULT_COLORS
|
507
|
-
static VALUE rbncurs_use_default_colors()
|
507
|
+
static VALUE rbncurs_use_default_colors(VALUE dummy)
|
508
508
|
{
|
509
509
|
return INT2NUM(use_default_colors());
|
510
510
|
}
|
@@ -849,7 +849,7 @@ static int rbncurshelper_do_wgetch_functor (WINDOW *c_win, wgetch_func _wgetch_f
|
|
849
849
|
double delay = (screen_delay > 0) ? screen_delay : window_delay;
|
850
850
|
int result;
|
851
851
|
double starttime, nowtime, finishtime;
|
852
|
-
double resize_delay = NUM2INT(get_RESIZEDELAY()) / 1000.0;
|
852
|
+
double resize_delay = NUM2INT(get_RESIZEDELAY(mNcurses)) / 1000.0;
|
853
853
|
fd_set in_fds;
|
854
854
|
#ifdef HAVE_CLOCK_GETTIME
|
855
855
|
struct timespec tv;
|
@@ -942,13 +942,13 @@ static VALUE rbncurshelper_nonblocking_wget_wch(WINDOW *c_win, int windelay) {
|
|
942
942
|
#endif
|
943
943
|
|
944
944
|
static VALUE rbncurs_getch(VALUE dummy) {
|
945
|
-
int windelay = NUM2INT(rb_iv_get(get_stdscr(), "@timeout"));
|
945
|
+
int windelay = NUM2INT(rb_iv_get(get_stdscr(dummy), "@timeout"));
|
946
946
|
return INT2NUM(rbncurshelper_nonblocking_wgetch(stdscr, windelay));
|
947
947
|
}
|
948
948
|
|
949
949
|
#ifdef HAVE_GET_WCH
|
950
950
|
static VALUE rbncurs_get_wch(VALUE dummy) {
|
951
|
-
int windelay = NUM2INT(rb_iv_get(get_stdscr(), "@timeout"));
|
951
|
+
int windelay = NUM2INT(rb_iv_get(get_stdscr(dummy), "@timeout"));
|
952
952
|
return rbncurshelper_nonblocking_wget_wch(stdscr, windelay);
|
953
953
|
}
|
954
954
|
#endif
|
@@ -1185,7 +1185,7 @@ static VALUE rbncurs_mvderwin(VALUE dummy, VALUE arg1, VALUE arg2, VALUE arg3) {
|
|
1185
1185
|
return INT2NUM(mvderwin(get_window(arg1), NUM2INT(arg2), NUM2INT(arg3)));
|
1186
1186
|
}
|
1187
1187
|
static VALUE rbncurs_mvgetch(VALUE dummy, VALUE arg1, VALUE arg2) {
|
1188
|
-
int windelay = NUM2INT(rb_iv_get(get_stdscr(), "@timeout"));
|
1188
|
+
int windelay = NUM2INT(rb_iv_get(get_stdscr(dummy), "@timeout"));
|
1189
1189
|
if (wmove(stdscr, NUM2INT(arg1), NUM2INT(arg2)) == ERR)
|
1190
1190
|
return INT2NUM(ERR);
|
1191
1191
|
return INT2NUM(rbncurshelper_nonblocking_wgetch(stdscr, windelay));
|
@@ -1499,7 +1499,7 @@ static VALUE rbncurs_tigetstr(VALUE dummy, VALUE arg1) {
|
|
1499
1499
|
}
|
1500
1500
|
#endif
|
1501
1501
|
static VALUE rbncurs_timeout(VALUE dummy, VALUE arg1) {
|
1502
|
-
rb_iv_set(get_stdscr(), "@timeout", arg1);
|
1502
|
+
rb_iv_set(get_stdscr(dummy), "@timeout", arg1);
|
1503
1503
|
return ((timeout(NUM2INT(arg1))),Qnil);
|
1504
1504
|
}
|
1505
1505
|
static VALUE rbncurs_typeahead(VALUE dummy, VALUE arg1) {
|