本文に進む 日本−日本語
日本HPホーム 製品とサービス お客様サポート/ ダウンロード ソリューション ご購入の方法
≫ お問い合わせ
詳細検索オプション
日本HPホーム
HP-UX リファレンス: セクション 5 : その他の機能 > c

curses(5)

CURSES
HP-UX 11i Version 2: September 2004
≫ 

テクニカル ドキュメント

PDF版
フィードバック
ここから本文が始まります

 ≫ 目次

 ≫ 索引

名称

curses.h ― 画面操作および最適化の関数定義

構文

#include <curses.h>

説明

目的

<curses.h> ヘッダーは、 COLOR_PAIRSCOLORSCOLScurscrLINES、 および stdscr の定義を行います。

定数

以下の定数が定義されます。

EOF 

ファイル終了に対する関数戻り値

ERR  

障害に対する関数戻り値

FALSE 

false 論理値

OK 

正常終了に対する関数戻り値

TRUE 

true 論理値

WEOF 

<wchar.h> に定義された通りの、ファイル終了に対するワイドキャラクタ関数戻り値

データ型

typedef によって以下のデータ型が定義されます。

attr_t 

属性の論理和

bool 

論理データ型

chtype 

文字、属性、カラーペア

SCREEN 

不透明な端末表現

wchar_t 

<stddef.h> に記述された通りに定義されます。

wint_t 

<wchar.h> に記述された通りに定義されます。

cchar_t 

ワイドキャラクタの文字列を示します。

WINDOW 

不透明なウィンドウ表現

これらのデータ型については、curses_intro のデータ型で詳しく説明します。

<curses.h> を含めると、ヘッダー <stdio.h><term.h><termios.h> および <wchar.h> からのすべての記号が表示可能になります。

属性ビット

以下の記号定数は、 attr_t データ型のオブジェクトを操作するために使用されます。

WA_ALTCHARSET代替文字セット
WA_BLINK点滅表示
WA_BOLD特別な輝度表示つまりボールド
WA_DIM半輝度表示
WA_HORIZONTAL水平高輝度表示
WA_INVIS非表示
WA_LEFT左高輝度表示
WA_LOW下高輝度表示
WA_PROTECT保護表示
WA_REVERSE反転表示
WA_RIGHT右高輝度表示
WA_STANDOUT端末の最適高輝度表示モード
WA_TOP上高輝度表示
WA_UNDERLINEアンダースコア
WA_VERTICAL垂直高輝度表示

これらの属性フラグは、区別する必要があります。

以下の記号定数は、 chtype データ型のオブジェクト内の属性ビットを操作するために使用されます。

A_ALTCHARSET代替文字セット
A_BLINK点滅表示
A_BOLD特別な輝度表示つまりボールド
A_DIM半輝度表示
A_INVIS非表示
A_PROTECT保護表示
A_REVERSE反転表示
A_STANDOUT端末の最適高輝度表示モード
A_UNDERLINEアンダースコア

_XOPEN_CURSES が定義されていて、アプリケーションが _XOPEN_SOURCE_EXTENDED を 1 に設定している場合以外は、  これらの属性フラグを区別する必要はありません。

以下の記号定数は、 chtype の構成要素を抽出するために、ビットマスクとして使用することができます。

A_ATTRIBUTES属性を抽出するためのビットマスク
A_CHARTEXT文字を抽出するためのビットマスク
A_COLORカラーペア情報を抽出するためのビットマスク

以下の記号定数は、 chtype の構成要素を抽出するために、ビットマスクとして使用することができます。

A_ATTRIBUTES属性を抽出するためのビットマスク
A_CHARTEXT文字を抽出するためのビットマスク
A_COLORカラーペア情報を抽出するためのビットマスク


線描用定数

<curses.h> ヘッダーは、線描で使用するために以下の表の左側の 2 つの列に示す記号定数を定義します。 ACS_ で始まる記号定数は、 char 定数です。 WACS_ で始まる記号定数は、 cchar_t へのポインタを持つワイドキャラクタインタフェースで使用するための cchar_t 定数です。

