Method: Curses.getstr
- Defined in:
- ext/curses/curses.c
.getstr ⇒ Object
This is equivalent to a series of Curses::Window.getch calls
896 897 898 899 900 901 902 903 904 |
# File 'ext/curses/curses.c', line 896 static VALUE curses_getstr(VALUE obj) { char rtn[GETSTR_BUF_SIZE]; curses_stdscr(); rb_thread_call_without_gvl(getstr_func, rtn, RUBY_UBF_IO, 0); return rb_external_str_new_with_enc(rtn, strlen(rtn), keyboard_encoding); } |