Граф коммитов

108 Коммитов

Автор SHA1 Сообщение Дата
shugo cdabc58f8e * ext/curses/curses.c (window_cury, window_curx, window_maxy,
window_maxx, window_begy, window_begx): use RB_UNUSED_VAR()
  to suppress unused-but-set-variable warnings.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-29 12:54:41 +00:00
knu 316947eaa4 * ext/curses/view.rb: Do not fail if the file to view is shorter
than the screen height.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-07 15:36:14 +00:00
nobu af6c038b23 remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-09-04 00:57:31 +00:00
shugo 5d743d7662 * ext/curses/extconf.rb: support PDCurses. patched by Luis Lavena.
[ruby-core:46485] [Feature #6735]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-18 07:11:20 +00:00
nobu c51a826764 rb_thread_call_without_gvl
* include/ruby/thread.h: new header file for thread stuff.
* thread.c (rb_thread_call_without_gvl): export.  [Feature#4328]
  returns void* instead of VALUE.  [Feature #5543]
* thread.c (rb_thread_blocking_region): deprecate.  [ruby-core:46295]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-10 13:57:11 +00:00
nobu 9373d91585 suppress unused-but-set-variable warnings
* ext/curses/curses.c (window_cury, window_curx, window_maxy)
  (window_maxx, window_begy, window_begx): suppress
  unused-but-set-variable warnings.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-19 10:13:32 +00:00
nobu d9b578f4a0 * ext/curses/curses.c (curses_pair_number): suppress 64-to-32 warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-17 14:05:09 +00:00
akr b82f8f7191 add a comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-26 13:24:52 +00:00
drbrain 6878e597c4 * ext/curses/curses.c (window_nodelay): Fixed call-seq of nodelay to
include the '='.

  Improved description window.nodelay=.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-18 23:59:22 +00:00
akr 51438b1c15 ad comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-25 07:31:13 +00:00
akr d9adb03dd9 * ext/curses/curses.c (Init_curses): use rb_define_const once for
Curses::VERSION.

* ext/dbm/dbm.c (Init_dbm): ditto for DBM::VERSION.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-25 02:09:22 +00:00
akr aa281e7517 * ext/curses/curses.c (Init_curses): make Curses::VERSION
understandable without context.

* ext/dbm/dbm.c (Init_dbm): ditto for DBM::VERSION.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-25 01:36:33 +00:00
akr 427035c0bb add comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 15:22:06 +00:00
akr a49fc9beb6 * ext/curses/rain.rb: trap SIGHUP, SIGINT, SIGQUIT and SIGTERM only.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 10:59:00 +00:00
akr 01433e4d53 * ext/curses/curses.c: use defined() to suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 12:46:44 +00:00
akr 7c80d15165 * ext/curses/extconf.rb: refactored.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 12:45:04 +00:00
akr c01d52e8d9 * ext/curses/extconf.rb: try to distinguish curses_version is a
function or variable.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 11:44:26 +00:00
akr fa65fc9aeb * ext/curses/extconf.rb: show the chosen header and library.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 10:48:59 +00:00
akr 9fc31792ce * ext/curses/extconf.rb: refactored.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 10:09:31 +00:00
akr 25df75e119 * ext/curses/curses.c (Init_curses): use curses_version() for
Curses::VERSION.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-21 10:40:20 +00:00
akr b17bc95400 * ext/curses/extconf.rb: fold too long lines.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-20 12:41:23 +00:00
akr 83f742f86f * ext/curses/curses.c (Init_curses): define Curses::VERSION.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-20 12:10:00 +00:00
akr 9f6f0788d2 * ext/curses/extconf.rb: restore $libs and $defs for each
header/library choice.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-20 12:09:25 +00:00
nobu d3b540cf40 * ext/curses/curses.c (cWindow, cMouseEvent): made typed data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-18 09:06:48 +00:00
shugo e5f8aa95a3 * ext/curses/curses.c: added the new class Curses::Pad, which
supports scrolling.  patch by Eric Hodel.  [Feature #4896]
  [ruby-core:37206]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-17 15:10:06 +00:00
drbrain becd789625 * ext/curses/curses.c: Clean up documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-17 04:10:37 +00:00
drbrain 630ba53d29 * ext/curses/curses.c: Document curses constants. Patch by Vincent
Batts.  [Ruby 1.9 - Bug #4880]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-17 00:25:43 +00:00
drbrain ce9d84a9f0 * ext/curses/curses.c: Remove color constants block.
[Ruby 1.9 - Bug #4748]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-25 02:54:48 +00:00
drbrain eab122534d * ext/curses/curses.c: Add missing documentation for button state, MIN
and MAX comments.  Add Curses. to TABSIZE= and ESCDELAY= methods.
	  [Ruby 1.9 - Bug #4747]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-25 00:57:07 +00:00
nobu 0d6d23b25d * ext: remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-22 09:26:02 +00:00
drbrain d235b822d2 * ext/curses/curses.c: Complete documentation. Patch by Vincent
Batts.  [Ruby 1.9 - Bug #4748]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-22 02:08:30 +00:00
drbrain 42cb637942 * ext/.document: Add curses to documented extensions.
* ext/curses/curses.c:  Improve documentation.  Patch by Vincent Batts.
	  [Ruby 1.9 - Bug #4747]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-20 18:00:26 +00:00
akr bc2abdcac4 * ext/curses/curses.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-13 22:35:29 +00:00
akr 41d0788e40 * ext/curses/curses.c (CHECK): unused macro removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-03 11:05:13 +00:00
nobu c53664c84d .cvsignore: have not been used already. [Bug #3468]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-07 05:43:21 +00:00
shugo 5fe1f62633 ext/curses/view2.rb: replaced with Hugh Sasse's version.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06 14:26:07 +00:00
akr f65dbbd24a * ext/curses/curses.c: use rb_thread_blocking_region to avoid
rb_read_check.  This makes other threads runnable in getstr and
  wgetstr.
  (getch_func): extracted from curses_getch.
  (curses_getch): use rb_thread_blocking_region with getch_func.
  (getstr_func): extracted from curses_getstr.
  (curses_getstr): use rb_thread_blocking_region with getstr_func.
  (wgetch_func): extracted from window_getch.
  (window_getch): use rb_thread_blocking_region with wgetch_func.
  (wgetstr_func): extracted from window_getstr.
  (window_getstr): use rb_thread_blocking_region with wgetstr_func.

* include/ruby/io.h (rb_read_check): deprecated because it access
  internal of stdio.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-10 10:49:47 +00:00
marcandre f0cdcf6f4e * ext/curses/curses.c: Many functions of module Curses could cause a crash if the ncurses library was not properly initialized.
Fix pointed out by Alexander Beisig [ruby-core:22592]
  Functions fixed: attroff, attron, attrset, bkgd, bkgdset, can_change_color, close_screen, closed, color_content, curs_set, def_prog_mode, delch, deleteln, getmouse, getstr, has_colors, init_color, init_pair, insertln, keyname, mouseinterval, mousemask, pair_content, pair_number, reset_prog_mode, resizeterm, scrl, setscrreg, standend, standout, start_color, timeout, ungetmouse, use_default_colors

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-08 17:12:36 +00:00
akr be2d3f5979 * ext/curses/curses.c: use rb_f_notimplement for methods not
implemented.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-18 12:09:23 +00:00
nobu 287a34ae0d * {ext,lib,test}/**/*.rb: removed trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 03:56:38 +00:00
matz 02316f11d5 * ext/curses/curses.c (curses_colors): new method added. a patch
from Alexander Beisig in [ruby-core:22331].

* ext/curses/curses.c (curses_color_pairs): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-24 15:19:17 +00:00
kouji 374e2f34b1 * ext/curses/curses.c (Init_curses): Curses#crmode and
Curses#nocrmode changes to the module function. 
  fix #916


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-30 07:12:45 +00:00
matz b949be82cf * ext/curses/extconf.rb: check ncursesw earlier than ncurses to
support UTF-8 strings.   non UTF-8 strings should be converted
  explicitly.   [ruby-core:21094]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-14 07:19:58 +00:00
kazu 8dd121b5b7 * ext/curses/curses.c (free_window): use xfree instead of free.
[ruby-dev:37200]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-05 07:16:12 +00:00
nobu b2e82f2dfb * ext/curses/curses.c: removed trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-09 04:46:54 +00:00
nobu 7f36764938 * ext/curses/curses.c: made indentation consistent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-09 04:42:51 +00:00
matz 3cde544d47 * ext/curses/curses.c (curses_use_default_colors): add new
method.  a patch from Giancarlo F Bellido
  <support at coaxialhost.com> in [ruby-core:20434].

* ext/curses/curses.c (curses_tabsize_set): ditto.

* ext/curses/curses.c (curses_tabsize_get): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-09 04:31:41 +00:00
matz f5332d6b5e * ext/curses/curses.c (curses_getch): no ISPRINT(). [ruby-core:20294]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-04 05:52:30 +00:00
matz 782576a519 * ext/curses/curses.c (window_getch): avoid ISPRINT() macro which
has an issue with OpenSolaris.  [ruby-core:20189]

* signal.c (ruby_signal): EINVAL from sigaction(2) is not a bug.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-04 04:57:58 +00:00
matz 137b5ecd8d * ext/curses/curses.c (curses_escdelay_set): support ESCDELAY. a
patch from Giancarlo F Bellido <support@coaxialhost.com> in
  [ruby-core:19961].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-21 18:35:11 +00:00