以下の POSIX ロケールの POSIX ロケールのデフォルト という列に示す文字は、ターミナルデータベースが、 terminfo(4) の「ライングラフィックス」の項で説明するように、 acsc 機能を使用して値を指定していない場合に使用されます。

  POSIX ロケール 
char 定数cchar_t 定数のデフォルト浮き彫りの説明
ACS_ULCORNERWACS_ULCORNER+左上隅
ACS_LLCORNERWACS_LLCORNER+左下隅
ACS_URCORNERWACS_URCORNER+右上隅
ACS_LRCORNERWACS_LRCORNER+右下隅
ACS_RTEEWACS_RTEE+右ティー
ACS_LTEEWACS_LTEE+左ティー
ACS_BTEEWACS_BTEE+下ティー
ACS_TTEEWACS_TTEE+上ティー
ACS_HLINEWACS_HLINE-横線
ACS_VLINEWACS_VLINE|縦線
ACS_PLUSWACS_PLUS+プラス
ACS_S1WACS_S1-スキャンライン 1
ACS_S9WACS_S9_スキャンライン 9
ACS_DIAMONDWACS_DIAMOND+ダイヤモンド
ACS_CKBOARDWACS_CKBOARD:E
ェッカーボード (縦縞)   
ACS_DEGREEWACS_DEGREE'度記号
ACS_PLMINUSWACS_PLMINUS#プラス/マイナス
ACS_BULLETWACS_BULLETo黒丸
ACS_LARROWWACS_LARROW<左向き矢印
ACS_RARROWWACS_RARROW>右向き矢印
ACS_DARROWWACS_DARROWv下向き矢印
ACS_UARROWWACS_UARROW^上向き矢印
ACS_BOARD WACS_BOARD #矩 a
のボード   
ACS_LANTERNWACS_LANTERN#ランタン記号
ACS_BLOCK WACS_BLOCK#正方 a
ボックス   

カラー関連マクロ

以下のカラー関連マクロが定義されます。

COLOR_BLACK 
COLOR_BLUE 
COLOR_GREEN 
COLOR_CYAN 
COLOR_RED 
COLOR_MAGENTA 
COLOR_YELLOW 
COLOR_WHITE 

座標関連マクロ

以下の座標関連マクロが定義されます。

void   getbegyx(WINDOW *win, int y, int x); 
void   getmaxyx(WINDOW *win, int y, int x); 
void   getparyx(WINDOW *win, int y, int x); 
void   getyx(WINDOW *win, int y, int x); 

キーコード

ファンクションキー値を表す以下の記号定数が定義されます。

キーコード説明
KEY_CODE_YESwchar_t 変数にキーコードが入っていることを示す
KEY_BREAKブレークキー
KEY_DOWN下向き矢印キー
KEY_UP上向き矢印キー
KEY_LEFT左向き矢印キー
KEY_RIGHT右向き矢印キー
KEY_HOMEホームキー
KEY_BACKSPACEバックスペース
KEY_F0ファンクションキー ;64 個のキー用スペースが予約される
KEY_F(n)n は、0≤n≤63
KEY_DL行を削除
KEY_IL行を挿入
KEY_DC文字を削除
KEY_IC文字を挿入または挿入モードに入る
KEY_EIC文字挿入モードを終了
KEY_CLEAR画面をクリア
KEY_EOS画面の最後までクリア
KEY_EOL行の最後までクリア
KEY_SF順方向に 1 行スクロール
KEY_SR逆方向に 1 行スクロール
KEY_NPAGE次のページ
KEY_PPAGE前のページ
KEY_STABタブを設定
KEY_CTABタブをクリア
KEY_CATABすべてのタブをクリア
KEY_ENTER入力または送信
KEY_SRESETソフト (部分的な) リセット
KEY_RESETリセットまたはハードリセット
KEY_PRINTプリントまたはコピー
KEY_LLホームダウンまたはボトム
KEY_A1キーパッドの左上
KEY_A3キーパッドの右上
KEY_B2キーパッドの中央
KEY_C1キーパッドの左下
KEY_C3キーパッドの右下

