зеркало из https://github.com/github/ruby.git
[ruby/io-console] [DOC] Add documentation for IO#cursor
ruby/io-console#50 https://github.com/ruby/io-console/commit/ee752ce771
This commit is contained in:
Родитель
2e9329e7a2
Коммит
d69af4788a
|
@ -1152,6 +1152,16 @@ console_scroll(VALUE io, int line)
|
|||
# define console_key_pressed_p rb_f_notimplement
|
||||
#endif
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
* io.cursor -> [row, column]
|
||||
*
|
||||
* Returns the current cursor position as a two-element array of integers (row, column)
|
||||
*
|
||||
* io.cursor # => [3, 5]
|
||||
*
|
||||
* You must require 'io/console' to use this method.
|
||||
*/
|
||||
static VALUE
|
||||
console_cursor_pos(VALUE io)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче