module NCurses
Overview
Low-level bindings to the ncurses library. This is actually a very, very thin
wrapper around the LibNCurses
C bindings. It is expected that you use this
module rather than calling directly into LibNCurses
.
Extended Modules
Defined in:
remicharms/lib.crConstant Summary
-
ALL_MOUSE_EVENTS =
134217727
-
BUTTON1_CLICKED =
4
-
BUTTON1_DOUBLE_CLICKED =
8
-
BUTTON1_PRESSED =
2
-
BUTTON1_RELEASED =
1
-
BUTTON1_TRIPLE_CLICKED =
16
-
BUTTON2_CLICKED =
256
-
BUTTON2_DOUBLE_CLICKED =
512
-
BUTTON2_PRESSED =
128
-
BUTTON2_RELEASED =
64
-
BUTTON2_TRIPLE_CLICKED =
1024
-
BUTTON3_CLICKED =
16384
-
BUTTON3_DOUBLE_CLICKED =
32768
-
BUTTON3_PRESSED =
8192
-
BUTTON3_RELEASED =
4096
-
BUTTON3_TRIPLE_CLICKED =
65536
-
BUTTON_ALT =
67108864
-
BUTTON_CTRL =
16777216
-
BUTTON_SHIFT =
33554432
-
ERR =
-1
-
FALSE =
0_u8
-
OK =
0
-
REPORT_MOUSE_POSITION =
134217728
-
TRUE =
1_u8
Instance Method Summary
- #addch(ch)
- #addchnstr(chstr, n)
- #addchstr(chstr)
- #addnstr(str, n)
- #addstr(str)
- #assume_default_colors(fg, bg)
- #attr_get(attrs, pair, opts)
- #attr_off(attrs, opts)
- #attr_on(attrs, opts)
- #attr_set(attrs, pair, opts)
- #attroff(attrs)
- #attron(attrs)
- #attrset(attrs)
- #baudrate
- #beep
- #bkgd(ch)
- #bkgdset(ch)
- #border(ls : Int, rs : Int, ts : Int, bs : Int, tl : Int, tr : Int, bl : Int, br : Int) : Int32
- #border(ls : Acs, rs : Acs, ts : Acs, bs : Acs, tl : Acs, tr : Acs, bl : Acs, br : Acs) : Int32
- #box(win : WindowPtr, verCh : Int, horCh : Int) : Int32
- #box(win : WindowPtr, verCh : Acs, horCh : Acs) : Int32
- #can_change_color
- #cbreak
- #chgat(n, attrs, color, opts)
- #clear
- #clearok(win, bf)
- #clrtobot
- #clrtoeol
- #color_content(color, r, g, b)
- #color_pair(pair)
- #color_set(colorPairNum, opts)
- #curs_set(visibility)
- #curses_version
- #def_prog_mode
- #def_shell_mode
- #delay_output(ms)
- #delch
- #deleteln
- #delscreen(sp)
- #delwin(win)
- #doupdate
- #dupwin(win)
- #echo
- #echochar(ch)
- #endwin
- #erase
- #erasechar
- #filter
- #flash
- #flushinp
- #getbegx(win)
- #getbegy(win)
- #getbegyx(win : WindowPtr) : Tuple(Int32, Int32)
- #getbkgd(win)
- #getch
- #getcurx(win)
- #getcury(win)
- #getmaxx(win)
- #getmaxy(win)
- #getmaxyx(win : WindowPtr) : Tuple(Int32, Int32)
- #getmouse : Tuple(UInt64, Int32, Int32, Int32, Int16)
- #getnstr(str, n)
- #getparx(win)
- #getpary(win)
- #getparyx(win : WindowPtr) : Tuple(Int32, Int32)
- #getstr(str)
- #getwch : Tuple(UInt32 | Nil, Int32)
- #getyx(win : WindowPtr) : Tuple(Int32, Int32)
- #halfdelay(tenths)
- #has_colors
- #has_ic
- #has_il
- #has_mouse
- #hline(ch : Int, n : Int) : Int32
- #hline(ch : Acs, n : Int) : Int32
- #idcok(win, bf)
- #idlok(win, bf)
- #immedok(win, bf)
- #inch
- #inchnstr(chstr, n)
- #inchstr(chstr)
- #init_color(color, r, g, b)
- #init_pair(pair, f, b)
- #initscr
- #innstr(str, n)
- #insch(ch)
- #insdelln(n)
- #insertln
- #insnstr(str, n)
- #insstr(str)
- #instr(str)
- #intrflush(win, bf)
- #is_linetouched(win, line)
- #is_term_resized(lines, columns)
- #is_wintouched(win)
- #isendwin
- #keybound(keycode, count)
- #keyname(c)
- #keyok(keycode, enable)
- #keypad(win, bf)
- #killchar
- #leaveok(win, bf)
- #longname
- #mcprint(data, len)
- #meta(win, bf)
- #mouse_trafo(py, px, toScreen)
- #mouse_wtrafo(win, py, px, toScreen)
- #mouseinterval(erval)
- #mousemask(newMask : UInt32) : UInt32
- #move(y, x)
- #mvaddch(y, x, ch)
- #mvaddchnstr(y, x, chstr, n)
- #mvaddchstr(y, x, chstr)
- #mvaddnstr(y, x, str, n)
- #mvaddstr(y, x, str)
- #mvchgat(y, x, n, attrs, color, opts)
- #mvdelch(y, x)
- #mvderwin(win, y, x)
- #mvgetch(y, x)
- #mvgetnstr(y, x, str, n)
- #mvgetstr(y, x, str)
- #mvgetwch(y : Int32, x : Int32) : Tuple(UInt32 | Nil, Int32)
- #mvhline(y : Int, x : Int, ch : Int, n : Int) : Int32
- #mvhline(y : Int, x : Int, ch : Acs, n : Int) : Int32
- #mvinch(y, x)
- #mvinchnstr(y, x, chstr, n)
- #mvinchstr(y, x, chstr)
- #mvinnstr(y, x, str, n)
- #mvinsch(y, x, ch)
- #mvinsnstr(y, x, str, n)
- #mvinsstr(y, x, str)
- #mvinstr(y, x, str)
- #mvprintw(y, x, fmt)
- #mvvline(y : Int, x : Int, ch : Int, n : Int) : Int32
- #mvvline(y : Int, x : Int, ch : Acs, n : Int) : Int32
- #mvwaddch(win, y, x, ch)
- #mvwaddchnstr(win, y, x, chstr, n)
- #mvwaddchstr(win, y, x, chstr)
- #mvwaddnstr(win, y, x, str, n)
- #mvwaddstr(win, y, x, str)
- #mvwchgat(win, y, x, n, attrs, color, opts)
- #mvwdelch(win, y, x)
- #mvwgetch(win, y, x)
- #mvwgetnstr(win, y, x, str, n)
- #mvwgetstr(win, y, x, str)
- #mvwgetwch(win : WindowPtr, y : Int32, x : Int32) : Tuple(UInt32 | Nil, Int32)
- #mvwhline(win : WindowPtr, y : Int, x : Int, ch : Int, n : Int) : Int32
- #mvwhline(win : WindowPtr, y : Int, x : Int, ch : Acs, n : Int) : Int32
- #mvwin(win, y, x)
- #mvwinch(win, y, x)
- #mvwinchnstr(win, y, x, chstr, n)
- #mvwinchstr(win, y, x, chstr)
- #mvwinsch(y, x, win, ch)
- #mvwinsnstr(win, y, x, str, n)
- #mvwinsstr(win, y, x, str)
- #mvwprintw(win, y, x, fmt)
- #mvwvline(win : WindowPtr, y : Int, x : Int, ch : Int, n : Int) : Int32
- #mvwvline(win : WindowPtr, y : Int, x : Int, ch : Acs, n : Int) : Int32
- #napms(ms)
- #newpad(nlines, ncols)
- #newterm(typ, outd, infd)
- #newwin(nlines, ncols, beginY, beginX)
- #nl
- #nocbreak
- #nodelay(win, bf)
- #noecho
- #nonl
- #noqiflush
- #noraw
- #notimeout(win, bf)
- #overlay(srcwin, dstwin)
- #overwrite(srcwin, dstwin)
- #pair_content(pair, f, b)
- #pechochar(pad, ch)
- #pnoutrefresh(pad, pminrow, pmincol, sminrow, smincol, smaxrow, smaxcol)
- #prefresh(pad, pminrow, pmincol, sminrow, smincol, smaxrow, smaxcol)
- #printw(fmt)
- #qiflush
- #raw
- #redrawwin(win)
- #refresh
- #reset_prog_mode
- #reset_shell_mode
- #resetty
- #resize_term(line, columns)
- #resizeterm(line, columns)
- #savetty
- #scr_dump(filename)
- #scr_init(filename)
- #scr_restore(filename)
- #scr_set(filename)
- #scrl(n)
- #scroll(win)
- #scrollok(win, bf)
- #set_term(sp)
- #setscrreg(top, bot)
- #slk_attroff(attrs)
- #slk_attron(attrs)
- #slk_attrset(attrs)
- #slk_clear
- #slk_color(color_pair_number)
- #slk_init(fmt)
- #slk_label(labnum)
- #slk_noutrefresh
- #slk_refresh
- #slk_restore
- #slk_set(labnum, label, fmt)
- #slk_touch
- #standend
- #standout
- #start_color
- #subpad(orig, nlines, ncols, beginY, beginX)
- #subwin(orig, nlines, ncols, beginY, beginX)
- #syncok(win, bf)
- #termattrs
- #termname
- #tgetflag(id)
- #tgetnum(id)
- #timeout(delay)
- #touchline(win, start, count)
- #touchwin(win)
- #typeahead(fd)
- #unctrl(c)
- #unget_wch(wch)
- #ungetch(ch)
- #untouchwin(win)
- #use_default_colors
- #use_env(f)
- #use_extended_names(enable)
- #vline(ch : Int, n : Int) : Int32
- #vline(ch : Acs, n : Int) : Int32
- #waddch(win, ch)
- #waddchnstr(win, chstr, n)
- #waddchstr(win, chstr)
- #waddnstr(win, str, n)
- #waddstr(win, str)
- #wattr_get(win, attrs, pair, opts)
- #wattr_off(win, attrs, opts)
- #wattr_on(win, attrs, opts)
- #wattr_set(win, attrs, pair, opts)
- #wattroff(win, attrs)
- #wattron(win, attrs)
- #wattrset(win, attrs)
- #wbkgd(win, ch)
- #wbkgdset(win, ch)
- #wborder(win : WindowPtr, ls : Int, rs : Int, ts : Int, bs : Int, tl : Int, tr : Int, bl : Int, br : Int) : Int32
- #wborder(win : WindowPtr, ls : Acs, rs : Acs, ts : Acs, bs : Acs, tl : Acs, tr : Acs, bl : Acs, br : Acs) : Int32
- #wchgat(win, n, attrs, color, opts)
- #wclear(win)
- #wclrtobot(win)
- #wclrtoeol(win)
- #wcolor_set(win, color, opts)
- #wcursyncup(win)
- #wdelch(win)
- #wdeleteln(win)
- #wechochar(win, ch)
- #wenclose(win, y, x)
- #werase(win)
- #wgetch(win)
- #wgetnstr(win, str, n)
- #wgetstr(win, str)
- #wgetwch(win : WindowPtr) : Tuple(UInt32 | Nil, CInt32)
- #whline(win : WindowPtr, ch : Int, n : Int) : Int32
- #whline(win : WindowPtr, ch : Acs, n : Int) : Int32
- #winch(win)
- #winchnstr(win, chstr, n)
- #winchstr(win, chstr)
- #winnstr(win, str, n)
- #winsch(win, ch)
- #winsdelln(win, n)
- #winsertln(win)
- #winsnstr(win, str, n)
- #winsstr(win, str)
- #winstr(win, str)
- #wmove(win, y, x)
- #wnoutrefresh(win)
- #wprintw(win, fmt)
- #wredrawln(win, begLine, numLines)
- #wrefresh(win)
- #wresize(win, lines, columns)
- #wscrl(win, n)
- #wsetscrreg(win, top, bot)
- #wstandend(win)
- #wstandout(win)
- #wsyncdown(win)
- #wsyncup(win)
- #wtimeout(win, delay)
- #wtouchln(win, y, n, changed)
- #wvline(win : WindowPtr, ch : Int, n : Int) : Int32
- #wvline(win : WindowPtr, ch : Acs, n : Int) : Int32
Instance Method Detail
def border(ls : Int, rs : Int, ts : Int, bs : Int, tl : Int, tr : Int, bl : Int, br : Int) : Int32
#
def border(ls : Acs, rs : Acs, ts : Acs, bs : Acs, tl : Acs, tr : Acs, bl : Acs, br : Acs) : Int32
#
def wborder(win : WindowPtr, ls : Int, rs : Int, ts : Int, bs : Int, tl : Int, tr : Int, bl : Int, br : Int) : Int32
#