Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ jcurses(3X) — NEWS-os 4.1C

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ioctl(2)

getenv(3)

tty(4)

termcap(5)

setlocale(3)

CURSES(3X)  —  NEWS-OS Programmer’s Manual

名称

curses, jcurses  −  “最適な”カーソル動作を伴った画面操作関数

形式

cc [ flags ] files −lcurses −ltermcap [ libraries ]
cc [ flags ] files −ljcurses −ltermcap [ libraries ]

解説

これらのルーチンは、 適宜な最適化を伴った画面更新の方法を ユーザに提供します。 特に、jcurses は漢字端末、ISO 8859-1 端末でも正しく動作します。 jcurses を使用するプログラムは、 画面操作関数を用いる前に一度だけ setlocale(LC_CTYPE, "") を実行し、 文字コードを正しく設定することが必要です。 ルーチンは現在の画面イメージを 保っているので、 ユーザは新しい画面イメージを 設定できます。 refresh() 関数は、 ルーチン群に、 現在のスクリーンに対して全く新しいスクリーンを作るように 指示することになります。 ルーチンを 初期化するには、 ウィンドウや画面を 扱う他のルーチンを 使用する前に、 initscr() ルーチンを 呼び出さなければなりません。 endwin() ルーチンを 終了前に呼び出す必要があります。

関連事項

Screen Updating and Cursor Movement Optimization: A Library Package, Ken Arnold,
ioctl(2), getenv(3), tty(4), termcap(5), setlocale(3)

著者

Ken Arnold

関数

addch(ch)stdscr に 1文字追加する
addstr(str)stdscr に文字列を追加する
box(win ,vert, hor)ウィンドウの周りにボックスを描く
cbreak()cbreak モードを設定する
clear()stdscr をクリアする
clearok(scr, boolf)scr 用のクリアフラグを設定する
clrtobot()stdscr の一番下までクリアする
clrtoeol()stdscr の行の終わりまでクリアする
delch()1文字を削除する
deleteln()1行を削除する
echo()エコーモードの設定
endwin()ウィンドウモードの終了
erase()stdscr を消去する
flusok(win, boolf)win 用の flush-on-refresh フラグを設定する
getch()stdscr から 1文字得る
getcap(name)name という端末の性能を得る
getstr(str)stdscr から文字列を得る
getmode()ttyモードを得る
getyx(win, y, x)(y, x)座標を得る
inch()現在の(y, x)座標の文字を得る
initscr()画面の初期化を行う
insch(c)1文字挿入する
insertln()1行挿入する
leaveok(win, boolf)win 用の leave フラグを設定する
longname(termbuf, name)termbufから長い名前を得る
move(y, x)stdscr 上の(y, x)へ移動する
mvcur(lasty, lastx, newy, newx)実際にカーソルを移動する
newwin(lines, cols, begin_y, begin_x) 新しいウィンドウを作成する
nl()ニューラインのマッピングを設定する
nocbreak()cbreakモードの設定を外す
noecho()エコーモードの設定を外す
nonl()ニューラインのマッピング設定を外す
noraw()ローモードの設定を外す
overlay(win1, win2)win2 の上に win1 を重ねる
overwrite(win1, win2)win2 の先頭の上に win1 を上書きする
printw(fmt, arg1, arg2,...)stdscr 上に表示する
raw()ローモードを設定する
refresh()現在の画面 をstdscr のようにする
resetty()ttyフラグを記憶された値にリセットする
savetty()現在の tty フラグを記憶する
scanw(fmt, arg1, arg2,...)stdscr の scanf
scroll(win)win を 1行スクロールする
scrollok(win, boolf)スクロールフラグを設定する
setterm(name)name 用の term 変数を設定する
standend()standoutモードを終了する
standout()standoutモードを開始する
subwin(win, lines, cols, begin_y, begin_x) サブウィンドウを作成する
touchline(win, y, sx, ex)変更のために sx から sy まで y 行マークする
touchoverlap(win1, win2)変更のために win2 上の win1 の重なりをマークする
touchwin(win)win のすべてを“変更する”
unctrl(ch)ch の印字可能バージョン
waddch(win, ch)win に文字を追加する
waddstr(win, str)win に文字列を追加する
wclear(win)win をクリアする
wclrtobot(win)win の一番下までクリアする
wclrtoeol(win)win 上の行の終わりまでクリアする
wdelch(win, c)win から文字を削除する
wdeleteln(win)win から行を削除する
werase(win)win を消去する
wgetch(win)win から 1文字得る
wgetstr(win, str)win から文字列を得る
winch(win)win の現在の(y, x)の文字を得る
winsch(win, c)win に文字を挿入する
winsertln(win)win に行を挿入する
wmove(win, y, x)win 上の現在の(y, x)座標を設定する
wprintw(win, fmt, arg1, arg2,...)win 上でのprintf
wrefresh(win)画面を win にする
wscanw(win, fmt, arg1, arg2,...)win の scanf
wstandend(win)win 上の standout モードを終了する
wstandout(win)win 上の standout モードを開始する

NEWS-OSRelease 4.1C

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026