仮想キーパッドは、次のように配置された 3 × 3 のキーパッドです。

A1UPA3
LEFTB2RIGHT
C1DOWNC3

A1 などのそれぞれの記号は、KEY_A1 などの上記の表のキーコードに対する記号定数に対応しています。 ファンクションキー値を表す以下の記号定数も定義されます。

キーコード説明
KEY_BTABバックタブキー
KEY_BEG開始キー
KEY_CANCEL取り消しキー
KEY_CLOSEクローズキー
KEY_COMMANDCmd (コマンド) キー
KEY_COPYコピーキー
KEY_CREATE作成キー
KEY_ENDエンドキー
KEY_EXIT終了キー
KEY_FIND検索キー
KEY_HELPヘルプキー
KEY_MARKマークキー
KEY_MESSAGEメッセージキー
KEY_MOVE移動キー
KEY_NEXT次のオブジェクトキー
KEY_OPENオープンキー
KEY_OPTIONSオプションキー
KEY_PREVIOUS前のオブジェクトキー
KEY_REDO再実行キー
KEY_REFERENCE参照キー
KEY_REFRESHリフレッシュキー
KEY_REPLACE置き換えキー
KEY_RESTART再起動キー
KEY_RESUME再開キー
KEY_SAVE保存キー
KEY_SBEGシフトされた開始キー
KEY_SCANCELシフトされた取り消しキー
KEY_SCOMMANDシフトされたコマンドキー
KEY_SCOPYシフトされたコピーキー
KEY_SCREATEシフトされた作成キー
KEY_SDCシフトされた文字削除キー
KEY_SDLシフトされた行削除キー
KEY_SELECT選択キー
KEY_SENDシフトされた終了キー
KEY_SEOLシフトされたクリアキー
KEY_SEXITシフトされた終了キー
KEY_SFINDシフトされた検索キー
KEY_SHELPシフトされたヘルプキー
KEY_SHOMEシフトされたホームキー
KEY_SICシフトされた入力キー
KEY_SLEFTシフトされた左矢印キー
KEY_SMESSAGEシフトされたメッセージキー
KEY_SMOVEシフトされた移動キー
KEY_SNEXTシフトされた次のオブジェクトキー
KEY_SOPTIONSシフトされたオプションキー
KEY_SPREVIOUSシフトされた前のオブジェクトキー
KEY_SPRINTシフトされた印刷キー
KEY_SREDOシフトされた再実行キー
KEY_SREPLACEシフトされた置き換えキー
KEY_SRIGHTシフトされた右矢印キー
KEY_SRSUMEシフトされた再開キー
KEY_SSAVEシフトされた保存キー
KEY_SSUSPENDシフトされた保留キー
KEY_SUNDOシフトされた取り消しキー
KEY_SUSPEND保留キー
KEY_UNDO取り消しキー

関数のプロトタイプ

以下のものは関数として宣言されますが、マクロとして定義される可能性もあります。

int    addch(const chtype ch);
int    addchstr(const chtype *chstr);
int    addchnstr(const chtype *chstr, int n);
int    addnstr(const char *str, int n);
int    addstr(const char *str);
int    addnwstr(const wchar_t *wstr, int n);
int    addwstr(const wchar_t *wstr);
int    add_wch(const cchar_t *wch);
int    add_wchnstr(const cchar_t *wchstr, int n);
int    add_wchstr(const cchar_t *wchstr);
int    attroff(int attrs);
int    attron(int attrs);
int    attrset(int attrs);
int    attr_get(attr_t *attrs, short *color_pair, void *opts);
int    attr_off(attr_t attrs, void *opts);
int    attr_on(attr_t attrs, void *opts);
int    attr_set(attr_t attrs, short color_pair, void *opts);
int    baudrate(void);
int    beep(void);
int    bkgd(chtype ch);
void   bkgdset(chtype ch);
void   bkgrndset(const cchar_t *wch);
int    bkgrnd(const cchar_t *wch);
int    border(chtype ls, chtype rs, chtype ts, chtype bs, chtype tl,
              chtype tr, chtype bl, chtype br);
