Nobuyoshi Nakada
5357ceb1ca
[ruby/io-console] Defer creating VT query string
...
https://github.com/ruby/io-console/commit/3d69c577a4
2019-09-26 09:59:27 +09:00
Nobuyoshi Nakada
9b10698705
[ruby/io-console] Added IO#console_mode
...
https://github.com/ruby/io-console/commit/77ed8d5a06
2019-09-26 09:59:27 +09:00
Kazuhiro NISHIYAMA
ca58e83400
Do not use of non-standard escape character '\e'
2019-09-25 09:48:44 +09:00
Nobuyoshi Nakada
10e3267c31
[ruby/io-console] Made cursor position 0-origin
...
https://github.com/ruby/io-console/commit/9377e37295
2019-09-24 16:20:31 +09:00
Nobuyoshi Nakada
244f7ec204
[ruby/io-console] Made cursor position consistent with `winsize`
...
To be consistent with `winsize`, changed the cursor position
format from `[x, y]` to `[row, column]`.
https://github.com/ruby/io-console/commit/d1f5ae9286
2019-09-24 16:20:30 +09:00
Nobuyoshi Nakada
9e4be78ea8
[ruby/io-console] Try fallback to stdout when stdin
...
https://github.com/ruby/io-console/commit/b8017509ef
2019-09-23 19:29:36 +09:00
Nobuyoshi Nakada
8487193b10
[ruby/io-console] Try to write DSR query to writable IO
...
https://github.com/ruby/io-console/commit/a54b6e4dd1
2019-09-23 19:24:43 +09:00
Nobuyoshi Nakada
6d2dcf9632
[ruby/io-console] Added `intr:` option to IO#raw
...
Enters raw-mode but enable interrupts.
https://github.com/ruby/io-console/commit/7cba76561a
2019-09-14 23:27:53 +09:00
Nobuyoshi Nakada
83ef58f264
[ruby/io-console] Suppress yet another warning on Windows
...
https://github.com/ruby/io-console/commit/4e17c90788
2019-09-10 17:29:11 +09:00
Nobuyoshi Nakada
b5ab918d0c
[ruby/io-console] Suppress warnings on Windows
...
About unused variables and a function.
https://github.com/ruby/io-console/commit/32baf54e7a
2019-09-10 17:29:09 +09:00
Nobuyoshi Nakada
3678c37119
[ruby/io-console] Added IO#check_winsize_changed on Windows
...
https://github.com/ruby/io-console/commit/ee648fa8bb
2019-09-10 08:18:03 +09:00
Nobuyoshi Nakada
74790e2dc4
[ruby/io-console] Added scroll methods
...
https://github.com/ruby/io-console/commit/83e70de8ab
2019-09-10 08:18:03 +09:00
Nobuyoshi Nakada
c1412bd6d9
[ruby/io-console] Added line/screen erase methods
...
https://github.com/ruby/io-console/commit/e6344108a1
2019-09-10 08:18:03 +09:00
Nobuyoshi Nakada
9844a349bf
[ruby/io-console] Added IO#goto_column
...
https://github.com/ruby/io-console/commit/143a9d5764
2019-09-10 08:18:03 +09:00
Nobuyoshi Nakada
e8be056af9
[ruby/io-console] Added relative cursor move methods
...
https://github.com/ruby/io-console/commit/21d340e4a2
2019-09-10 08:18:03 +09:00
Nobuyoshi Nakada
3d9c7c2835
[ruby/io-console] Added IO#goto and IO#cursor= for VT
...
https://github.com/ruby/io-console/commit/7f2b1b473d
2019-09-10 08:18:03 +09:00
Nobuyoshi Nakada
53ed4fb376
[ruby/io-console] Added IO#cursor for VT
...
https://github.com/ruby/io-console/commit/41a6a6cace
2019-09-10 08:18:03 +09:00
Nobuyoshi Nakada
803dc9e1e4
[ruby/io-console] Added console_vt_response
...
A function to query console info.
https://github.com/ruby/io-console/commit/db75a07fa3
2019-09-10 08:18:03 +09:00
Nobuyoshi Nakada
f4aa06c0ff
[ruby/io-console] Drop fat gem support
...
https://github.com/ruby/io-console/commit/972ceb081d
2019-09-10 08:18:03 +09:00
Nobuyoshi Nakada
077c28887a
[ruby/io-console] Do not use add_development_dependency
...
https://github.com/ruby/io-console/commit/bc77f46391
2019-07-25 08:16:57 +09:00
Nobuyoshi Nakada
715955ff27
Include ruby/assert.h in ruby/ruby.h so that assertions can be there
2019-07-14 17:58:03 +09:00
Nobuyoshi Nakada
214e2f93aa
Fix the warning in 456586bb23
2019-05-15 18:19:23 +09:00
Nobuyoshi Nakada
29dde62605
io/console: rb_str_cat_conv_enc_opts is not exported
2019-05-14 14:50:21 +09:00
Nobuyoshi Nakada
c174670823
io/console: fix up timeout on Windows
2019-05-14 14:39:08 +09:00
Nobuyoshi Nakada
456586bb23
io/console: support getch timeout on Windows
2019-05-14 14:21:46 +09:00
Nobuyoshi Nakada
6d733565c2
io/console: support wide character input on Windows
2019-05-14 14:20:09 +09:00
nobu
63f990674b
Use $(hdrdir) for include/ruby.h, as well as r67033
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-11 13:43:14 +00:00
nobu
384ca22a7a
io-console.gemspec: update
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-27 04:21:53 +00:00
nobu
d880245cbc
io-console: bump to 0.4.7
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-25 03:24:31 +00:00
nobu
1de78c5fd8
io/console: drop 2.1.0 support [ci skip]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-03-02 11:24:29 +00:00
nobu
013016b986
io/console: drop 2.0.0 support [ci skip]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-03-02 07:53:27 +00:00
nobu
7c4306e6e9
gperf.sed: static declarations
...
* tool/gperf.sed: comment out arguments part only, to keep the
following declarations static. [Feature #13883 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-15 14:42:43 +00:00
nobu
a4804fbdf5
support gperf 3.1
...
* tool/gperf.sed: extracted sed commands to a script. ANSI-C code
produced by gperf 3.1 declares length arguments as `size_t`. it
causes conflict with existing declarations, and needs casts for
a local variable and return statements.
[Feature #13883 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-08 05:51:19 +00:00
knu
b0c719dae4
Fix typos in rdoc
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-11-08 03:57:54 +00:00
knu
f477851bb7
Add details on the min/time parameters to the rdoc
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-11-07 05:28:14 +00:00
mame
f3a491d932
ext/io/console/lib/console/size.rb: Fix the context of method definition
...
`console_size` is not a instance method but a class method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-09-17 08:04:34 +00:00
hsbt
274c6180b7
To use github url for gemspec.
...
[Bug #13906 ][ruby-core:82817]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-09-15 23:46:46 +00:00
hsbt
4d5c414fcc
Update gemspec for gem released versions.
...
* These are dbm, fcntl, io-console, sdbm, stringio, strscan, zlib,
cmath, scanf.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-09-14 02:01:36 +00:00
nobu
65b11a04f1
console.c: set winsize on Windows
...
* ext/io/console/console.c (console_set_winsize): retry shrinking
window and screen buffer. [ruby-core:82741] [Bug #13888 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-09-11 20:10:34 +00:00
shyouhei
20c72dc89d
ruby tool/update-deps --fix
...
Onigumo 6 (r57045) introduced new onigumo.h header file, which is
required from quite much everywhere. This commit adds necessary
dependencies.
Note: ruby/oniguruma.h now includes onigumo.h,
ruby/io.h includes oniguruma.h,
ruby/encoding.h also includes oniguruma.h,
and internal.h includes encoding.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-03-22 06:00:18 +00:00
nobu
b4a55c1cad
console.c: unpaired size
...
* ext/io/console/console.c (console_set_winsize): reject unpaired
pixel size.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-01-07 23:02:29 +00:00
nobu
5b856ee1a6
console.c: OOB access
...
* ext/io/console/console.c (console_set_winsize): fix
out-of-bounds access. [ruby-core:79004] [Bug #13112 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-01-07 22:52:03 +00:00
kazu
07efce075b
Use https instead of http in some URLs
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-11 10:33:36 +00:00
nobu
64fea27496
Update dependencies
...
* common.mk (compile.o, loadpath.o): update dependencies.
* common.mk (vm_call.o): remove stale object dependencies.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-07-06 05:48:13 +00:00
nobu
53d4862952
io/console: bump up
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-04-15 06:15:54 +00:00
nobu
e78beed499
io/console: unknown key code for names with nul
...
* ext/io/console/console.c (console_key_pressed_p): raise the same
exception, "unknown virtual key code", for names with nul chars.
though console_win32_vk() considers the length and can deal with
nul chars, rb_sprintf() raised at PRIsVALUE previously, so quote
it if it is unprintable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-04-15 01:07:14 +00:00
nobu
9816f87815
io/console: rb_sym2str
...
* ext/io/console/console.c (rb_sym2str): fallback definition for
older ruby. [ruby-core:74953] [Bug #12284 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-04-15 00:02:59 +00:00
nobu
cc91082af8
io/console: use rb_funcallv
...
* ext/io/console/console.c: use rb_funcallv instead of
rb_funcall2, and define rb_funcallv if unavailable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-04-15 00:02:43 +00:00
nobu
c88d0666d4
io/console: fallback RARRAY_CONST_PTR
...
* ext/io/console/console.c (RARRAY_CONST_PTR): fallback definition
for older ruby.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-04-15 00:02:42 +00:00
nobu
0177687124
io/console: reject symbols with nul char
...
* ext/io/console/console.c (console_key_pressed_p): symbol names
can contain nul chars, reject them.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-04-15 00:02:41 +00:00
nobu
12a2e17a34
io/console: fix gem build failure on Windows
...
* ext/io/console/extconf.rb: fix gem build failure on Windows.
only win32_vk.inc is included in the gem and no dependencies for
the header, so that gperf will not be mandatory.
[ruby-core:72453] [Bug #11866 ]
* ext/io/console/io-console.gemspec: include depend file and
win32_vk header.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-23 15:26:08 +00:00
nobu
f4166e2dd7
prefer rb_syserr_fail
...
* file.c, io.c, util.c: prefer rb_syserr_fail with saved errno
over setting errno then call rb_sys_fail, not to be clobbered
potentially and to reduce thread local errno accesses.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-23 08:57:48 +00:00
nobu
52c3b2eb2a
io-console.gemspec: BSD-2-Clause
...
* ext/io/console/io-console.gemspec: change the license to
BSD-2-Clause since "ruby" is no longer valid license as gem.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-22 13:56:34 +00:00
nobu
3f90a4ae1e
io-console.gemspec: bump up
...
* ext/io/console/io-console.gemspec: bump up to 0.4.4.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-22 13:15:11 +00:00
naruse
c4fdfabcc8
handle ext/ as r53141
...
g -L frozen_string_literal ext/**/*.rb|xargs ruby -Ka -e'ARGV.each{|fn|puts
fn;open(fn,"r+"){|f|s=f.read.sub(/\A(#!.*\n)?(#.*coding.*\n)?/,"\\&#
frozen_string_literal: false\n");f.rewind;f.write s}}'
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-16 05:31:54 +00:00
nobu
8f620b9b17
retry IO#getpass
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-08 13:26:56 +00:00
naruse
958e153cdb
Revert r52902,r52903,r52910,r52911,r52937,r52939
...
Reject IO::Console#getpass because it can't test portablly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-08 10:54:42 +00:00
nobu
1ad0d8ecad
console.c: prompt to stderr
...
* ext/io/console/console.c (console_getpass): print prompt to
stderr when reading from stdin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-06 06:30:11 +00:00
nobu
187de9240a
console.c: console_getpass
...
* ext/io/console/console.c (console_getpass): add IO#getpass
method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-06 06:25:10 +00:00
nobu
9d0012b0e7
console.c: check unused args
...
* ext/io/console/console.c (console_set_winsize): unused arguments
also should be nil or integers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-07 00:25:50 +00:00
nobu
3553a86eb5
ext: use RARRAY_CONST_PTR
...
* ext/bigdecimal/bigdecimal.c: use RARRAY_CONST_PTR just fore
reference instead of RARRAY_PTR, to keep the array WB-protected.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-04 07:27:10 +00:00
nobu
71f2c19a9c
win32_vk.inc: merge win32_vk.h
...
* ext/io/console/win32_vk.inc: merge win32_vk.h not to be included
in HDRS on other platforms than Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-02 03:57:23 +00:00
nobu
0f6b7c4c3b
io/console/extconf.rb: fix typo
...
* ext/io/console/extconf.rb: fix typo, $nmake is "m" for MS, not
"n". check sys/ioctl.h iff necessary for tty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-07-27 02:21:13 +00:00
nobu
09389b47d2
console.c: undefined vk
...
* ext/io/console/console.c (console_key_pressed_p): raise
undefined virtual key code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-07-21 10:52:19 +00:00
usa
9dcf6d9f96
* ext/io/console/depend (.list.chksum): revert a part of r50859, because
...
it was not mentioned at its commit log and it caused a build error on
Windows ($(MAKE) is already quoted).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-06-13 10:47:30 +00:00
hsbt
7c34b471be
* ext/bigdecimal/bigdecimal.gemspec: Fix require paths for released gem.
...
[fix GH-929] Patch by @voxik
* ext/io/console/io-console.gemspec: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-06-13 02:35:25 +00:00
nobu
b031b3874b
win32_vk.inc: suppress warnings
...
* ext/io/console/depend (win32_vk.inc): use offsetof() to suppress
warnings against cast from pointer to integer of different size.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-06-13 01:59:58 +00:00
nobu
596663589b
extconf.rb: no nmake style VPATH
...
* ext/io/console/extconf.rb: only nmake needs remove style VPATH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-08 08:22:06 +00:00
nobu
d75ba7dc3e
depend: no nmake style VPATH
...
* ext/io/console/depend: remove nmake style VPATH, for normal makes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-08 08:05:45 +00:00
nobu
8869cdf576
checksum.rb: check the target
...
* tool/checksum.rb (Checksum#update?): check if the target exists
too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-07 07:09:43 +00:00
nobu
19e0fa010e
win32_vk.inc: renamed
...
* ext/io/console/win32_vk.inc: renamed not to be included in HDRS
by mkmf.rb and regenerated unexpectedly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-07 06:35:40 +00:00
nobu
81c83f55e7
io/console: win32_vk dependencies
...
* ext/io/console/depend: check if VK table is modified by the
checksum.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-06 21:54:07 +00:00
nobu
c1e7d5f5bd
io/console: vk_header only on Windows
...
* ext/io/console/extconf.rb: vk_header is used only on Windows,
nonsense to update on other platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-05 10:54:37 +00:00
nobu
11b97855c4
console.c: pressed? on Windows
...
* ext/io/console/console.c (console_key_pressed_p): new method
IO#pressed? on Windows. [EXPERIMENTAL]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-03 18:13:10 +00:00
nobu
85366d7d59
console.c: cursor position on Windows
...
* ext/io/console/console.c (console_goto): new method IO#goto on
Windows. [EXPERIMENTAL]
* ext/io/console/console.c (console_cursor_pos): new method
IO#cursor on Windows. [EXPERIMENTAL]
* ext/io/console/console.c (console_cursor_set): new method
IO#cursor= on Windows. [EXPERIMENTAL]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-03 18:11:40 +00:00
nobu
1014dfb442
console.c: IO#beep
...
* ext/io/console/console.c (console_beep): new method IO#beep.
[EXPERIMENTAL]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-03 18:11:25 +00:00
nobu
3cfd6f9fcd
console.c: remove old ifdef
...
* ext/io/console/console.c (LAST_ERROR): remove old ifdef, should
use rb_w32_map_errno always.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-03 00:35:35 +00:00
nobu
add8e1f5bb
console.c: winsize on Windows
...
* ext/io/console/console.c (console_set_winsize): use handle for
writing. GetConsoleScreenBufferInfo seems failing on a handle
for reading.
* io.c: [DOC] update the example of IO#winsize to use $stdout
instead of $stdin, which does not work on Windows. a patch by
Jan Lelis <mail AT janlelis.de> at [ruby-core:68574].
[Bug #10986 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-21 06:01:29 +00:00
nobu
b1cff6b68c
console.c: use static IDs
...
* ext/io/console/console.c (rawmode_opt): prepare static IDs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-16 03:43:20 +00:00
nobu
8a29d8bbde
console.c: avoid inadvertent pindown
...
* ext/io/console/console.c (console_dev): call Kernel#__send__
method to avoid inadvertent pindown.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-16 03:43:18 +00:00
nobu
5f9f15365f
console.c: fix typo
...
* ext/io/console/console.c (console_dev): fix typo, should be
rb_funcallv to call with an argument array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-16 03:27:02 +00:00
nobu
945e4692ca
console.c: IO.console arguments passing
...
* ext/io/console/console.c (console_dev): send the given arguments
to the opened console. as a special case, do nothing if :close
is given.
* test/lib/leakchecker.rb (LeakChecker#check_fd_leak): close if
console.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-25 07:14:12 +00:00
nobu
d8d326c97a
console.c: get rid of NameError
...
* ext/io/console/console.c (console_dev): id_console is not a
constant name, use rb_const_remove() to get rid of NameError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-25 01:09:17 +00:00
nobu
3bd4d51149
io/console: checks for old versions
...
* ext/io/console/extconf.rb: remove no longer needed checks for
old versions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-18 02:44:56 +00:00
nobu
c28e5f0852
io-console.gemspec: bump up
...
* ext/io/console/io-console.gemspec: bump up to 0.4.3.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-17 08:17:49 +00:00
nobu
ee4ca1887a
console.c: dead code
...
* ext/io/console/console.c: remove dead code for old versions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-17 08:17:46 +00:00
usa
64904f51d7
* ext/io/console/console.c (console_dev): need read access for conout$
...
because some functions need it. [Bug#9554]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-02-22 10:11:25 +00:00
nobu
2019f34bc9
io-console.gemspec: certification
...
* ext/io/console/io-console.gemspec: add a certification.
http://www.benjaminfleischer.com/2013/11/08/how-to-sign-your-rubygem-cert/
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-13 08:08:09 +00:00
nobu
c59ba9ce81
io-console.gemspec: drop 1.9
...
* ext/io/console/io-console.gemspec: drop 1.9 support since
rb_cloexec_open() is mandatory now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-09 13:56:04 +00:00
charliesome
ecab690862
* ext/io/console/console.c: delete redefinition of rb_cloexec_open.
...
This function is always defined by io.c and is declared as non-static
in a header file, so this declaration causes a compilation error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-09 10:18:56 +00:00
nobu
755f669316
io/console: rdoc
...
* ext/io/console/console.c (io_getch): add rdoc.
* ext/io/console/lib/console/size.rb (IO.console_size): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-24 06:54:25 +00:00
nobu
db41a18845
rename generic io modules
...
* ext/io/console/console.c, ext/stringio/stringio.c: rename internally
used modules as generic_readable and generic_writable. [Fix GH-315]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-24 06:54:17 +00:00
akr
788b45da3e
* ext/-test-/debug/depend: New file.
...
* ext/-test-/exception/depend: Ditto.
* ext/-test-/printf/depend: Ditto.
* ext/-test-/string/depend: Ditto.
* ext/coverage/depend: Ditto.
* ext/io/console/depend: Ditto.
* ext/io/nonblock/depend: Ditto.
* ext/io/wait/depend: Ditto.
* ext/openssl/depend: Ditto.
* ext/pathname/depend: Ditto.
* ext/psych/depend: Ditto.
* ext/zlib/depend: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-14 10:48:08 +00:00
nobu
4002be60c0
console.c: supppress warnings
...
* ext/io/console/console.c (console_iflush, console_oflush): supppress
unused-but-set-variable warnings on no tcflush.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-16 08:05:45 +00:00
nobu
78b50f26dc
io/console: 0.4.2
...
* ext/io/console/io-console.gemspec: bump to 0.4.2. now explicitly
requires ruby 1.9.3 or later. [Bug #7847 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-16 04:13:07 +00:00
nobu
923b8c4eda
io/console: set HAVE_RB_SCAN_ARGS_OPTIONAL_HASH
...
* ext/io/console/extconf.rb: obtain optional hash by rb_scan_args() by
default right now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-16 04:00:33 +00:00
nobu
2a62ca666c
io/console: fix configuration failure
...
* ext/io/console/extconf.rb: fix configuration failure by missing
cpp_include.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-16 03:58:04 +00:00
nobu
6ba2001d72
io/console: compatibility with 1.8
...
* ext/io/console/console.c (console_dev): compatibility with ruby 1.8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-16 03:47:21 +00:00
nobu
44c24d4416
io/console: compatibility with 1.9
...
* ext/io/console/console.c (rawmode_opt, console_dev): compatibility
with ruby 1.9. [ruby-core:52220] [Bug #7847 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-16 03:46:34 +00:00
nobu
490f1fc009
console.c: default by stty raw
...
* ext/io/console/console.c (rawmode_opt): use default values by `stty
raw`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-05 04:27:57 +00:00
nobu
d06141cde7
io-console.gemspec: 0.4.1
...
* ext/io/console/io-console.gemspec: bump to 0.4.1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-04 12:23:51 +00:00
nobu
1a15c3770e
io-console.gemspec: limit date length
...
* ext/io/console/io-console.gemspec: limit Date keyword length to get rid of locale format.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-04 12:15:32 +00:00
nobu
36ed400fe3
io-console.gemspec: update
...
* ext/io/console/io-console.gemspec: use Date keyword and add licenses.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-04 12:09:16 +00:00
nobu
523292d612
console.c: initialize
...
* ext/io/console/console.c (rawmode_opt): initialize options for the
case all options are not given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-04 06:10:12 +00:00
nobu
80455c0d97
* ext/io/console/io-console.gemspec: fix date.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-03 08:22:43 +00:00
nobu
b3d12956b4
io-console.gemspec: bump
...
* ext/io/console/io-console.gemspec: bump. [Bug #7762 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-03 07:54:29 +00:00
nobu
f050b22327
console.c: fix unit of min
...
* ext/io/console/console.c (rawmode_opt): min is minimum characters,
not tenths.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-03 07:54:18 +00:00
nobu
b0dd250dc9
use RB_TYPE_P() instead of comparison of TYPE()
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-23 07:13:21 +00:00
nobu
dd9569ded8
* ext/io/console/console.c (set_rawmode): clear ECHOE and ECHOK
...
bits too.
* ext/io/console/console.c (echo_p): ignore ECHOE and ECHOK bits.
[ruby-dev:45309] [Bug #6116 ]
* ext/io/console/console.c (console_raw): fix rdoc.
* ext/io/console/console.c (console_set_echo): mentioned about
platform dependency.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-06 01:11:47 +00:00
nobu
8335ce7065
* ext/io/console/console.c (io_getch): default delegating method
...
for StringIO. https://github.com/nobu/io-console/issues/4
* ext/stringio/stringio.c: moved some methods to hidden modules.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-25 18:24:09 +00:00
drbrain
12e7e79727
* io.c (Init_IO): Mention io/console methods. [Ruby 1.9 - Bug #5602 ]
...
* ext/io/console/console.c: Mention that io/console must be required
similar to lib/time.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-07 01:49:40 +00:00
nobu
714ec98ec4
* ext/io/console/console.c (console_raw, console_set_raw)
...
(console_getch): optional parameters. [EXPERIMENTAL]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-18 08:18:18 +00:00
nobu
3723ac22d2
* ext/io/console/console.c (console_cooked, console_set_cooked):
...
new methods to reset cooked mode. [EXPERIMENTAL]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-18 07:12:14 +00:00
akr
da74bc7552
* process.c (ruby_setsid): use rb_cloexec_open.
...
(rb_daemon): ditto.
* ruby.c (load_file_internal): ditto.
* file.c (rb_file_s_truncate): ditto.
(file_load_ok): ditto.
* random.c (fill_random_seed): ditto.
* ext/pty/pty.c (chfunc): ditto.
(get_device_once): ditto.
* ext/io/console/console.c (console_dev): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-29 04:01:54 +00:00
akr
b574a4d4a1
* include/ruby/intern.h (rb_fd_set_cloexec): declared.
...
* io.c (rb_fd_set_cloexec): new function.
(ruby_dup): call rb_fd_set_cloexec to set close-on-exec flag.
(rb_sysopen_internal): ditto.
(rb_pipe): ditto.
(io_reopen): ditto.
(io_cntl): ditto.
* process.c (rb_f_exec): change the default :close_others option to
true.
(rb_f_system): ditto.
(move_fds_to_avoid_crash): call rb_fd_set_cloexec to set
close-on-exec flag.
(ruby_setsid): ditto.
(rb_daemon): ditto.
* thread_pthread.c (rb_thread_create_timer_thread): call
rb_fd_set_cloexec to set close-on-exec flag.
* ruby.c (load_file_internal): ditto.
* file.c (rb_file_s_truncate): ditto.
(file_load_ok): ditto.
* random.c (fill_random_seed): ditto.
* ext/pty/pty.c (chfunc): ditto.
(get_device_once): ditto.
* ext/openssl/ossl_bio.c (ossl_obj2bio): ditto.
* ext/socket/init.c (rsock_socket): ditto.
(rsock_s_accept_nonblock): ditto.
(rsock_s_accept): ditto.
* ext/socket/socket.c (rsock_sock_s_socketpair): ditto.
* ext/socket/ancdata.c (discard_cmsg): ditto.
(make_io_for_unix_rights): ditto.
* ext/socket/unixsocket.c (unix_recv_io): ditto.
* ext/io/console/console.c (console_dev): ditto.
[ruby-core:38140] [Feature #5041 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-22 09:58:15 +00:00
nobu
e6ce15c68a
* ext/bigdecimal/bigdecimal.gemspec (files): fixed typo, and
...
removed nonexistent file.
* ext/bigdecimal/bigdecimal.gemspec (homepage): added.
* ext/io/console/io-console.gemspec (homepage): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-16 10:46:30 +00:00
nobu
4ac511266d
* ext/io/console/console.c (console_set_winsize): remove
...
unused variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-03 14:54:14 +00:00
nobu
72276eb06b
* remove unused variables.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-29 15:49:36 +00:00
akr
b41ccc4a9c
* include/ruby/intern.h (rb_update_max_fd): declaration moved from
...
internal.h.
* file.c: ditto.
* io.c: call rb_update_max_fd for each new fds.
* process.c: ditto.
* random.c: ditto.
* ruby.c: ditto.
* ext/io/console/console.c: ditto.
* ext/openssl/ossl_bio.c: ditto.
* ext/pty/pty.c: ditto.
* ext/socket/init.c: ditto.
* ext/socket/socket.c: ditto.
* ext/socket/ancdata.c: ditto.
* ext/socket/unixsocket.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-20 13:26:10 +00:00
nobu
3b8f9dc0b0
* ext/io/console/io-console.gemspec: spin-off gem for 1.9.2.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 11:54:27 +00:00
usa
57ed1e9d75
* ext/io/console/console.c (console_dev): typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-13 14:51:25 +00:00
nobu
73c6b9d453
* ext/io/console/console.c (console_dev): console should be
...
unbuffered.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-13 14:33:36 +00:00
nobu
a7b0b52f09
* ext/io/console/console.c (console_dev): take care of no-ctty
...
case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-13 14:28:53 +00:00
nobu
3254c1bf24
* ext/io/console/console.c (console_dev): fix typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-13 14:06:35 +00:00
nobu
aef01ee789
* ext/io/console/lib/console/size.rb (IO#console_size): new
...
method. (EXPERIMENTAL)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-18 13:45:29 +00:00
naruse
3dbb97708b
* ext/io/console/console.c (console_set_winsize):
...
surpress warning: shorten-64-to-32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-24 01:25:19 +00:00
nobu
f4234c9b8f
* ext/io/console/console.c (console_set_winsize): new method to set
...
console size. [EXPERIMENTAL]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-31 23:01:46 +00:00
nobu
c90d5be882
* ext/io/console/console.c (console_winsize): use GetWriteFD.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-31 22:56:07 +00:00
nobu
0e24a11b59
* ext/io/console/console.c (setattr): should retry on EINTR.
...
[ruby-dev:42666]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-01 22:08:41 +00:00
usa
80b9fb5a7b
* io/console/console.c (winsize_row): should return actual screen
...
size, not buffer size.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-06 12:47:18 +00:00
akr
415be47593
update doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-25 14:26:04 +00:00
nobu
30f637024b
* ext/io/console/console.c (get_write_fd): return primary fd if no
...
io is tied for writing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 09:45:29 +00:00
nobu
552243aa15
* ext/io/console/console.c (console_set_echo, console_echo_p): use
...
primary fd. [ruby-dev:41309]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 08:56:11 +00:00
nobu
b44618d5e5
* ext/io/console/console.c (console_set_raw): new method.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-09 15:54:17 +00:00
nobu
08bf7189f8
* ext/io/console/console.c (ttymode): reverted previous commit.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-09 15:35:43 +00:00
nobu
6f3830427d
* ext/io/console/console.c (ttymode): save dupped file descriptors
...
and restore tty modes using them, so that original modes can be
restored even if orignal fds are closed. [ruby-dev:41225]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-08 14:07:32 +00:00
nobu
163f974208
* ext/io/console: imported. [ruby-dev:40897]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-08 04:05:39 +00:00