Method: Curses::Window#getstr

Defined in:
ext/curses/curses.c

#getstrObject

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



2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
# File 'ext/curses/curses.c', line 2574

static VALUE
window_getstr(VALUE obj)
{
    struct windata *winp;
    struct wgetstr_arg arg;

    GetWINDOW(obj, winp);
    arg.win = winp->window;
    rb_thread_call_without_gvl(wgetstr_func, (void *)&arg, RUBY_UBF_IO, 0);
    return rb_external_str_new_with_enc(arg.rtn, strlen(arg.rtn),
				       	keyboard_encoding);
}