int    border_set(const cchar_t *ls, const cchar_t *rs,
                  const cchar_t *ts, const cchar_t *bs,
                  const cchar_t *tl, const cchar_t *tr,
                  const cchar_t *bl, const cchar_t *br);
int    box(WINDOW *win, chtype verch, chtype horch);
int    box_set(WINDOW *win, const cchar_t *verch,
               const cchar_t *horch);
bool   can_change_color(void);
int    cbreak(void);
int    chgat(int n, attr_t attr, short color, const void *opts);
int    clear(void);
int    clearok(WINDOW *win, bool bf);
int    clrtobot(void);
int    clrtoeol(void);
int    color_content(short color, short *red, short *green,
                     short *blue);
int    COLOR_PAIR(int n);
int    copywin(const WINDOW *srcwin, WINDOW *dstwin, int sminrow,
               int smincol, int dminrow, int dmincol, int dmaxrow,
               int dmaxcol, int overlay);
int    curs_set(int visibility);
int    def_prog_mode(void);
int    def_shell_mode(void);
int    delay_output(int ms);
int    delch(void);
void   delscreen(SCREEN *sp);
int    delwin(WINDOW *win);
int    deleteln(void);
WINDOW *derwin(WINDOW *orig, int nlines, int ncols, int begin_y,
               int begin_x);
int    doupdate(void);
WINDOW *dupwin(WINDOW *win);
int    echo(void);
int    echochar(const chtype ch);
int    echo_wchar(const cchar_t *wch);
int    endwin(void);
int    erase(void);
char   erasechar(void);
int    erasewchar(wchar_t *ch);
void   filter(void);
int    flash(void);
int    flushinp(void);
chtype getbkgd(WINDOW *win);
int    getbkgrnd(cchar_t *wch);
int    getcchar(const cchar_t *wcval, wchar_t *wch, attr_t *attrs,
                short *color_pair, void *opts);
int    getch(void);
int    getnstr(char *str, int n);
int    getn_wstr(wint_t *wstr, int n);
int    getstr(char *str);
int    get_wch(wint_t *ch);
WINDOW *getwin(FILE *filep);
int    get_wstr(wint_t *wstr);
int    halfdelay(int tenths);
bool   has_colors(void);
bool   has_ic(void);
bool   has_il(void);
int    hline(chtype ch, int n);
int    hline_set(const cchar_t *wch, int n);
void   idcok(WINDOW *win, bool bf);
int    idlok(WINDOW *win, bool bf);
void   immedok(WINDOW *win, bool bf);
chtype inch(void);
int    inchnstr(chtype *chstr, int n);
int    inchstr(chtype *chstr);
WINDOW *initscr(void);
int    init_color(short color, short red, short green, short blue);
int    init_pair(short pair, short f, short b);
int    innstr(char *str, int n);
int    innwstr(wchar_t *wstr, int n);
int    insch(chtype ch);
int    insdelln(int n);
int    insertln(void);
int    insnstr(const char *str, int n);
int    insstr(const char *str);
int    instr(char *str);
int    ins_nwstr(const wchar_t *wstr, int n);
int    ins_wch(const cchar_t *wch);
int    ins_wstr(const wchar_t *wstr);
int    intrflush(WINDOW *win, bool bf);
int    in_wch(cchar_t *wcval);
int    in_wchstr(cchar_t *wchstr);
int    in_wchnstr(cchar_t *wchstr, int n);
int    inwstr(wchar_t *wstr);
bool   isendwin(void);
bool   is_linetouched(WINDOW *win, int line);
bool   is_wintouched(WINDOW *win);
char  *keyname(int c);
char  *key_name(wchar_t c);
int    keypad(WINDOW *win, bool bf);
char   killchar(void);
int    killwchar(wchar_t *ch);
int    leaveok(WINDOW *win, bool bf);
char  *longname(void);
int    meta(WINDOW *win, bool bf);
int    move(int y, int x);
int    mvaddch(int y, int x, const chtype ch);
int    mvaddchnstr(int y, int x, const chtype *chstr, int n);
int    mvaddchstr(int y, int x, const chtype *chstr);
int    mvaddnstr(int y, int x, const char *str, int n);
int    mvaddnwstr(int y, int x, const wchar_t *wstr, int n);
int    mvaddstr(int y, int x, const char *str);
int    mvaddwstr(int y, int x, const wchar_t *wstr);
int    mvadd_wch(int y, int x, const cchar_t *wch);
int    mvadd_wchnstr(int y, int x, const cchar_t *wchstr, int n);
int    mvadd_wchstr(int y, int x, const cchar_t *wchstr);
int    mvchgat(int y, int x, int n, attr_t attr, short color,
               const void *opts);
