Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > cursesライブラリ > Cursesモジュール
クラスの継承リスト: Curses
Curses モジュールや Curses::Window クラスは、curses ライブラリを利用して、 端末に依存しない形式でテキストユーザインタフェースを作成できます。 curses ライブラリとは、 C のプログラムから端末のディスプレイ画面を制御するためのライブラリのことで、 次のような実装があります。
本モジュールを使ってテキストユーザインタフェースを作成する流れは次のようになります。
例: 画面中央に「Hello World!」と表示し、何か入力があると終了する。
require "curses" Curses.init_screen begin s = "Hello World!" Curses.setpos(Curses.lines / 2, Curses.cols / 2 - (s.length / 2)) Curses.addstr(s) Curses.refresh Curses.getch ensure Curses.close_screen end
なお、curses や ncurses をインストールしていない環境では、 本モジュールは利用できません。 利用できない場合、require の時点で以下のような例外が発生します。
foo:1:in `require': no such file to load -- bar (LoadError)
from foo:1:in `<main>'
いくつかの操作において、サポートしていない環境では、 例外 NotImplementedError が発生します。
セーフレベル ($SAFE) が 4 の場合、ほとんどの操作で例外 SecurityError を発生します。
ESCDELAY -> IntegerESC の入力を破棄する時間(ミリ秒単位)を取得します。
ESCDELAY=(val)ESC の入力を破棄する時間(ミリ秒単位)を val に設定します。 設定した値を返します。
TABSIZE -> Integerタブ幅を取得します。
TABSIZE=(val)タブ幅を val に設定します。設定した値を返します。
addch(ch) -> nilstdscr のカーソルの位置に ch (1 バイト) を上書きします。
[SEE_ALSO] curs_addch(3)
addstr(str) -> nilstdscr のカーソルの位置に文字列 str を挿入します。
attroff(attrs) -> Integer[TODO]
Turns on the named attributes +attrs+ without affecting any others.
[SEE_ALSO] Curses::Window.attrset
attron(attron) -> Integer[TODO]
Turns off the named attributes +attrs+ without turning any other attributes on or off.
[SEE_ALSO] Curses::Window.attrset
attrset(attrs) -> Integer[TODO]
Sets the current attributes of the given window to +attrs+.
[SEE_ALSO] Curses::Window.attrset
beep -> nil音を出します。 この機能がないところでは単に無視されます。
bkgd(ch) -> bool[TODO]
Window background manipulation routines.
Set the background property of the current and then apply the character Integer +ch+ setting to every character position in that window.
[SEE_ALSO] curs_bkgd(3)
bkgdset(ch) -> nilManipulate the background of the named window with character Integer +ch+
The background becomes a property of the character and moves with the character through any scrolling and insert/delete line/character operations.
[SEE_ALSO] curs_bkgd(3)
can_change_color? -> bool端末が色を変更できる場合は真を返します。 そうでない場合は偽を返します。
cbreak -> nilcrmode -> nilキーボード入力のバッファリングをやめ、ユーザの入力を即座に処理できるようにします。
このメソッドの中で Curses.#init_screen を呼び出します。
セーフレベル ($SAFE) が 4 の場合、例外 SecurityError を発生します。
[SEE_ALSO] Curses.#nocbreak、Curses.#nocrmode
clear -> nil画面全体を表すウィンドウ stdscr の文字を消去し、画面をクリアします。 画面のクリアを反映させるために、 本メソッドのあとに Curses.#refresh を呼び出す必要はありません。
詳しくは、 man ページの curs_clear(3X) の clear 関数を参照ください。
このメソッドの中で Curses.#init_screen を呼び出します。
セーフレベル ($SAFE) が 4 の場合、例外 SecurityError を発生します。
close_screen -> nilcurses の終了処理を行います。 端末の状態を復帰させ、カーソルを左端に移動させます。
詳しくは、 man ページの curs_initscr(3X) の endwin 関数を参照ください。
[SEE_ALSO] Curses.#init_screen、Curses.#stdscr, curs_initscr(3X)
closed? -> boolcurses が終了しているかどうかを返します。
詳しくは、 man ページの curs_initscr(3X) の isendwin 関数を参照ください。
サポートしていない環境では、例外 NotImplementedError が発生します。
[SEE_ALSO] Curses.#close_screen
clrtoeol -> nil現在のカーソル位置からウィンドウの最後までをクリアします。
color_content(color) -> Array与えられた色の RGB 値を三要素の配列として返します。
color_pair(attrs) -> Integer[TODO]
Sets the color pair attributes to +attrs+.
以下のコードと同じです。
Curses.attrset(COLOR_PAIR(+attrs+))
color_pairs -> Integer[TODO]
Returns the COLOR_PAIRS available, if the curses library supports it.
colors -> Integer[TODO] ???
色の数を返します。
cols -> Integer画面に表示可能な桁数(バイト)を返します。
ただし実際にはもう 1 バイト少なくしか表示できないライブラリが あるようです。
curs_set(visibility) -> Integer | nil[TODO]
Sets Cursor Visibility.
def_prog_mode -> bool[TODO]
Save the current terminal modes as the "program" state for use by the Curses.reset_prog_mode
This is done automatically by Curses.init_screen
delch -> nilカーソルの下の文字を削除します。
deleteln -> nilstdscr のカーソルがある行を削除し、後の行を上に詰めます。
doupdate -> nil画面全体を表すウィンドウ stdscr の表示を更新します。 Curses.#refresh 以上に能率良く更新処理を行います。
詳しくは、 man ページの curs_refresh(3X) の doupdate 関数を参照ください。
利用している curses のライブラリが doupdate 関数を提供していない場合、 doupdate 関数の代わりに、refresh 関数を呼び出します。
このメソッドの中で Curses.#init_screen を呼び出します。
セーフレベル ($SAFE) が 4 の場合、例外 SecurityError を発生します。
echo -> nilユーザの入力内容を画面に表示するようにします。 つまり、入力のエコーを有効にします。
詳しくは、 man ページの curs_inopts(3X) の echo 関数を参照ください。
このメソッドの中で Curses.#init_screen を呼び出します。
セーフレベル ($SAFE) が 4 の場合、例外 SecurityError を発生します。
flash -> nil画面を一瞬点滅させます。 この機能がないところでは単に無視されます。
getch -> Integer標準入力から 1 バイト読み込みます。 戻り値は ASCII コードを表す整数です。
[SEE_ALSO] Curses::Key
getmouse -> Integer | nil[TODO]
Returns coordinates of the mouse.
This will read and pop the mouse event data off the queue
[SEE_ALSO] Curses::ALL_MOUSE_EVENTS, Curses::REPORT_MOUSE_POSITION
getstr -> String標準入力から一行読み込みます。 戻り値は文字列です。
このメソッドは getnstr() が実装されていない プラットホームではバッファオーバーフローをおこす恐れが あります。
[SEE_ALSO] Curses::Window#getstr
has_colors? -> bool端末がカラー表示に対応している場合は真を返します。 そうでない場合は偽を返します。
inch -> Integerstdscr のカーソル位置から 1 バイト読みとって返します。
init_color(color, r, g, b) -> bool[TODO]
Changes the definition of a color. It takes four arguments:
The value of the first argument must be between 0 and COLORS. (See the section Colors for the default color index.) Each of the last three arguments must be a value between 0 and 1000. When Curses.init_color is used, all occurrences of that color on the screen immediately change to the new definition.
init_pair(pair, f, b) -> bool[TODO]
Changes the definition of a color-pair.
It takes three arguments: the number of the color-pair to be changed +pair+, the foreground color number +f+, and the background color number +b+.
If the color-pair was previously initialized, the screen is refreshed and all occurrences of that color-pair are changed to the new definition.
init_screen -> Curses::Windowstdscr -> Curses::Window端末の種類や curses に関するデータを初期化し、画面をクリアします。 stdscr と呼ばれる画面全体を表すウィンドウを返します。
ncurses を利用している場合、 このメソッドに失敗すると標準エラー出力にエラーメッセージを出力し、終了します。 そうでない場合、このメソッドに失敗すると例外 RuntimeError を発生します。
詳しくは、 man ページの curs_initscr(3X) の initscr 関数と、 curs_clear(3X) の clear 関数を参照ください。
Curses のいくつかのメソッドは、内部でこのメソッドを呼び出します。 これにより、このメソッドを呼び出していない場合でも、 いくつかの処理をできるようになっています。
セーフレベル ($SAFE) が 4 の場合、例外 SecurityError を発生します。
[SEE_ALSO] Curses.#close_screen
insch(ch) -> nilstdscr のカーソルの位置に ch (1 バイト) を挿入します。
insertln -> nil現在のカーソル位置に一行挿入します。
keyname(c) -> String | nil[TODO]
キー c に対応する文字列を返します。
lines -> Integer画面に表示可能な行数を返します。
mouseinterval(interval) -> bool[TODO]
The Curses.mouseinterval function sets the maximum time (in thousands of a second) that can elapse between press and release events for them to be recognized as a click.
Use Curses.mouseinterval(0) to disable click resolution. This function returns the previous interval value.
Use Curses.mouseinterval(-1) to obtain the interval without altering it.
The default is one sixth of a second.
mousemask(mask) -> Integer与えられた mask から報告可能なイベントを取り出して返します。
nl -> nil[TODO]
cooked モードのとき、return キーの入力に対して LF (Ctrl-j) を返すようにします。
詳しくは、 man ページの curs_outopts(3X) の nl 関数を参照ください。
Enable the underlying display device to translate
the return key into newline on input, and whether it
translates newline into return and line-feed on output
(in either case, the call Curses.addch('\n') does the
equivalent of return and line feed on the virtual screen).
Initially, these translations do occur. If you disable
them using Curses.nonl, curses will be able to make better use
of the line-feed capability, resulting in faster cursor
motion. Also, curses will then be able to detect the return key.
nocbreak -> nilnocrmode -> nil通常の端末のように、キーボード入力のバッファリングを有効にします。 ユーザの入力はエンターキーなどを押すまで処理できません。 この状態のことを「cooked」モードといいます。
このメソッドの中で Curses.#init_screen を呼び出します。
セーフレベル ($SAFE) が 4 の場合、例外 SecurityError を発生します。
[SEE_ALSO] Curses.#cbreak、Curses.#crmode
noechoユーザの入力内容を画面に表示しないようにします。 つまり、入力のエコーを止めます。
詳しくは、 man ページの curs_inopts(3X) の noecho 関数を参照ください。
このメソッドの中で Curses.#init_screen を呼び出します。
セーフレベル ($SAFE) が 4 の場合、例外 SecurityError を発生します。
nonl -> nil[TODO]
cooked モードのとき、return キーの入力に対して CR (Ctrl-m) を返すようにします。
詳しくは、 man ページの curs_outopts(3X) の nonl 関数を参照ください。
Disable the underlying display device to translate the return key into newline on input
[SEE_ALSO] Curses.#nl
noraw -> nilraw モードを抜け、通常の状態にします。 つまり、キーボード入力のバッファリングを行い、 割り込み(Ctrl-C)、サスペンド(Ctrl-Z) などの特殊キーの処理を行うようにします。
[SEE_ALSO] Curses.#raw
pair_content(pair) -> Array[TODO]
与えられた pair に含まれる文字色と背景色を要素とする二要素の配列を返します。
pair_number(attrs) -> Integer[TODO]
Returns the Fixnum color pair number of attributes +attrs+.
raw -> nilCurses.#cbreak と同様に、キーボード入力のバッファリングをやめ、 ユーザの入力を即座に処理できるようにします。なおかつ、 割り込み(Ctrl-C)、サスペンド(Ctrl-Z) などの特殊キーの処理をやめます。 この状態のことを「raw」モードといいます。
[SEE_ALSO] Curses.#cbreak、Curses.#noraw
refresh -> nil画面全体を表すウィンドウ stdscr の表示を更新します。
詳しくは、 man ページの curs_refresh(3X) の refresh 関数を参照ください。
このメソッドの中で Curses.#init_screen を呼び出します。
セーフレベル ($SAFE) が 4 の場合、例外 SecurityError を発生します。
reset_prog_mode -> bool[TODO]
Reset the current terminal modes to the saved state by the Curses.def_prog_mode
This is done automatically by Curses.close_screen
resizeterm(lines, cols) -> bool | nilresize(lines, cols) -> bool | nil現在の端末サイズを変更します。
scrl(num) -> bool[TODO]
Scrolls the current window Fixnum +num+ lines. The current cursor position is not changed.
For positive +num+, it scrolls up.
For negative +num+, it scrolls down.
setpos(y, x) -> nilstdscr のカーソルを座標 (x,y) に移動します。 座標はともに 0 が始点です。
文字がない場所に setpos した場合の挙動は OS に依存します。
setscrreg(top, bottom) -> bool[TODO]
Set a software scrolling region in a window. +top+ and +bottom+ are lines numbers of the margin.
If this option and Curses.scrollok are enabled, an attempt to move off the bottom margin line causes all lines in the scrolling region to scroll one line in the direction of the first line. Only the text of the window is scrolled.
standend -> nil強調する文字の書き込みを終えます。
以下のコードと同じです。
Curses.attron(A_NORMAL)
[SEE_ALSO] Curses::Window.attrset
standout -> nil以降書き込む文字を強調します。
「強調」は反転であることが多いようですが、 そう決められているわけではありません。
以下のコードと同じです。
Curses:Window.attron(A_STANDOUT)
[SEE_ALSO] Curses::Window.attrset
start_color -> bool[TODO]
Initializes the color attributes, for terminals that support it.
This must be called, in order to use color attributes. It is good practice to call it just after Curses.init_screen
timeout=(delay)[TODO]
Sets block and non-blocking reads for the window. - If delay is negative, blocking read is used (i.e., waits indefinitely for input). - If delay is zero, then non-blocking read is used (i.e., read returns ERR if no input is waiting). - If delay is positive, then read blocks for delay milliseconds, and returns ERR if there is still no input.
ungetch(ch) -> nil文字 ch (ASCII コードを示す整数) をストリームに戻します。
全てのウインドウで一つだけキューがあります。
ungetmouse(mevent) -> bool[TODO]
It pushes a KEY_MOUSE event onto the input queue, and associates with that event the given state data and screen-relative character-cell coordinates.
The Curses.ungetmouse function behaves analogously to Curses.ungetch.
use_default_colors -> nil前景色と背景色を端末のデフォルト値 (-1) に設定します。
[SEE_ALSO] default_colors(3X)
ALL_MOUSE_EVENTS -> Integer全てのボタンの状態の変化を取得するために使用するマスク用の定数です。
[SEE_ALSO] Curses.getmouse
A_ALTCHARSET -> Integer代替文字セットを表す属性のマスク用定数です。
[SEE_ALSO] Curses.attrset
A_ATTRIBUTES -> Integer属性を展開するために使用する文字列の属性マスク用定数です。
[SEE_ALSO] Curses.inch, Curses::Window.inch
A_BLINK -> Integer文字列の点滅を表す属性のマスク用の定数です。
[SEE_ALSO] Curses.attrset
A_BOLD -> Integer文字列を明るくするか太字にするための属性マスク用の定数です。
[SEE_ALSO] Curses.attrset
A_CHARTEXT -> Integer文字を抽出するための属性マスク用定数です。
[SEE_ALSO] Curses.attrset
A_COLOR -> Integer色ペアのフィールド情報を抽出するための文字列の属性マスク用の定数です。
[SEE_ALSO] Curses.inch, Curses::Window.inch
A_DIM -> Integer文字列を半分明るくするための属性マスク用の定数です。
[SEE_ALSO] Curses.attrset
A_HORIZONTAL -> Integer水平方向のハイライトを表す属性マスク用の定数です。
[SEE_ALSO] curs_attr(3x)
A_INVIS -> Integerインビジブルかブランクを表す属性マスク用の定数です。
[SEE_ALSO] Curses.attrset
A_LEFT -> Integer???を表す属性マスク用の定数です。
[SEE_ALSO] curs_attr(3x)
A_LOW -> Integer[TODO] ???
???を表す属性マスク用の定数です。
[SEE_ALSO] curs_attr(3x)
A_NORMAL -> Integer[TODO]
???を表す属性マスク用の定数です。
[SEE_ALSO] Curses.attrset
A_PROTECT -> Integer[TODO]
プロテクトモードを表す属性マスク用の定数です。
[SEE_ALSO] Curses.attrset
A_REVERSE -> Integer文字列を反転を表す属性マスク用の定数です。
[SEE_ALSO] Curses.attrset
A_RIGHT -> Integer[TODO]
???を表す属性マスク用の定数です。
[SEE_ALSO] curs_attr(3x)
A_STANDOUT -> Integer[TODO]
ターミナルで使用できる最も強調するモードを表す属性マスク用の定数です。
[SEE_ALSO] Curses.attrset
A_TOP -> Integer[TODO]
top highlight
[SEE_ALSO] curs_attr(3x)
A_UNDERLINE -> Integer文字列に下線を引くことを表す属性マスク用の定数です。
[SEE_ALSO] Curses.attrset
A_VERTICAL -> Integer[TODO]
vertical highlight
[SEE_ALSO] curs_attr(3x)
BUTTON1_CLICKED -> Integerマウスボタン 1 をクリックしたことを表すマウスイベント用の定数です。
[SEE_ALSO] Curses.getmouse
BUTTON1_DOUBLE_CLICKED -> Integerマウスボタン 1 をダブルクリックしたことを表すマウスイベント用の定数です。
[SEE_ALSO] Curses.getmouse
BUTTON1_PRESSED -> Integerマウスボタン 1 を押したことを表すマウスイベント用の定数です。
[SEE_ALSO] Curses.getmouse
BUTTON1_RELEASED -> Integerマウスボタン 1 を離したことを表すマウスイベント用の定数です。
[SEE_ALSO] Curses.getmouse
BUTTON1_TRIPLE_CLICKED -> Integerマウスボタン 1 をトリプルクリックしたことを表すマウスイベント用の定数です。
[SEE_ALSO] Curses.getmouse
BUTTON2_CLICKED -> Integerマウスボタン 2 をクリックしたことを表すマウスイベント用の定数です。
[SEE_ALSO] Curses.getmouse
BUTTON2_DOUBLE_CLICKED -> Integerマウスボタン 2 をダブルクリックしたことを表すマウスイベント用の定数です。
[SEE_ALSO] Curses.getmouse
BUTTON2_PRESSED -> Integerマウスボタン 2 を押したことを表すマウスイベント用の定数です。
[SEE_ALSO] Curses.getmouse
BUTTON2_RELEASED -> Integerマウスボタン 2 を離したことを表すマウスイベント用の定数です。
[SEE_ALSO] Curses.getmouse
BUTTON2_TRIPLE_CLICKED -> Integerマウスボタン 2 をトリプルクリックしたことを表すマウスイベント用の定数です。
[SEE_ALSO] Curses.getmouse
BUTTON3_CLICKED -> Integerマウスボタン 3 をクリックしたことを表すマウスイベント用の定数です。
[SEE_ALSO] Curses.getmouse
BUTTON3_DOUBLE_CLICKED -> Integerマウスボタン 3 をダブルクリックしたことを表すマウスイベント用の定数です。
[SEE_ALSO] Curses.getmouse
BUTTON3_PRESSED -> Integerマウスボタン 3 を押したことを表すマウスイベント用の定数です。
[SEE_ALSO] Curses.getmouse
BUTTON3_RELEASED -> Integerマウスボタン 3 を離したことを表すマウスイベント用の定数です。
[SEE_ALSO] Curses.getmouse
BUTTON3_TRIPLE_CLICKED -> Integerマウスボタン 3 をトリプルクリックしたことを表すマウスイベント用の定数です。
[SEE_ALSO] Curses.getmouse
BUTTON4_CLICKED -> Integerマウスボタン 4 をクリックしたことを表すマウスイベント用の定数です。
[SEE_ALSO] Curses.getmouse
BUTTON4_DOUBLE_CLICKED -> Integerマウスボタン 4 をダブルクリックしたことを表すマウスイベント用の定数です。
[SEE_ALSO] Curses.getmouse
BUTTON4_PRESSED -> Integerマウスボタン 4 を押したことを表すマウスイベント用の定数です。
[SEE_ALSO] Curses.getmouse
BUTTON4_RELEASED -> Integerマウスボタン 4 を離したことを表すマウスイベント用の定数です。
[SEE_ALSO] Curses.getmouse
BUTTON4_TRIPLE_CLICKED -> Integerマウスボタン 3 をトリプルクリックしたことを表すマウスイベント用の定数です。
[SEE_ALSO] Curses.getmouse
BUTTON_ALT -> Integerマウス操作中に ALT キーを押下していることを表すマウスイベント用の定数です。
[SEE_ALSO] Curses.getmouse
BUTTON_CTRL -> Integerマウス操作中に CTRL キーを押下していることを表すマウスイベント用の定数です。
[SEE_ALSO] Curses.getmouse
BUTTON_SHIFT -> Integerマウス操作中に SHIFT キーを押下していることを表すマウスイベント用の定数です。
[SEE_ALSO] Curses.getmouse
COLOR_BLACK -> Integer黒を表す定数です。
COLOR_BLUE -> Integer青を表す定数です。
COLOR_CYAN -> Integerシアンを表す定数です。
COLOR_GREEN -> Integer緑を表す定数です。
COLOR_MAGENTA -> Integerマゼンタを表す定数です。
COLOR_RED -> Integer赤を表す定数です。
COLOR_WHITE -> Integer白を表す定数です。
COLOR_YELLOW -> Integer黄色を表す定数です。
KEY_A1 -> Integerキーパッドの左上を表す定数です。
KEY_A3 -> Integerキーパッドの右上を表す定数です。
KEY_B2 -> Integerキーパッドの中心を表す定数です。
KEY_BACKSPACE -> Integerバックスペースキーを表す定数です。
KEY_BEG -> Integer[TODO] ???
BEG キーを表す定数です。
KEY_BREAK -> IntegerBREAK キーを表す定数です。
KEY_BTAB -> IntegerBack TAB キーを表す定数です。
KEY_C1 -> Integerキーパッドの左下を表す定数です。
KEY_C3 -> Integerキーパッドの右下を表す定数です。
KEY_CANCEL -> IntegerCancel キーを表す定数です。
KEY_CATAB -> Integer[TODO]
Clear all tabs
KEY_CLEAR -> Integerスクリーンのクリアを表す定数です。
KEY_CLOSE -> IntegerClose キーを表す定数です。
KEY_COMMAND -> IntegerCommand キーを表す定数です。
KEY_COPY -> IntegerCopy キーを表す定数です。
KEY_CREATE -> IntegerCreate キーを表す定数です。
KEY_CTAB -> Integer[TODO]
Clear tab
KEY_CTRL_A -> IntegerCtrl + A を表す定数です。
KEY_CTRL_B -> IntegerCtrl + B を表す定数です。
KEY_CTRL_C -> IntegerCtrl + C を表す定数です。
KEY_CTRL_D -> IntegerCtrl + D を表す定数です。
KEY_CTRL_E -> IntegerCtrl + E を表す定数です。
KEY_CTRL_F -> IntegerCtrl + F を表す定数です。
KEY_CTRL_G -> IntegerCtrl + G を表す定数です。
KEY_CTRL_H -> IntegerCtrl + H を表す定数です。
KEY_CTRL_I -> IntegerCtrl + I を表す定数です。
KEY_CTRL_J -> IntegerCtrl + J を表す定数です。
KEY_CTRL_K -> IntegerCtrl + K を表す定数です。
KEY_CTRL_L -> IntegerCtrl + L を表す定数です。
KEY_CTRL_M -> IntegerCtrl + M を表す定数です。
KEY_CTRL_N -> IntegerCtrl + N を表す定数です。
KEY_CTRL_O -> IntegerCtrl + O を表す定数です。
KEY_CTRL_P -> IntegerCtrl + P を表す定数です。
KEY_CTRL_Q -> IntegerCtrl + Q を表す定数です。
KEY_CTRL_R -> IntegerCtrl + R を表す定数です。
KEY_CTRL_S -> IntegerCtrl + S を表す定数です。
KEY_CTRL_T -> IntegerCtrl + T を表す定数です。
KEY_CTRL_U -> IntegerCtrl + U を表す定数です。
KEY_CTRL_V -> IntegerCtrl + V を表す定数です。
KEY_CTRL_W -> IntegerCtrl + W を表す定数です。
KEY_CTRL_X -> IntegerCtrl + X を表す定数です。
KEY_CTRL_Y -> IntegerCtrl + Y を表す定数です。
KEY_CTRL_Z -> IntegerCtrl + Z を表す定数です。
KEY_DC -> Integer[TODO] ???
Delete キーを表す定数です。
KEY_DL -> Integer行を削除するキーを表す定数です。
KEY_DOWN -> Integer下矢印キーを表す定数です。
KEY_EIC -> Integer挿入モードに入るキーを表す定数です。
KEY_END -> IntegerEnd キーを表す定数です。
KEY_ENTER -> IntegerEnter キーを表す定数です。
KEY_EOL -> Integer行末までクリアするキーを表す定数です。
KEY_EOS -> Integerスクリーンの末尾までクリアするキーを表す定数です。
KEY_EXIT -> IntegerExit キーを表す定数です。
KEY_F0 -> IntegerF0 キーを表す定数です。
KEY_F1 -> IntegerF1 キーを表す定数です。
KEY_F10 -> IntegerF10 キーを表す定数です。
KEY_F11 -> IntegerF11 キーを表す定数です。
KEY_F12 -> IntegerF12 キーを表す定数です。
KEY_F13 -> IntegerF13 キーを表す定数です。
KEY_F14 -> IntegerF14 キーを表す定数です。
KEY_F15 -> IntegerF15 キーを表す定数です。
KEY_F16 -> IntegerF16 キーを表す定数です。
KEY_F17 -> IntegerF17 キーを表す定数です。
KEY_F18 -> IntegerF18 キーを表す定数です。
KEY_F19 -> IntegerF19 キーを表す定数です。
KEY_F2 -> IntegerF2 キーを表す定数です。
KEY_F20 -> IntegerF20 キーを表す定数です。
KEY_F21 -> IntegerF21 キーを表す定数です。
KEY_F22 -> IntegerF22 キーを表す定数です。
KEY_F23 -> IntegerF23 キーを表す定数です。
KEY_F24 -> IntegerF24 キーを表す定数です。
KEY_F25 -> IntegerF25 キーを表す定数です。
KEY_F26 -> IntegerF26 キーを表す定数です。
KEY_F27 -> IntegerF27 キーを表す定数です。
KEY_F28 -> IntegerF28 キーを表す定数です。
KEY_F29 -> IntegerF29 キーを表す定数です。
KEY_F3 -> IntegerF3 キーを表す定数です。
KEY_F30 -> IntegerF30 キーを表す定数です。
KEY_F31 -> IntegerF31 キーを表す定数です。
KEY_F32 -> IntegerF32 キーを表す定数です。
KEY_F33 -> IntegerF33 キーを表す定数です。
KEY_F34 -> IntegerF34 キーを表す定数です。
KEY_F35 -> IntegerF35 キーを表す定数です。
KEY_F36 -> IntegerF36 キーを表す定数です。
KEY_F37 -> IntegerF37 キーを表す定数です。
KEY_F38 -> IntegerF38 キーを表す定数です。
KEY_F39 -> IntegerF39 キーを表す定数です。
KEY_F4 -> IntegerF4 キーを表す定数です。
KEY_F40 -> IntegerF40 キーを表す定数です。
KEY_F41 -> IntegerF41 キーを表す定数です。
KEY_F42 -> IntegerF42 キーを表す定数です。
KEY_F43 -> IntegerF43 キーを表す定数です。
KEY_F44 -> IntegerF44 キーを表す定数です。
KEY_F45 -> IntegerF45 キーを表す定数です。
KEY_F46 -> IntegerF46 キーを表す定数です。
KEY_F47 -> IntegerF47 キーを表す定数です。
KEY_F48 -> IntegerF48 キーを表す定数です。
KEY_F49 -> IntegerF49 キーを表す定数です。
KEY_F5 -> IntegerF5 キーを表す定数です。
KEY_F50 -> IntegerF50 キーを表す定数です。
KEY_F51 -> IntegerF51 キーを表す定数です。
KEY_F52 -> IntegerF52 キーを表す定数です。
KEY_F53 -> IntegerF53 キーを表す定数です。
KEY_F54 -> IntegerF54 キーを表す定数です。
KEY_F55 -> IntegerF55 キーを表す定数です。
KEY_F56 -> IntegerF56 キーを表す定数です。
KEY_F57 -> IntegerF57 キーを表す定数です。
KEY_F58 -> IntegerF58 キーを表す定数です。
KEY_F59 -> IntegerF59 キーを表す定数です。
KEY_F6 -> IntegerF6 キーを表す定数です。
KEY_F60 -> IntegerF60 キーを表す定数です。
KEY_F61 -> IntegerF61 キーを表す定数です。
KEY_F62 -> IntegerF62 キーを表す定数です。
KEY_F63 -> IntegerF63 キーを表す定数です。
KEY_F7 -> IntegerF7 キーを表す定数です。
KEY_F8 -> IntegerF8 キーを表す定数です。
KEY_F9 -> IntegerF9 キーを表す定数です。
KEY_FIND -> IntegerFind キーを表す定数です。
KEY_HELP -> IntegerHelp キーを表す定数です。
KEY_HOME -> IntegerHome キーを表す定数です。
KEY_IC -> Integer文字を挿入するか挿入モードに入るキーを表す定数です。
KEY_IL -> Integer行を挿入するキーを表す定数です。
KEY_LEFT -> Integer左矢印キーを表す定数です。
KEY_LL -> Integer[TODO]
Home down or bottom (lower left)
KEY_MARK -> IntegerMark キーを表す定数です。
KEY_MAX -> Integercurses で利用可能なキーを表す定数の最大値です。
KEY_MESSAGE -> IntegerMessage キーを表す定数です。
KEY_MIN -> Integercurses で利用可能なキーを表す定数の最小値です。
KEY_MOUSE -> Integer[TODO]
Mouse event read
KEY_MOVE -> Integer[TODO]
Move キーを表す定数です。
KEY_NEXT -> IntegerNext object キーを表す定数です。
KEY_NPAGE -> IntegerNext Page キーを表す定数です。
KEY_OPEN -> IntegerOpen キーを表す定数です。
KEY_OPTIONS -> IntegerOpetions キーを表す定数です。
KEY_PPAGE -> IntegerPrevious Page キーを表す定数です。
KEY_PREVIOUS -> IntegerPrevious object キーを表す定数です。
KEY_PRINT -> IntegerPrint キーを表す定数です。
KEY_REDO -> IntegerRedo キーを表す定数です。
KEY_REFERENCE -> IntegerReference キーを表す定数です。
KEY_REFRESH -> IntegerRefresh キーを表す定数です。
KEY_REPLACE -> IntegerReplace キーを表す定数です。
KEY_RESET -> IntegerReset キーを表す定数です。
KEY_RESIZE -> Integerスクリーンがリサイズされたことを表す定数です。
KEY_RESTART -> IntegerRestart キーを表す定数です。
KEY_RESUME -> IntegerResume キーを表す定数です。
KEY_RIGHT -> Integer右矢印キーを表す定数です。
KEY_SAVE -> IntegerSave キーを表す定数です。
KEY_SBEG -> Integer[TODO]
Shifted beginning key
KEY_SCANCEL -> IntegerShift + Cancel キーを表す定数です。
KEY_SCOMMAND -> IntegerShift + Command キーを表す定数です。
KEY_SCOPY -> IntegerShift + Copy キーを表す定数です。
KEY_SCREATE -> IntegerShift + Create キーを表す定数です。
KEY_SDC -> Integer[TODO] ???
Shift + Delete キーを表す定数です。
KEY_SDL -> IntegerShift + 行を削除するキーを表す定数です。
KEY_SELECT -> IntegerSelect キーを表す定数です。
KEY_SEND -> IntegerShift + End キーを表す定数です。
KEY_SEOL -> IntegerShift + 行末までクリアするキーを表す定数です。
KEY_SEXIT -> IntegerShift + Exit キーを表す定数です。
KEY_SF -> Integer前に一行スクロールすることを表す定数です。
KEY_SFIND -> IntegerShift + Find キーを表す定数です。
KEY_SHELP -> IntegerShift + Help キーを表す定数です。
KEY_SHOME -> IntegerShift + Home キーを表す定数です。
KEY_SIC -> Integer[TODO] ???
Shift + ... キーを表す定数です。
KEY_SLEFT -> IntegerShift + 左矢印キーを表す定数です。
KEY_SMESSAGE -> IntegerShift + Message キーを表す定数です。
KEY_SMOVE -> IntegerShift + Move キーを表す定数です。
KEY_SNEXT -> IntegerShift + Next キーを表す定数です。
KEY_SOPTIONS -> IntegerShift + Options キーを表す定数です。
KEY_SPREVIOUS -> IntegerShift + Previous キーを表す定数です。
KEY_SPRINT -> IntegerShift + Print キーを表す定数です。
KEY_SR -> Integer後に一行スクロールすることを表す定数です。
KEY_SREDO -> IntegerShift + Redo キーを表す定数です。
KEY_SREPLACE -> IntegerShift + Replace キーを表す定数です。
KEY_SRESET -> IntegerShift + Reset キーを表す定数です。
KEY_SRIGHT -> IntegerShift + 右矢印キーを表す定数です。
KEY_SRSUME -> IntegerShift + Resume キーを表す定数です。
KEY_SSAVE -> IntegerShift + Save キーを表す定数です。
KEY_SSUSPEND -> IntegerShift + Suspend キーを表す定数です。
KEY_STAB -> IntegerShift + TAB キーを表す定数です。
KEY_SUNDO -> IntegerShift + Undo キーを表す定数です。
KEY_SUSPEND -> IntegerSuspend キーを表す定数です。
KEY_UNDO -> IntegerUndo キーを表す定数です。
KEY_UP -> Integer上矢印キーを表す定数です。
REPORT_MOUSE_POSITION -> Integerマウスの位置を取得するために使用するマスク用の定数です。
[SEE_ALSO] Curses.getmouse