APIdock / Ruby
/
method

getstr

ruby latest stable - Class: Curses

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_3_392) is shown here.

getstr()
public

This is equivalent to a series f Curses::Window.getch calls

static VALUE
curses_getstr(VALUE obj)
{
 char rtn[GETSTR_BUF_SIZE];
 curses_stdscr();
 rb_thread_blocking_region(getstr_func, (void *)rtn, RUBY_UBF_IO, 0);
 return rb_locale_str_new_cstr(rtn);
}

AltStyle によって変換されたページ (->オリジナル) /