int    mvcur(int oldrow, int oldcol, int newrow, int newcol);
int    mvdelch(int y, int x);
int    mvderwin(WINDOW *win, int par_y, int par_x);
int    mvgetch(int y, int x);
int    mvgetnstr(int y, int x, char *str, int n);
int    mvgetn_wstr(int y, int x, wint_t *wstr, int n);
int    mvgetstr(int y, int x, char *str);
int    mvget_wch(int y, int x, wint_t *ch);
int    mvget_wstr(int y, int x, wint_t *wstr);
int    mvhline(int y, int x, chtype ch, int n);
int    mvhline_set(int y, int x, const cchar_t *wch, int n);
chtype mvinch(int y, int x);
int    mvinchnstr(int y, int x, chtype *chstr, int n);
int    mvinchstr(int y, int x, chtype *chstr);
int    mvinnstr(int y, int x, char *str, int n);
int    mvinnwstr(int y, int x, wchar_t *wstr, int n);
int    mvinsch(int y, int x, chtype ch);
int    mvinsnstr(int y, int x, const char *str, int n);
int    mvinsstr(int y, int x, const char *str);
int    mvinstr(int y, int x, char *str);
int    mvins_nwstr(int y, int x, const wchar_t *wstr, int n);
int    mvins_wch(int y, int x, const cchar_t *wch);
int    mvins_wstr(int y, int x, const wchar_t *wstr);
int    mvinwstr(int y, int x, wchar_t *wstr);
int    mvin_wch(int y, int x, cchar_t *wcval);
int    mvin_wchnstr(int y, int x, cchar_t *wchstr, int n);
int    mvin_wchstr(int y, int x, cchar_t *wchstr);
int    mvprintw(int y, int x, char *fmt, ...);
int    mvscanw(int y, int x, char *fmt, ...);
int    mvvline(int y, int x, chtype ch, int n);
int    mvvline_set(int y, int x, const cchar_t *wch, int n);
int    mvwaddch(WINDOW *win, int y, int x, const chtype ch);
int    mvwaddchnstr(WINDOW *win, int y, int x, const chtype *chstr,
                    int n);
int    mvwaddchstr(WINDOW *win, int y, int x, const chtype *chstr);
int    mvwaddnstr(WINDOW *win, int y, int x, const char *str, int n);
int    mvwaddnwstr(WINDOW *win, int y, int x, const wchar_t *wstr,
                   int n);
int    mvwaddstr(WINDOW *win, int y, int x, const char *str);
int    mvwaddwstr(WINDOW *win, int y, int x, const wchar_t *wstr);
int    mvwadd_wch(WINDOW *win, int y, int x, const cchar_t *wch);
int    mvwadd_wchnstr(WINDOW *win, int y, int x, const cchar_t *wchstr,
                      int n);
