Module: Ncurses
- Defined in:
- ext/ncurses/ncurses_wrap.c,
lib/ncurses-ruby/version.rb,
lib/ncurses.rb,
lib/ncurses.rb
Defined Under Namespace
Modules: Destroy_checker, Form, Menu, Namespace, Panel, Ruby
Classes: Exception, MEVENT, SCREEN, WINDOW
Constant Summary
- CURSES =
INT2NUM((int)(CURSES))
- CURSES_H =
INT2NUM((int)(CURSES_H))
- NCURSES_VERSION_MAJOR =
INT2NUM((int)(NCURSES_VERSION_MAJOR))
- NCURSES_VERSION_MINOR =
INT2NUM((int)(NCURSES_VERSION_MINOR))
- NCURSES_VERSION_PATCH =
INT2NUM((int)(NCURSES_VERSION_PATCH))
- NCURSES_VERSION =
rb_str_new2(NCURSES_VERSION)
- WA_ATTRIBUTES =
INT2NUM(WA_ATTRIBUTES)
- WA_NORMAL =
INT2NUM(WA_NORMAL)
- WA_STANDOUT =
INT2NUM(WA_STANDOUT)
- WA_UNDERLINE =
INT2NUM(WA_UNDERLINE)
- WA_REVERSE =
INT2NUM(WA_REVERSE)
- WA_BLINK =
INT2NUM(WA_BLINK)
- WA_DIM =
INT2NUM(WA_DIM)
- WA_BOLD =
INT2NUM(WA_BOLD)
- WA_ALTCHARSET =
INT2NUM(WA_ALTCHARSET)
- WA_INVIS =
INT2NUM(WA_INVIS)
- WA_PROTECT =
INT2NUM(WA_PROTECT)
- WA_HORIZONTAL =
INT2NUM(WA_HORIZONTAL)
- WA_LEFT =
INT2NUM(WA_LEFT)
- WA_LOW =
INT2NUM(WA_LOW)
- WA_RIGHT =
INT2NUM(WA_RIGHT)
- WA_TOP =
INT2NUM(WA_TOP)
- WA_VERTICAL =
INT2NUM(WA_VERTICAL)
- COLOR_BLACK =
INT2NUM(COLOR_BLACK)
- COLOR_RED =
INT2NUM(COLOR_RED)
- COLOR_GREEN =
INT2NUM(COLOR_GREEN)
- COLOR_YELLOW =
INT2NUM(COLOR_YELLOW)
- COLOR_BLUE =
INT2NUM(COLOR_BLUE)
- COLOR_MAGENTA =
INT2NUM(COLOR_MAGENTA)
- COLOR_CYAN =
INT2NUM(COLOR_CYAN)
- COLOR_WHITE =
INT2NUM(COLOR_WHITE)
- ERR =
INT2NUM(ERR)
- OK =
INT2NUM(OK)
- SUBWIN =
INT2NUM(_SUBWIN)
- ENDLINE =
INT2NUM(_ENDLINE)
- FULLWIN =
INT2NUM(_FULLWIN)
- SCROLLWIN =
INT2NUM(_SCROLLWIN)
- ISPAD =
INT2NUM(_ISPAD)
- HASMOVED =
INT2NUM(_HASMOVED)
- WRAPPED =
INT2NUM(_WRAPPED)
- NOCHANGE =
this value is used in the firstchar and lastchar fields to mark unchanged
lines
INT2NUM(_NOCHANGE)
- NEWINDEX =
this value is used in the oldindex field to mark lines created by
insertions and scrolls.
INT2NUM(_NEWINDEX)
- CCHARW_MAX =
INT2NUM(CCHARW_MAX)
- ACS_ULCORNER =
INT2NUM(ACS_ULCORNER)
- ACS_LLCORNER =
INT2NUM(ACS_LLCORNER)
- ACS_URCORNER =
INT2NUM(ACS_URCORNER)
- ACS_LRCORNER =
INT2NUM(ACS_LRCORNER)
- ACS_LTEE =
INT2NUM(ACS_LTEE)
- ACS_RTEE =
INT2NUM(ACS_RTEE)
- ACS_BTEE =
INT2NUM(ACS_BTEE)
- ACS_TTEE =
INT2NUM(ACS_TTEE)
- ACS_HLINE =
INT2NUM(ACS_HLINE)
- ACS_VLINE =
INT2NUM(ACS_VLINE)
- ACS_PLUS =
INT2NUM(ACS_PLUS)
- ACS_S1 =
INT2NUM(ACS_S1)
- ACS_S9 =
INT2NUM(ACS_S9)
- ACS_DIAMOND =
INT2NUM(ACS_DIAMOND)
- ACS_CKBOARD =
INT2NUM(ACS_CKBOARD)
- ACS_DEGREE =
INT2NUM(ACS_DEGREE)
- ACS_PLMINUS =
INT2NUM(ACS_PLMINUS)
- ACS_BULLET =
INT2NUM(ACS_BULLET)
- ACS_LARROW =
Teletype 5410v1 symbols begin here
INT2NUM(ACS_LARROW)
- ACS_RARROW =
INT2NUM(ACS_RARROW)
- ACS_DARROW =
INT2NUM(ACS_DARROW)
- ACS_UARROW =
INT2NUM(ACS_UARROW)
- ACS_BOARD =
INT2NUM(ACS_BOARD)
- ACS_LANTERN =
INT2NUM(ACS_LANTERN)
- ACS_BLOCK =
INT2NUM(ACS_BLOCK)
- ACS_S3 =
INT2NUM(ACS_S3)
- ACS_S7 =
INT2NUM(ACS_S7)
- ACS_LEQUAL =
INT2NUM(ACS_LEQUAL)
- ACS_GEQUAL =
INT2NUM(ACS_GEQUAL)
- ACS_PI =
INT2NUM(ACS_PI)
- ACS_NEQUAL =
INT2NUM(ACS_NEQUAL)
- ACS_STERLING =
INT2NUM(ACS_STERLING)
- ACS_BSSB =
INT2NUM(ACS_BSSB)
- ACS_SSBB =
INT2NUM(ACS_SSBB)
- ACS_BBSS =
INT2NUM(ACS_BBSS)
- ACS_SBBS =
INT2NUM(ACS_SBBS)
- ACS_SBSS =
INT2NUM(ACS_SBSS)
- ACS_SSSB =
INT2NUM(ACS_SSSB)
- ACS_SSBS =
INT2NUM(ACS_SSBS)
- ACS_BSSS =
INT2NUM(ACS_BSSS)
- ACS_BSBS =
INT2NUM(ACS_BSBS)
- ACS_SBSB =
INT2NUM(ACS_SBSB)
- ACS_SSSS =
INT2NUM(ACS_SSSS)
- A_NORMAL =
INT2NUM(A_NORMAL)
- A_ATTRIBUTES =
INT2NUM(A_ATTRIBUTES)
- A_CHARTEXT =
INT2NUM(A_CHARTEXT)
- A_COLOR =
INT2NUM(A_COLOR)
- A_STANDOUT =
INT2NUM(A_STANDOUT)
- A_UNDERLINE =
INT2NUM(A_UNDERLINE)
- A_REVERSE =
INT2NUM(A_REVERSE)
- A_BLINK =
INT2NUM(A_BLINK)
- A_DIM =
INT2NUM(A_DIM)
- A_BOLD =
INT2NUM(A_BOLD)
- A_ALTCHARSET =
INT2NUM(A_ALTCHARSET)
- A_INVIS =
INT2NUM(A_INVIS)
- A_PROTECT =
Tradeoff on 32-bit machines ('protect' vs widec). The others
(e.g., left highlight are not implemented in any terminal descriptions,
anyway.
INT2NUM(A_PROTECT)
- A_HORIZONTAL =
INT2NUM(A_HORIZONTAL)
- A_LEFT =
INT2NUM(A_LEFT)
- A_LOW =
INT2NUM(A_LOW)
- A_RIGHT =
INT2NUM(A_RIGHT)
- A_TOP =
INT2NUM(A_TOP)
- A_VERTICAL =
INT2NUM(A_VERTICAL)
- KEY_CODE_YES =
INT2NUM(KEY_CODE_YES)
- KEY_MIN =
INT2NUM(KEY_MIN)
- KEY_BREAK =
INT2NUM(KEY_BREAK)
- KEY_DOWN =
INT2NUM(KEY_DOWN)
- KEY_UP =
INT2NUM(KEY_UP)
- KEY_LEFT =
INT2NUM(KEY_LEFT)
- KEY_RIGHT =
INT2NUM(KEY_RIGHT)
- KEY_HOME =
INT2NUM(KEY_HOME)
- KEY_BACKSPACE =
INT2NUM(KEY_BACKSPACE)
- KEY_F0 =
INT2NUM(KEY_F(0))
- KEY_F1 =
INT2NUM(KEY_F(1))
- KEY_F2 =
INT2NUM(KEY_F(2))
- KEY_F3 =
INT2NUM(KEY_F(3))
- KEY_F4 =
INT2NUM(KEY_F(4))
- KEY_F5 =
INT2NUM(KEY_F(5))
- KEY_F6 =
INT2NUM(KEY_F(6))
- KEY_F7 =
INT2NUM(KEY_F(7))
- KEY_F8 =
INT2NUM(KEY_F(8))
- KEY_F9 =
INT2NUM(KEY_F(9))
- KEY_F10 =
INT2NUM(KEY_F(10))
- KEY_F11 =
INT2NUM(KEY_F(11))
- KEY_F12 =
INT2NUM(KEY_F(12))
- KEY_F13 =
INT2NUM(KEY_F(13))
- KEY_F14 =
INT2NUM(KEY_F(14))
- KEY_F15 =
INT2NUM(KEY_F(15))
- KEY_F16 =
INT2NUM(KEY_F(16))
- KEY_F17 =
INT2NUM(KEY_F(17))
- KEY_F18 =
INT2NUM(KEY_F(18))
- KEY_F19 =
INT2NUM(KEY_F(19))
- KEY_F20 =
INT2NUM(KEY_F(20))
- KEY_F21 =
INT2NUM(KEY_F(21))
- KEY_F22 =
INT2NUM(KEY_F(22))
- KEY_F23 =
INT2NUM(KEY_F(23))
- KEY_F24 =
INT2NUM(KEY_F(24))
- KEY_F25 =
INT2NUM(KEY_F(25))
- KEY_F26 =
INT2NUM(KEY_F(26))
- KEY_F27 =
INT2NUM(KEY_F(27))
- KEY_F28 =
INT2NUM(KEY_F(28))
- KEY_F29 =
INT2NUM(KEY_F(29))
- KEY_F30 =
INT2NUM(KEY_F(30))
- KEY_DL =
INT2NUM(KEY_DL)
- KEY_IL =
INT2NUM(KEY_IL)
- KEY_DC =
INT2NUM(KEY_DC)
- KEY_IC =
INT2NUM(KEY_IC)
- KEY_EIC =
INT2NUM(KEY_EIC)
- KEY_CLEAR =
INT2NUM(KEY_CLEAR)
- KEY_EOS =
INT2NUM(KEY_EOS)
- KEY_EOL =
INT2NUM(KEY_EOL)
- KEY_SF =
INT2NUM(KEY_SF)
- KEY_SR =
INT2NUM(KEY_SR)
- KEY_NPAGE =
INT2NUM(KEY_NPAGE)
- KEY_PPAGE =
INT2NUM(KEY_PPAGE)
- KEY_STAB =
INT2NUM(KEY_STAB)
- KEY_CTAB =
INT2NUM(KEY_CTAB)
- KEY_CATAB =
INT2NUM(KEY_CATAB)
- KEY_ENTER =
INT2NUM(KEY_ENTER)
- KEY_SRESET =
INT2NUM(KEY_SRESET)
- KEY_RESET =
INT2NUM(KEY_RESET)
- KEY_PRINT =
INT2NUM(KEY_PRINT)
- KEY_LL =
INT2NUM(KEY_LL)
- KEY_A1 =
INT2NUM(KEY_A1)
- KEY_A3 =
INT2NUM(KEY_A3)
- KEY_B2 =
INT2NUM(KEY_B2)
- KEY_C1 =
INT2NUM(KEY_C1)
- KEY_C3 =
INT2NUM(KEY_C3)
- KEY_BTAB =
INT2NUM(KEY_BTAB)
- KEY_BEG =
INT2NUM(KEY_BEG)
- KEY_CANCEL =
INT2NUM(KEY_CANCEL)
- KEY_CLOSE =
INT2NUM(KEY_CLOSE)
- KEY_COMMAND =
INT2NUM(KEY_COMMAND)
- KEY_COPY =
INT2NUM(KEY_COPY)
- KEY_CREATE =
INT2NUM(KEY_CREATE)
- KEY_END =
INT2NUM(KEY_END)
- KEY_EXIT =
INT2NUM(KEY_EXIT)
- KEY_FIND =
INT2NUM(KEY_FIND)
- KEY_HELP =
INT2NUM(KEY_HELP)
- KEY_MARK =
INT2NUM(KEY_MARK)
- KEY_MESSAGE =
INT2NUM(KEY_MESSAGE)
- KEY_MOVE =
INT2NUM(KEY_MOVE)
- KEY_NEXT =
INT2NUM(KEY_NEXT)
- KEY_OPEN =
INT2NUM(KEY_OPEN)
- KEY_OPTIONS =
INT2NUM(KEY_OPTIONS)
- KEY_PREVIOUS =
INT2NUM(KEY_PREVIOUS)
- KEY_REDO =
INT2NUM(KEY_REDO)
- KEY_REFERENCE =
INT2NUM(KEY_REFERENCE)
- KEY_REFRESH =
INT2NUM(KEY_REFRESH)
- KEY_REPLACE =
INT2NUM(KEY_REPLACE)
- KEY_RESTART =
INT2NUM(KEY_RESTART)
- KEY_RESUME =
INT2NUM(KEY_RESUME)
- KEY_SAVE =
INT2NUM(KEY_SAVE)
- KEY_SBEG =
INT2NUM(KEY_SBEG)
- KEY_SCANCEL =
INT2NUM(KEY_SCANCEL)
- KEY_SCOMMAND =
INT2NUM(KEY_SCOMMAND)
- KEY_SCOPY =
INT2NUM(KEY_SCOPY)
- KEY_SCREATE =
INT2NUM(KEY_SCREATE)
- KEY_SDC =
INT2NUM(KEY_SDC)
- KEY_SDL =
INT2NUM(KEY_SDL)
- KEY_SELECT =
INT2NUM(KEY_SELECT)
- KEY_SEND =
INT2NUM(KEY_SEND)
- KEY_SEOL =
INT2NUM(KEY_SEOL)
- KEY_SEXIT =
INT2NUM(KEY_SEXIT)
- KEY_SFIND =
INT2NUM(KEY_SFIND)
- KEY_SHELP =
INT2NUM(KEY_SHELP)
- KEY_SHOME =
INT2NUM(KEY_SHOME)
- KEY_SIC =
INT2NUM(KEY_SIC)
- KEY_SLEFT =
INT2NUM(KEY_SLEFT)
- KEY_SMESSAGE =
INT2NUM(KEY_SMESSAGE)
- KEY_SMOVE =
INT2NUM(KEY_SMOVE)
- KEY_SNEXT =
INT2NUM(KEY_SNEXT)
- KEY_SOPTIONS =
INT2NUM(KEY_SOPTIONS)
- KEY_SPREVIOUS =
INT2NUM(KEY_SPREVIOUS)
- KEY_SPRINT =
INT2NUM(KEY_SPRINT)
- KEY_SREDO =
INT2NUM(KEY_SREDO)
- KEY_SREPLACE =
INT2NUM(KEY_SREPLACE)
- KEY_SRIGHT =
INT2NUM(KEY_SRIGHT)
- KEY_SRSUME =
INT2NUM(KEY_SRSUME)
- KEY_SSAVE =
INT2NUM(KEY_SSAVE)
- KEY_SSUSPEND =
INT2NUM(KEY_SSUSPEND)
- KEY_SUNDO =
INT2NUM(KEY_SUNDO)
- KEY_SUSPEND =
INT2NUM(KEY_SUSPEND)
- KEY_UNDO =
INT2NUM(KEY_UNDO)
- KEY_MOUSE =
INT2NUM(KEY_MOUSE)
- KEY_RESIZE =
INT2NUM(KEY_RESIZE)
- KEY_MAX =
INT2NUM(KEY_MAX)
- BUTTON1_RELEASED =
INT2NUM(BUTTON1_RELEASED)
- BUTTON1_PRESSED =
INT2NUM(BUTTON1_PRESSED)
- BUTTON1_CLICKED =
INT2NUM(BUTTON1_CLICKED)
- BUTTON1_DOUBLE_CLICKED =
INT2NUM(BUTTON1_DOUBLE_CLICKED)
- BUTTON1_TRIPLE_CLICKED =
INT2NUM(BUTTON1_TRIPLE_CLICKED)
- BUTTON1_RESERVED_EVENT =
INT2NUM(BUTTON1_RESERVED_EVENT)
- BUTTON2_RELEASED =
INT2NUM(BUTTON2_RELEASED)
- BUTTON2_PRESSED =
INT2NUM(BUTTON2_PRESSED)
- BUTTON2_CLICKED =
INT2NUM(BUTTON2_CLICKED)
- BUTTON2_DOUBLE_CLICKED =
INT2NUM(BUTTON2_DOUBLE_CLICKED)
- BUTTON2_TRIPLE_CLICKED =
INT2NUM(BUTTON2_TRIPLE_CLICKED)
- BUTTON2_RESERVED_EVENT =
INT2NUM(BUTTON2_RESERVED_EVENT)
- BUTTON3_RELEASED =
INT2NUM(BUTTON3_RELEASED)
- BUTTON3_PRESSED =
INT2NUM(BUTTON3_PRESSED)
- BUTTON3_CLICKED =
INT2NUM(BUTTON3_CLICKED)
- BUTTON3_DOUBLE_CLICKED =
INT2NUM(BUTTON3_DOUBLE_CLICKED)
- BUTTON3_TRIPLE_CLICKED =
INT2NUM(BUTTON3_TRIPLE_CLICKED)
- BUTTON3_RESERVED_EVENT =
INT2NUM(BUTTON3_RESERVED_EVENT)
- BUTTON4_RELEASED =
INT2NUM(BUTTON4_RELEASED)
- BUTTON4_PRESSED =
INT2NUM(BUTTON4_PRESSED)
- BUTTON4_CLICKED =
INT2NUM(BUTTON4_CLICKED)
- BUTTON4_DOUBLE_CLICKED =
INT2NUM(BUTTON4_DOUBLE_CLICKED)
- BUTTON4_TRIPLE_CLICKED =
INT2NUM(BUTTON4_TRIPLE_CLICKED)
- BUTTON4_RESERVED_EVENT =
INT2NUM(BUTTON4_RESERVED_EVENT)
- BUTTON_CTRL =
INT2NUM(BUTTON_CONTROL)
- BUTTON_SHIFT =
INT2NUM(BUTTON_SHIFT)
- BUTTON_ALT =
INT2NUM(BUTTON_ALT)
- ALL_MOUSE_EVENTS =
INT2NUM(ALL_MOUSE_EVENTS)
- REPORT_MOUSE_POSITION =
INT2NUM(REPORT_MOUSE_POSITION)
- TRACE_DISABLE =
INT2NUM(TRACE_DISABLE)
- TRACE_TIMES =
INT2NUM(TRACE_TIMES)
- TRACE_TPUTS =
INT2NUM(TRACE_TPUTS)
- TRACE_UPDATE =
INT2NUM(TRACE_UPDATE)
- TRACE_MOVE =
INT2NUM(TRACE_MOVE)
- TRACE_CHARPUT =
INT2NUM(TRACE_CHARPUT)
- TRACE_ORDINARY =
INT2NUM(TRACE_ORDINARY)
- TRACE_CALLS =
INT2NUM(TRACE_CALLS)
- TRACE_VIRTPUT =
INT2NUM(TRACE_VIRTPUT)
- TRACE_IEVENT =
INT2NUM(TRACE_IEVENT)
- TRACE_BITS =
INT2NUM(TRACE_BITS)
- TRACE_ICALLS =
INT2NUM(TRACE_ICALLS)
- TRACE_CCALLS =
INT2NUM(TRACE_CCALLS)
- TRACE_MAXIMUM =
INT2NUM(TRACE_MAXIMUM)
- GETSTR_LIMIT =
1024
- Ncurses =
for accessing Ncurses from a Module that includes Ncurses
self
Class Method Summary
(collapse)
-
+ (Object) _ENDLINE
-
+ (Object) _FULLWIN
-
+ (Object) _HASMOVED
-
+ (Object) _ISPAD
-
+ (Object) _NEWINDEX
-
+ (Object) _NOCHANGE
-
+ (Object) _SCROLLWIN
-
+ (Object) _SUBWIN
-
+ (Object) _WRAPPED
-
+ (Object) _XOPEN_CURSES
Ncurses constants with leading underscore.
-
+ (Object) erase
-
+ (Object) getbegx(win)
-
+ (Object) getbegy(win)
-
+ (Object) getcurx(win)
-
+ (Object) getcury(win)
-
+ (Object) getmaxx(win)
-
+ (Object) getmaxy(win)
-
+ (Object) getnstr(str, n)
-
+ (Object) getparx(win)
-
+ (Object) getpary(win)
-
+ (Object) getstr(str)
-
+ (Object) inchnstr(str, n)
-
+ (Object) inchstr(str)
-
+ (Object) innstr(str, n)
-
+ (Object) instr(str)
-
+ (Object) mouse_trafo(pY, pX, to_screen)
-
+ (Object) mvgetnstr(y, x, str, n)
-
+ (Object) mvgetstr(y, x, str)
-
+ (Object) mvinchnstr(y, x, str, n)
-
+ (Object) mvinchstr(y, x, str)
-
+ (Object) mvinnstr(y, x, str, n)
-
+ (Object) mvinstr(y, x, str)
-
+ (Object) mvprintw(*args)
-
+ (Object) mvscanw(y, x, format, result)
-
+ (Object) mvwgetnstr(win, y, x, str, n)
-
+ (Object) mvwgetstr(win, y, x, str)
-
+ (Object) mvwinchnstr(win, y, x, str, n)
-
+ (Object) mvwinchstr(win, y, x, str)
-
+ (Object) mvwinnstr(win, y, x, str, n)
-
+ (Object) mvwinstr(win, y, x, str)
-
+ (Object) mvwprintw(win, y, x, *args)
-
+ (Object) mvwscanw(win, y, x, format, result)
-
+ (Object) printw(*args)
-
+ (Object) scanw(format, result)
-
+ (Object) touchline(win, start, count)
-
+ (Object) touchwin(win)
-
+ (Object) wgetstr(win, str)
-
+ (Object) winchstr(win, str)
-
+ (Object) winstr(win, str)
-
+ (Object) wscanw(win, format, result)
Class Method Details
+ (Object) _ENDLINE
32
33
34
|
# File 'lib/ncurses.rb', line 32
def Ncurses._ENDLINE
Ncurses::ENDLINE
end
|
+ (Object) _FULLWIN
35
36
37
|
# File 'lib/ncurses.rb', line 35
def Ncurses._FULLWIN
Ncurses::FULLWIN
end
|
+ (Object) _HASMOVED
44
45
46
|
# File 'lib/ncurses.rb', line 44
def Ncurses._HASMOVED
Ncurses::HASMOVED
end
|
+ (Object) _ISPAD
41
42
43
|
# File 'lib/ncurses.rb', line 41
def Ncurses._ISPAD
Ncurses::ISPAD
end
|
+ (Object) _NEWINDEX
53
54
55
|
# File 'lib/ncurses.rb', line 53
def Ncurses._NEWINDEX
Ncurses::NEWINDEX
end
|
+ (Object) _NOCHANGE
50
51
52
|
# File 'lib/ncurses.rb', line 50
def Ncurses._NOCHANGE
Ncurses::NOCHANGE
end
|
38
39
40
|
# File 'lib/ncurses.rb', line 38
def Ncurses._SCROLLWIN
Ncurses::SCROLLWIN
end
|
+ (Object) _SUBWIN
29
30
31
|
# File 'lib/ncurses.rb', line 29
def Ncurses._SUBWIN
Ncurses::SUBWIN
end
|
+ (Object) _WRAPPED
47
48
49
|
# File 'lib/ncurses.rb', line 47
def Ncurses._WRAPPED
Ncurses::WRAPPED
end
|
+ (Object) _XOPEN_CURSES
Ncurses constants with leading underscore
26
27
28
|
# File 'lib/ncurses.rb', line 26
def Ncurses._XOPEN_CURSES
Ncurses::XOPEN_CURSES
end
|
+ (Object) erase
253
254
255
|
# File 'lib/ncurses.rb', line 253
def Ncurses.erase
Ncurses.werase(Ncurses.stdscr)
end
|
+ (Object) getbegx(win)
235
236
237
|
# File 'lib/ncurses.rb', line 235
def Ncurses.getbegx(win)
x = []; y = []; Ncurses.getbegyx(win, y,x); x[0]
end
|
+ (Object) getbegy(win)
238
239
240
|
# File 'lib/ncurses.rb', line 238
def Ncurses.getbegy(win)
x = []; y = []; Ncurses.getbegyx(win, y,x); y[0]
end
|
+ (Object) getcurx(win)
229
230
231
|
# File 'lib/ncurses.rb', line 229
def Ncurses.getcurx(win)
x = []; y = []; Ncurses.getyx(win, y,x); x[0]
end
|
+ (Object) getcury(win)
232
233
234
|
# File 'lib/ncurses.rb', line 232
def Ncurses.getcury(win)
x = []; y = []; Ncurses.getyx(win, y,x); y[0]
end
|
+ (Object) getmaxx(win)
241
242
243
|
# File 'lib/ncurses.rb', line 241
def Ncurses.getmaxx(win)
x = []; y = []; Ncurses.getmaxyx(win, y,x); x[0]
end
|
+ (Object) getmaxy(win)
244
245
246
|
# File 'lib/ncurses.rb', line 244
def Ncurses.getmaxy(win)
x = []; y = []; Ncurses.getmaxyx(win, y,x); y[0]
end
|
+ (Object) getnstr(str, n)
181
182
183
|
# File 'lib/ncurses.rb', line 181
def Ncurses.getnstr(str,n)
Ncurses.wgetnstr(Ncurses.stdscr, str, n)
end
|
+ (Object) getparx(win)
247
248
249
|
# File 'lib/ncurses.rb', line 247
def Ncurses.getparx(win)
x = []; y = []; Ncurses.getparyx(win, y,x); x[0]
end
|
+ (Object) getpary(win)
250
251
252
|
# File 'lib/ncurses.rb', line 250
def Ncurses.getpary(win)
x = []; y = []; Ncurses.getparyx(win, y,x); y[0]
end
|
+ (Object) getstr(str)
256
257
258
|
# File 'lib/ncurses.rb', line 256
def Ncurses.getstr(str)
Ncurses.getnstr(str, Ncurses::GETSTR_LIMIT)
end
|
+ (Object) inchnstr(str, n)
151
152
153
|
# File 'lib/ncurses.rb', line 151
def Ncurses.inchnstr(str,n)
Ncurses.winchnstr(Ncurses.stdscr, str, n)
end
|
+ (Object) inchstr(str)
154
155
156
|
# File 'lib/ncurses.rb', line 154
def Ncurses.inchstr(str)
Ncurses.winchstr(Ncurses.stdscr, str)
end
|
+ (Object) innstr(str, n)
195
196
197
|
# File 'lib/ncurses.rb', line 195
def Ncurses.innstr(str,n)
Ncurses.winnstr(Ncurses.stdscr, str, n)
end
|
+ (Object) instr(str)
198
199
200
|
# File 'lib/ncurses.rb', line 198
def Ncurses.instr(str)
Ncurses.winstr(Ncurses.stdscr, str)
end
|
+ (Object) mouse_trafo(pY, pX, to_screen)
225
226
227
|
# File 'lib/ncurses.rb', line 225
def Ncurses.mouse_trafo(pY, pX, to_screen)
Ncurses.wmouse_trafo(Ncurses.stdscr, pY, pX, to_screen)
end
|
+ (Object) mvgetnstr(y, x, str, n)
184
185
186
|
# File 'lib/ncurses.rb', line 184
def Ncurses.mvgetnstr(y,x, str, n)
Ncurses.mvwgetnstr(Ncurses.stdscr, y,x, str, n)
end
|
+ (Object) mvgetstr(y, x, str)
259
260
261
|
# File 'lib/ncurses.rb', line 259
def Ncurses.mvgetstr(y,x, str)
Ncurses.mvgetnstr(y,x, str, Ncurses::GETSTR_LIMIT)
end
|
+ (Object) mvinchnstr(y, x, str, n)
157
158
159
|
# File 'lib/ncurses.rb', line 157
def Ncurses.mvinchnstr(y,x, str, n)
Ncurses.mvwinchnstr(Ncurses.stdscr, y,x, str, n)
end
|
+ (Object) mvinchstr(y, x, str)
160
161
162
|
# File 'lib/ncurses.rb', line 160
def Ncurses.mvinchstr(y,x, str)
Ncurses.mvwinchstr(Ncurses.stdscr, y,x, str)
end
|
+ (Object) mvinnstr(y, x, str, n)
201
202
203
|
# File 'lib/ncurses.rb', line 201
def Ncurses.mvinnstr(y,x, str, n)
Ncurses.mvwinnstr(Ncurses.stdscr, y,x, str, n)
end
|
+ (Object) mvinstr(y, x, str)
204
205
206
|
# File 'lib/ncurses.rb', line 204
def Ncurses.mvinstr(y,x, str)
Ncurses.mvwinstr(Ncurses.stdscr, y,x, str)
end
|
+ (Object) mvprintw(*args)
292
293
294
|
# File 'lib/ncurses.rb', line 292
def Ncurses.mvprintw(*args)
Ncurses.mvwprintw(Ncurses.stdscr, *args)
end
|
+ (Object) mvscanw(y, x, format, result)
272
273
274
|
# File 'lib/ncurses.rb', line 272
def Ncurses.mvscanw(y,x, format, result)
Ncurses.mvwscanw(Ncurses.stdscr, y,x, format, result)
end
|
+ (Object) mvwgetnstr(win, y, x, str, n)
187
188
189
190
191
192
193
|
# File 'lib/ncurses.rb', line 187
def Ncurses.mvwgetnstr(win, y,x, str, n)
if (Ncurses.wmove(win,y,x) == Ncurses::ERR)
Ncurses::ERR
else
Ncurses.wgetnstr(win,str,n)
end
end
|
+ (Object) mvwgetstr(win, y, x, str)
262
263
264
|
# File 'lib/ncurses.rb', line 262
def Ncurses.mvwgetstr(win, y,x, str)
Ncurses.mvwgetnstr(win, y,x, str, Ncurses::GETSTR_LIMIT)
end
|
+ (Object) mvwinchnstr(win, y, x, str, n)
163
164
165
166
167
168
169
|
# File 'lib/ncurses.rb', line 163
def Ncurses.mvwinchnstr(win, y,x, str, n)
if (Ncurses.wmove(win,y,x) == Ncurses::ERR)
Ncurses::ERR
else
Ncurses.winchnstr(win,str,n)
end
end
|
+ (Object) mvwinchstr(win, y, x, str)
170
171
172
173
174
|
# File 'lib/ncurses.rb', line 170
def Ncurses.mvwinchstr(win, y,x, str)
maxy = []; maxx = []; getmaxyx(win, maxy,maxx)
return Ncurses::ERR if (maxx[0] == Ncurses::ERR)
Ncurses.mvwinchnstr(win, y,x, str, maxx[0]+1)
end
|
+ (Object) mvwinnstr(win, y, x, str, n)
207
208
209
210
211
212
213
|
# File 'lib/ncurses.rb', line 207
def Ncurses.mvwinnstr(win, y,x, str, n)
if (Ncurses.wmove(win,y,x) == Ncurses::ERR)
Ncurses::ERR
else
Ncurses.winnstr(win,str,n)
end
end
|
+ (Object) mvwinstr(win, y, x, str)
214
215
216
217
218
|
# File 'lib/ncurses.rb', line 214
def Ncurses.mvwinstr(win, y,x, str)
maxy = []; maxx = []; getmaxyx(win, maxy,maxx)
return Ncurses::ERR if (maxx[0] == Ncurses::ERR)
Ncurses.mvwinnstr(win, y,x, str, maxx[0]+1)
end
|
+ (Object) mvwprintw(win, y, x, *args)
295
296
297
298
299
300
301
|
# File 'lib/ncurses.rb', line 295
def Ncurses.mvwprintw(win, y,x, *args)
if (Ncurses.wmove(win,y,x) == Ncurses::ERR)
Ncurses::ERR
else
wprintw(win, *args)
end
end
|
+ (Object) mvwscanw(win, y, x, format, result)
275
276
277
278
279
280
281
|
# File 'lib/ncurses.rb', line 275
def Ncurses.mvwscanw(win, y,x, format, result)
if (Ncurses.wmove(win, y,x) == Ncurses::ERR)
Ncurses::ERR
else
Ncurses.wscanw(win, format, result)
end
end
|
+ (Object) printw(*args)
302
303
304
|
# File 'lib/ncurses.rb', line 302
def Ncurses.printw(*args)
Ncurses.wprintw(Ncurses.stdscr, *args)
end
|
+ (Object) scanw(format, result)
269
270
271
|
# File 'lib/ncurses.rb', line 269
def Ncurses.scanw(format, result)
Ncurses.wscanw(Ncurses.stdscr, format, result)
end
|
+ (Object) touchline(win, start, count)
305
306
307
|
# File 'lib/ncurses.rb', line 305
def Ncurses.touchline(win, start, count)
Ncurses.wtouchln(win, start, count, 1)
end
|
+ (Object) touchwin(win)
308
309
310
|
# File 'lib/ncurses.rb', line 308
def Ncurses.touchwin(win)
wtouchln(win, 0, getmaxy(win), 1)
end
|
+ (Object) wgetstr(win, str)
265
266
267
|
# File 'lib/ncurses.rb', line 265
def Ncurses.wgetstr(win, str)
Ncurses.wgetnstr(win, str, Ncurses::GETSTR_LIMIT)
end
|
+ (Object) winchstr(win, str)
175
176
177
178
179
|
# File 'lib/ncurses.rb', line 175
def Ncurses.winchstr(win, str)
maxy = []; maxx = []; getmaxyx(win, maxy,maxx)
return Ncurses::ERR if (maxx[0] == Ncurses::ERR)
Ncurses.winchnstr(win, str, maxx[0]+1)
end
|
+ (Object) winstr(win, str)
219
220
221
222
223
|
# File 'lib/ncurses.rb', line 219
def Ncurses.winstr(win, str)
maxy = []; maxx = []; getmaxyx(win, maxy,maxx)
return Ncurses::ERR if (maxx[0] == Ncurses::ERR)
Ncurses.winnstr(win, str, maxx[0]+1)
end
|
+ (Object) wscanw(win, format, result)
282
283
284
285
286
287
288
289
290
|
# File 'lib/ncurses.rb', line 282
def Ncurses.wscanw(win, format, result)
str = ""
if (Ncurses.wgetstr(win, str) == Ncurses::ERR)
Ncurses::ERR
else
require "scanf.rb" result.replace(str.scanf(format))
end
end
|