Method: Curses::Window#addch

Defined in:
ext/curses/curses.c

#addch(ch) ⇒ Object

Add a character ch, with attributes, to the window, then advance the cursor.

see also the system manual for curs_addch(3)



2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
# File 'ext/curses/curses.c', line 2437

static VALUE
window_addch(VALUE obj, VALUE ch)
{
    struct windata *winp;

    GetWINDOW(obj, winp);
    waddch(winp->window, OBJ2CHTYPE(ch));

    return Qnil;
}