int    mvwadd_wchstr(WINDOW *win, int y, int x, const cchar_t *wchstr);
int    mvwchgat(WINDOW *win, int y, int x, int n, attr_t attr,
                short color, const void *opts);
int    mvwdelch(WINDOW *win, int y, int x);
int    mvwgetch(WINDOW *win, int y, int x);
int    mvwgetnstr(WINDOW *win, int y, int x, char *str, int n);
int    mvwgetn_wstr(WINDOW *win, int y, int x, wint_t *wstr, int n);
int    mvwgetstr(WINDOW *win, int y, int x, char *str);
int    mvwget_wch(WINDOW *win, int y, int x, wint_t *ch);
int    mvwget_wstr(WINDOW *win, int y, int x, wint_t *wstr);
int    mvwhline(WINDOW *win, int y, int x, chtype ch, int n);
int    mvwhline_set(WINDOW *win, int y, int x, const cchar_t *wch,
                    int n);
int    mvwin(WINDOW *win, int y, int x);
chtype mvwinch(WINDOW *win, int y, int x);
int    mvwinchnstr(WINDOW *win, int y, int x, chtype *chstr, int n);
int    mvwinchstr(WINDOW *win, int y, int x, chtype *chstr);
int    mvwinnstr(WINDOW *win, int y, int x, char *str, int n);
int    mvwinnwstr(WINDOW *win, int y, int x, wchar_t *wstr, int n);
int    mvwinsch(WINDOW *win, int y, int x, chtype ch);
int    mvwinsnstr(WINDOW *win, int y, int x, const char *str, int n);
int    mvwinsstr(WINDOW *win, int y, int x, const char *str);
int    mvwinstr(WINDOW *win, int y, int x, char *str);
int    mvwins_nwstr(WINDOW *win, int y, int x, const wchar_t *wstr,
                    int n);
int    mvwins_wch(WINDOW *win, int y, int x, const cchar_t *wch);
int    mvwins_wstr(WINDOW *win, int y, int x, const wchar_t *wstr);
int    mvwinwstr(WINDOW *win, int y, int x, wchar_t *wstr);
int    mvwin_wch(WINDOW *win, int y, int x, cchar_t *wcval);
int    mvwin_wchnstr(WINDOW *win, int y, int x, cchar_t *wchstr,
                     int n);
int    mvwin_wchstr(WINDOW *win, int y, int x, cchar_t *wchstr);
int    mvwprintw(WINDOW *win, int y, int x, char *fmt, ...);
int    mvwscanw(WINDOW *win, int y, int x, char *fmt, ...);
int    mvwvline(WINDOW *win, int y, int x, chtype ch, int n);
int    mvwvline_set(WINDOW *win, int y, int x, const cchar_t *wch,
                    int n);
int    napms(int ms);
WINDOW *newpad(int nlines, int ncols);
SCREEN *newterm(char *type, FILE *outfile, FILE *infile);
WINDOW *newwin(int nlines, int ncols, int begin_y, int begin_x);
int    nl(void);
int    nonl(void);
int    nocbreak(void);
int    nodelay(WINDOW *win, bool bf);
int    noecho(void);
void   noqiflush(void);
int    noraw(void);
int    notimeout(WINDOW *win, bool bf);
int    overlay(const WINDOW *srcwin, WINDOW *dstwin);
int    overwrite(const WINDOW *srcwin, WINDOW *dstwin);
int    pair_content(short pair, short *f, short *b);
int    PAIR_NUMBER(int value);
int    pechochar(WINDOW *pad, chtype *ch);
int    pecho_wchar(WINDOW *pad, const cchar_t *wch);
int    pnoutrefresh(WINDOW *pad, int pminrow, int pmincol, int sminrow,
                    int smincol, int smaxrow, int smaxcol);
int    prefresh(WINDOW *pad, int pminrow, int pmincol, int sminrow,
                int smincol, int smaxrow, int smaxcol);
