aboutsummaryrefslogtreecommitdiffstats
path: root/ext/curses/curses.c
Commit message (Collapse)AuthorAgeFilesLines
* * ext/curses, sample/curses: removed curses.shugo2013-12-091-4348/+0
| | | | | | * NEWS: added an entry for the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c: [DOC] Cleaned up formatting consistency of rdoczzak2013-10-161-26/+34
| | | | | | | | | | comments for Curses, including period spacing and column width. This patch also fixed some typos. Thanks to @postmodern for the patch! [Fixes GH-420] https://github.com/ruby/ruby/pull/420 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/extconf.rb: check the size of chtype.shugo2013-09-271-5/+15
| | | | | | | | | * ext/curses/curses.c (NUM2CH, CH2NUM): use proper macros for the size of chtype. [ruby-core:56090] [Bug #8659] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c: [DOC] Update location of sampleszzak2013-07-291-3/+3
| | | | | | | | | * samples/curses/*: Move Curses samples and refactor from mixin The samples are included in rdoc for module and use of mixin is confusing git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * safe.c (rb_set_safe_level, safe_setter): raise an ArgumentErrorshugo2013-06-121-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when $SAFE is set to 4. $SAFE=4 is now obsolete. [ruby-core:55222] [Feature #8468] * object.c (rb_obj_untrusted, rb_obj_untrust, rb_obj_trust): Kernel#untrusted?, untrust, and trust are now deprecated. Their behavior is same as tainted?, taint, and untaint, respectively. * include/ruby/ruby.h (OBJ_UNTRUSTED, OBJ_UNTRUST): OBJ_UNTRUSTED() and OBJ_UNTRUST() are aliases of OBJ_TAINTED() and OBJ_TAINT(), respectively. * array.c, class.c, debug.c, dir.c, encoding.c, error.c, eval.c, ext/curses/curses.c, ext/dbm/dbm.c, ext/dl/cfunc.c, ext/dl/cptr.c, ext/dl/dl.c, ext/etc/etc.c, ext/fiddle/fiddle.c, ext/fiddle/pointer.c, ext/gdbm/gdbm.c, ext/readline/readline.c, ext/sdbm/init.c, ext/socket/ancdata.c, ext/socket/basicsocket.c, ext/socket/socket.c, ext/socket/udpsocket.c, ext/stringio/stringio.c, ext/syslog/syslog.c, ext/tk/tcltklib.c, ext/win32ole/win32ole.c, file.c, gc.c, hash.c, io.c, iseq.c, load.c, marshal.c, object.c, proc.c, process.c, random.c, re.c, safe.c, string.c, thread.c, transcode.c, variable.c, vm_insnhelper.c, vm_method.c, vm_trace.c: remove code for $SAFE=4. * test/dl/test_dl2.rb, test/erb/test_erb.rb, test/readline/test_readline.rb, test/readline/test_readline_history.rb, test/ruby/test_alias.rb, test/ruby/test_array.rb, test/ruby/test_dir.rb, test/ruby/test_encoding.rb, test/ruby/test_env.rb, test/ruby/test_eval.rb, test/ruby/test_exception.rb, test/ruby/test_file_exhaustive.rb, test/ruby/test_hash.rb, test/ruby/test_io.rb, test/ruby/test_method.rb, test/ruby/test_module.rb, test/ruby/test_object.rb, test/ruby/test_pack.rb, test/ruby/test_rand.rb, test/ruby/test_regexp.rb, test/ruby/test_settracefunc.rb, test/ruby/test_struct.rb, test/ruby/test_thread.rb, test/ruby/test_time.rb: remove tests for $SAFE=4. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typos. Patch by k_takata.ktsj2013-05-191-10/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c: Update Curses::Window example for nicer outputzzak2013-04-271-3/+7
| | | | | | | Patch by Michal Suchanek [Bug #8121] [ruby-core:53520] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* curses.c: fix functionnobu2013-04-051-1/+1
| | | | | | | * 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
* * ext/curses/curses.c (window_cury, window_curx, window_maxy,shugo2012-12-291-10/+4
| | | | | | | 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
* remove trailing spaces.nobu2012-09-041-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rb_thread_call_without_gvlnobu2012-07-101-12/+13
| | | | | | | | | * 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
* suppress unused-but-set-variable warningsnobu2012-05-191-4/+10
| | | | | | | | * 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
* * ext/curses/curses.c (curses_pair_number): suppress 64-to-32 warning.nobu2012-05-171-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c (window_nodelay): Fixed call-seq of nodelay todrbrain2012-04-181-3/+6
| | | | | | | | | include the '='. Improved description window.nodelay=. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ad comment.akr2012-02-251-0/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c (Init_curses): use rb_define_const once forakr2012-02-251-7/+9
| | | | | | | | | | 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
* * ext/curses/curses.c (Init_curses): make Curses::VERSIONakr2012-02-251-1/+1
| | | | | | | | | | 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
* add comment.akr2012-02-231-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c: use defined() to suppress a warning.akr2012-02-221-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/extconf.rb: try to distinguish curses_version is aakr2012-02-221-1/+7
| | | | | | | function or variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c (Init_curses): use curses_version() forakr2012-02-211-1/+1
| | | | | | | Curses::VERSION. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c (Init_curses): define Curses::VERSION.akr2012-02-201-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c (cWindow, cMouseEvent): made typed data.nobu2012-01-181-21/+48
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c: added the new class Curses::Pad, whichshugo2011-07-171-0/+157
| | | | | | | 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
* * ext/curses/curses.c: Clean up documentation.drbrain2011-06-171-30/+39
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c: Document curses constants. Patch by Vincentdrbrain2011-06-171-98/+585
| | | | | | | Batts. [Ruby 1.9 - Bug #4880] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c: Remove color constants block.drbrain2011-05-251-26/+11
| | | | | | | [Ruby 1.9 - Bug #4748] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c: Add missing documentation for button state, MINdrbrain2011-05-251-7/+6
| | | | | | | | 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
* * ext: remove trailing spaces.nobu2011-05-221-84/+84
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c: Complete documentation. Patch by Vincentdrbrain2011-05-221-4/+495
| | | | | | | Batts. [Ruby 1.9 - Bug #4748] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/.document: Add curses to documented extensions.drbrain2011-05-201-61/+976
| | | | | | | | * 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
* * ext/curses/curses.c: parenthesize macro arguments.akr2011-02-131-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c (CHECK): unused macro removed.akr2011-02-031-2/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c: use rb_thread_blocking_region to avoidakr2009-10-101-19/+64
| | | | | | | | | | | | | | | | | | | 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
* * ext/curses/curses.c: Many functions of module Curses could cause a crash ↵marcandre2009-10-081-0/+34
| | | | | | | | | 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
* * ext/curses/curses.c: use rb_f_notimplement for methods notakr2009-04-181-47/+47
| | | | | | | implemented. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c (curses_colors): new method added. a patchmatz2009-02-241-0/+23
| | | | | | | | 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
* * ext/curses/curses.c (Init_curses): Curses#crmode andkouji2009-01-301-2/+2
| | | | | | | | 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
* * ext/curses/curses.c (free_window): use xfree instead of free.kazu2009-01-051-1/+1
| | | | | | | [ruby-dev:37200] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c: removed trailing spaces.nobu2008-12-091-31/+31
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c: made indentation consistent.nobu2008-12-091-189/+189
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c (curses_use_default_colors): add newmatz2008-12-091-0/+42
| | | | | | | | | | | 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
* * ext/curses/curses.c (curses_getch): no ISPRINT(). [ruby-core:20294]matz2008-12-041-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c (window_getch): avoid ISPRINT() macro whichmatz2008-12-041-1/+1
| | | | | | | | 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
* * ext/curses/curses.c (curses_escdelay_set): support ESCDELAY. amatz2008-11-211-0/+23
| | | | | | | 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
* * ext/curses/curses.c: curses encoding should obey locale.matz2008-11-071-16/+61
| | | | | | | | * ext/curses/curses.c (curses_getch): 1.9 getch should return one character string for single byte string. wchar_t support may follow in the future. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c: should include <ruby/io.h>.matz2008-09-261-1/+1
| | | | | | | | * ext/io/wait/wait.c: ditto. * ext/openssl/ossl.h: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c, bignum.c, cont.c, dir.c, dln.c, encoding.c, enumerator.c,ko12008-06-081-1/+1
| | | | | | | | | | | | | | | | | | | enumerator.c (enumerator_allocate), eval_jump.c, file.c, hash.c, io.c, load.c, pack.c, proc.c, random.c, re.c, ruby.c, st.c, string.c, thread.c, thread_pthread.c, time.c, util.c, variable.c, vm.c, gc.c: allocated memory objects by xmalloc (ruby_xmalloc) should be freed by xfree (ruby_xfree). * ext/curses/curses.c, ext/dbm/dbm.c, ext/digest/digest.c, ext/gdbm/gdbm.c, ext/json/ext/parser/parser.c, ext/json/ext/parser/unicode.c, ext/openssl/ossl_cipher.c, ext/openssl/ossl_hmac.c, ext/openssl/ossl_pkey_ec.c, ext/sdbm/init.c, ext/strscan/strscan.c, ext/zlib/zlib.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regparse.c, etc.: K&R to ANSI code cleanup patch from Stefanmatz2007-03-191-3/+3
| | | | | | Huehner <stefan at huehner.org>. [ruby-core:10543] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* revert the definition of _XOPEN_SOURCE_EXTENDED on HP-UX.akr2006-09-021-4/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e