int    printw(char *fmt, ...);
int    putp(const char *str);
int    putwin(WINDOW *win, FILE *filep);
void   qiflush(void);
int    raw(void);
int    redrawwin(WINDOW *win);
int    refresh(void);
int    resetty(void);
int    reset_prog_mode(void);
int    reset_shell_mode(void);
int    ripoffline(int line, int (*init)(WINDOW *win, int columns));
int    savetty(void);
int    scanw(char *fmt, ...);
int    scr_dump(const char *filename);
int    scr_init(const char *filename);
int    scrl(int n);
int    scroll(WINDOW *win);
int    scrollok(WINDOW *win, bool bf);
int    scr_restore(const char *filename);
int    scr_set(const char *filename);
int    setcchar(cchar_t *wcval, const wchar_t *wch,
                const attr_t attrs, short color_pair,
                const void *opts);
int    setscrreg(int top, int bot);
SCREEN *set_term(SCREEN *new);
int    slk_attroff(const chtype attrs);
int    slk_attr_off(const attr_t attrs, void *opts);
int    slk_attron(const chtype attrs);
int    slk_attr_on(const attr_t attrs, void *opts);
int    slk_attrset(const chtype attrs);
int    slk_attr_set(const attr_t attrs, short color_pair,
                    void *opts);
int    slk_clear(void);
int    slk_init(int fmt);
char  *slk_label(int labnum);
int    slk_noutrefresh(void);
int    slk_refresh(void);
int    slk_restore(void);
int    slk_set(int labnum, const char *label, int justify);
int    slk_touch(void);
int    slk_wset(int labnum, const wchar_t *label, int justify);
int    standend(void);
int    standout(void);
int    start_color(void);
WINDOW *subpad(WINDOW *orig, int nlines, int ncols, int begin_y,
               int begin_x);
WINDOW *subwin(WINDOW *orig, int nlines, int ncols, int begin_y,
               int begin_x);
int    syncok(WINDOW *win, bool bf);
chtype termattrs(void);
attr_t term_attrs(void);
char  *termname(void);
int    tigetflag(char *capname);
int    tigetnum(char *capname);
char  *tigetstr(char *capname);
void   timeout(int delay);
int    touchline(WINDOW *win, int start, int count);
int    touchwin(WINDOW *win);
char  *tparm(char *cap, long p1, long p2, long p3, long p4,
             long p5, long p6, long p7, long p8, long p9);
int    typeahead(int fildes);
int    ungetch(int ch);
int    unget_wch(const wchar_t wch);
int    untouchwin(WINDOW *win);
void   use_env(bool boolvalue);
int    vidattr(chtype attr);
int    vid_attr(attr_t attr, short color_pair, void *opts);
int    vidputs(chtype attr, int (*putfunc)(int));
int    vid_puts(attr_t attr, short color_pair, void *opt,
                int (*putwfunc)(int));
int    vline(chtype ch, int n);
int    vline_set(const cchar_t *wch, int n);
int    vwprintw(WINDOW *win, char *fmt, void *varglist);
int    vw_printw(WINDOW *win, char *fmt, void *varglist);
int    vwscanw(WINDOW *win, char *fmt, void *varglist);
int    vw_scanw(WINDOW *win, char *fmt, void *varglist);
int    waddch(WINDOW *win, const chtype ch);
int    waddchnstr(WINDOW *win, const chtype *chstr, int n);
int    waddchstr(WINDOW *win, const chtype *chstr);
int    waddnstr(WINDOW *win, const char *str, int n);
int    waddnwstr(WINDOW *win, const wchar_t *wstr, int n);
int    waddstr(WINDOW *win, const char *str);
int    waddwstr(WINDOW *win, const wchar_t *wstr);
int    wadd_wch(WINDOW *win, const cchar_t *wch);
int    wadd_wchnstr(WINDOW *win, const cchar_t *wchstr, int n);
int    wadd_wchstr(WINDOW *win, const cchar_t *wchstr);
int    wattroff(WINDOW *win, int attrs);
int    wattron(WINDOW *win, int attrs);
int    wattrset(WINDOW *win, int attrs);
int    wattr_get(WINDOW *win, attr_t *attrs, short *color_pair, void *opts);
int    wattr_off(WINDOW *win, attr_t attrs, void *opts);
int    wattr_on(WINDOW *win, attr_t attrs, void *opts);
int    wattr_set(WINDOW *win, attr_t attrs, void *opts);
int    wbkgd(WINDOW *win, chtype ch);
void   wbkgdset(WINDOW *win, chtype ch);
int    wbkgrnd(WINDOW *win, const cchar_t *wch);
void   wbkgrndset(WINDOW *win, const cchar_t *wch);
int    wborder(WINDOW *win, chtype ls, chtype rs, chtype ts, chtype bs,
               chtype tl, chtype tr, chtype bl, chtype br);
int    wborder_set(WINDOW *win, const cchar_t *ls, const cchar_t *rs,
                   const cchar_t *ts, const cchar_t *bs,
                   const cchar_t *tl, const cchar_t *tr,
                   const cchar_t *bl, const cchar_t *br);
int    wchgat(WINDOW *win, int n, attr_t attr, short color,
              const void *opts);
int    wclear(WINDOW *win);
int    wclrtobot(WINDOW *win);
int    wclrtoeol(WINDOW *win);
void   wcursyncup(WINDOW *win);
int    wdelch(WINDOW *win);
int    wdeleteln(WINDOW *win);
int    wechochar(WINDOW *win, const chtype ch);
int    wecho_wchar(WINDOW *win, const cchar_t *wch);
int    werase(WINDOW *win);
int    wgetbkgrnd(WINDOW *win, cchar_t *wch);
int    wgetch(WINDOW *win);
int    wgetnstr(WINDOW *win, char *str, int n);
int    wgetn_wstr(WINDOW *win, wint_t *wstr, int n);
int    wgetstr(WINDOW *win, char *str);
int    wget_wch(WINDOW *win, wint_t *ch);
int    wget_wstr(WINDOW *win, wint_t *wstr);
int    whline(WINDOW *win, chtype ch, int n);
int    whline_set(WINDOW *win, const cchar_t *wch, int n);
chtype winch(WINDOW *win);
int    winchnstr(WINDOW *win, chtype *chstr, int n);
int    winchstr(WINDOW *win, chtype *chstr);
int    winnstr(WINDOW *win, char *str, int n);
int    winnwstr(WINDOW *win, wchar_t *wstr, int n);
int    winsch(WINDOW *win, chtype ch);
int    winsdelln(WINDOW *win, int n);
int    winsertln(WINDOW *win);
int    winsnstr(WINDOW *win, const char *str, int n);
int    winsstr(WINDOW *win, const char *str);
int    winstr(WINDOW *win, char *str);
int    wins_nwstr(WINDOW *win, const wchar_t *wstr, int n);
int    wins_wch(WINDOW *win, const cchar_t *wch);
int    wins_wstr(WINDOW *win, const wchar_t *wstr);
int    winwstr(WINDOW *win, wchar_t *wstr);
int    win_wch(WINDOW *win, cchar_t *wcval);
int    win_wchnstr(WINDOW *win, cchar_t *wchstr, int n);
int    win_wchstr(WINDOW *win, cchar_t *wchstr);
int    wmove(WINDOW *win, int y, int x);
int    wnoutrefresh(WINDOW *win);
int    wprintw(WINDOW *win, char *fmt, ...);
int    wredrawln(WINDOW *win, int beg_line, int num_lines);
int    wrefresh(WINDOW *win);
int    wscanw(WINDOW *win, char *fmt, ...);
int    wscrl(WINDOW *win, int n);
int    wsetscrreg(WINDOW *win, int top, int bot);
int    wstandend(WINDOW *win);
int    wstandout(WINDOW *win);
void   wsyncdown(WINDOW *win);
void   wsyncup(WINDOW *win);
void   wtimeout(WINDOW *