[#2294] raise == Thread.current.raise ? — sinara@...
原です。
8 messages
1997/03/03
[#2295] Re: raise == Thread.current.raise ?
— matz@... (Yukihiro Matsumoto)
1997/03/03
まつもと ゆきひろです.
[#2321] shutdown — sinara@...
原です。
9 messages
1997/03/05
[#2327] %Q!string! — sinara@...
原です。
9 messages
1997/03/06
[#2340] ruby 1.0-9700306 available — matz@... (Yukihiro Matsumoto)
まつもと ゆきひろです
2 messages
1997/03/06
[#2342] debug.rb —
わたなべです.
7 messages
1997/03/08
[#2355] [Req] Array#reverse — keiju@... (Keiju ISHITSUKA)
けいじゅ@SHLジャパンです.
19 messages
1997/03/13
[#2357] Re: [Req] Array#reverse
— matz@... (Yukihiro Matsumoto)
1997/03/13
まつもと ゆきひろです.
[#2359] Re: [Req] Array#reverse
—
1997/03/13
けいじゅ@SHLジャパンです.
[#2364] [Req] Hash#reverse (Re: [Req] Array#reverse )
— sinara@...
1997/03/13
原です。
[#2366] Re: [Req] Hash#reverse (Re: [Req] Array#reverse )
—
1997/03/13
けいじゅ@SHLジャパンです.
[#2379] ruby 1.0-970318 released — matz@... (Yukihiro Matsumoto)
まつもと ゆきひろです.
8 messages
1997/03/18
[#2387] Kanji String — gotoken@... (GOTO Kentaro)
はじめまして、 後藤ともうします。
33 messages
1997/03/19
[#2389] Re: Kanji String
— matz@... (Yukihiro Matsumoto)
1997/03/19
まつもと ゆきひろです.
[#2391] Re: Kanji String
— gotoken@... (GOTO Kentaro)
1997/03/19
後藤です
[#2393] Re: Kanji String
— matz@... (Yukihiro Matsumoto)
1997/03/19
まつもと ゆきひろです.
[#2465] curses library
— MAEDA Shugo <ender@...>
1997/03/28
前田です。
[#2469] Re: curses library
— MAEDA Shugo <ender@...>
1997/03/28
前田です。
[#2470] Re: curses library
— WATANABE Hirofumi <watanabe@...>
1997/03/28
わたなべです.
[#2488] Re: curses library
— matz@... (Yukihiro Matsumoto)
1997/03/29
まつもと ゆきひろです
[#2497] Re: curses library
— MAEDA Shugo <ender@...>
1997/03/29
前田です。
[#2512] Re: curses library
— matz@... (Yukihiro Matsumoto)
1997/03/31
まつもと ゆきひろです.
[#2485] Re: curses library
— matz@... (Yukihiro Matsumoto)
1997/03/29
まつもと ゆきひろです
[#2495] Re: curses library
— MAEDA Shugo <ender@...>
1997/03/29
前田です。
[#2513] Re: curses library
— matz@... (Yukihiro Matsumoto)
1997/03/31
まつもと ゆきひろです.
[#2604] Re: curses library
— sinara@...
1997/04/04
原です。
[#2388] eval()'s context — matz@... (Yukihiro Matsumoto)
まつもと ゆきひろです.
5 messages
1997/03/19
[#2395] Re: eval()'s context — Shin-ichiro Hara <sinara@...>
原です。
6 messages
1997/03/19
[#2402] about TCPserver — MAEDA Shugo <ender@...>
前田です。
45 messages
1997/03/21
[#2403] Re: about TCPserver
— matz@... (Yukihiro Matsumoto)
1997/03/22
まつもと ゆきひろです
[#2405] Re: about TCPserver
— MAEDA Shugo <ender@...>
1997/03/23
前田です。
[#2406] Re: about TCPserver
— matz@... (Yukihiro Matsumoto)
1997/03/24
[#2408] Re: about TCPserver
— WATANABE Hirofumi <watanabe@...>
1997/03/24
わたなべです.
[#2411] Re: about TCPserver
— MAEDA Shugo <ender@...>
1997/03/24
前田です。
[#2417] Re: about TCPserver
— matz@... (Yukihiro Matsumoto)
1997/03/25
まつもと ゆきひろです.
[#2425] Re: about TCPserver
— MAEDA Shugo <ender@...>
1997/03/25
前田です。
[#2430] Re: about TCPserver
— matz@... (Yukihiro Matsumoto)
1997/03/26
まつもと ゆきひろです
[#2437] Re: about TCPserver
— MAEDA Shugo <ender@...>
1997/03/26
前田です。
[#2442] JString? (Re: about TCPserver)
— matz@... (Yukihiro Matsumoto)
1997/03/27
まつもと ゆきひろです
[#2459] Re: JString? (Re: about TCPserver)
— MAEDA Shugo <ender@...>
1997/03/27
前田です。
[#2407] Re: about TCPserver
— WATANABE Hirofumi <watanabe@...>
1997/03/24
わたなべです.
[#2429] \W, \S, \D — WATANABE Hirofumi <watanabe@...>
わたなべです.
7 messages
1997/03/26
[#2439] url escape — gotoken@... (GOTO Kentaro)
どシロウトの後藤です.
57 messages
1997/03/27
[#2444] Re: url escape
— matz@... (Yukihiro Matsumoto)
1997/03/27
『だらだら日記−−』の読者,まつもと ゆきひろです
[#2449] Re: url escape
— sinara@...
1997/03/27
原です。
[#2451] Re: url escape
— sinara@...
1997/03/27
原です。
[#2455] class design (Re: url escape)
— matz@... (Yukihiro Matsumoto)
1997/03/27
まつもと ゆきひろです
[#2471] Re: class design (Re: url escape)
— sinara@...
1997/03/28
原です。
[#2487] Re: class design (Re: url escape)
— matz@... (Yukihiro Matsumoto)
1997/03/29
まつもと ゆきひろです
[#2510] Re: class design (Re: url escape)
—
1997/03/30
けいじゅ@SHLジャパンです.
[#2603] Re: class design (Re: url escape)
— sinara@...
1997/04/04
原です。
[#2628] Re: class design (Re: url escape)
—
1997/04/05
けいじゅ@SHLジャパンです.
[#2615] Re: class design (Re: url escape)
— MAEDA Shugo <ender@...>
1997/04/04
前田です。
[#2476] [Req] for Struct and [?] for Class — keiju@... (Keiju ISHITSUKA)
けいじゅ@SHLジャパンです.
13 messages
1997/03/28
[#2486] Re: [Req] for Struct and [?] for Class
— matz@... (Yukihiro Matsumoto)
1997/03/29
まつもと ゆきひろです
[#2509] Re: [Req] for Struct and [?] for Class
—
1997/03/30
けいじゅ@SHLジャパンです.
[#2518] Re: [Req] for Struct and [?] for Class
— matz@... (Yukihiro Matsumoto)
1997/03/31
まつもと ゆきひろです.
[#2534] Re: [Req] for Struct and [?] for Class
—
1997/03/31
けいじゅ@SHLジャパンです.
[#2536] Re: [Req] for Struct and [?] for Class
— matz@... (Yukihiro Matsumoto)
1997/03/31
まつもと ゆきひろです.
[#2537] Re: [Req] for Struct and [?] for Class
—
1997/03/31
けいじゅ@SHLジャパンです.
[#2500] How to make const by C — MAEDA Shugo <ender@...>
前田です。
8 messages
1997/03/30
[#2504] Re: WWW library — Shin-ichiro Hara <sinara@...>
原です。
6 messages
1997/03/30
[#2505] Re: WWW library (Re: class design) — Shin-ichiro Hara <sinara@...>
原です。
15 messages
1997/03/30
[#2514] Re: WWW library (Re: class design)
— matz@... (Yukihiro Matsumoto)
1997/03/31
まつもと ゆきひろです
[#2519] Re: WWW library (Re: class design)
— matz@... (Yukihiro Matsumoto)
1997/03/31
まつもと ゆきひろです.
[#2541] Q: add class methods (Re: WWW library)
— gotoken@... (GOTO Kentaro)
1997/03/31
シロウトの後藤です
[#2542] Re: Q: add class methods (Re: WWW library)
— matz@... (Yukihiro Matsumoto)
1997/03/31
まつもと ゆきひろです.
[ruby-list:2548] Re: curses library
From:
matz@... (Yukihiro Matsumoto)
Date:
1997-03-31 08:50:10 UTC
List:
ruby-list #2548
まつもと ゆきひろです.
In message "[ruby-list:2547] Re: curses library"
on 97/03/31, MAEDA Shugo <ender@pic-internet.or.jp> writes:
|On Mon, 31 Mar 97 14:42:36 JST,
|matz@caelum.co.jp (Yukihiro Matsumoto) wrote:
|
|| いっそのこと,Init_curses()の中でinitscr()してしまったらどう
|| です? cursesモジュールをrequireしておいて,initscrしないでお
|| く必然性はあまりないような….
|
|それも考えたのですが、requireしただけでinitscr()してしまうと
|printなどと併用できないのでまずいかなと。
そうかあ,cursesってそういうものなのね.考えてみれば当然だよ
なあ.こういう場合には定数は提供しない方が良いのではないでしょ
うか?
|あと、close_screenせずにexitすると端末がとんでもないことになる
|のですが、この辺は使用者まかせでよいんでしょうか?
たぶん.ちなみにpythonのcursesは以下のようなAPIのようです.
rubyにマップすると
トップレベルのもの - Cursesモジュールのモジュール関数
Window - Curses::Windowクラス
Pad - Curses::Padクラス(Padってなに?)
という感じになるんではないでしょうか? md5の時にpython用に書
かれたモジュールをrubyに持って来ましたが,一般的にはruby用に
書き直すのはかなり簡単です.
--
This is a curses implementation. I have tried to be as complete
as possible. If there are functions you need that are not included,
please let me know and/or send me some diffs.
There are 3 basic types exported by this module:
1) Screen - This is not currently used
2) Window - This is the basic type. This is equivalent to "WINDOW *".
3) Pad - This is similar to Window, but works with Pads as defined
in curses.
Most of the routines can be looked up using the curses man page.
Here is a list of the currently supported methods and attributes
in the curses module:
Return Value Func/Attr Description
--------------------------------------------------------------------------
StringObject version A string representing the current
version of this module.
WindowObject initscr() This initializes the screen for use
None endwin() Closes down the screen and returns
things as they were before calling
initscr()
True/FalseObject isendwin() Has endwin() been called?
None doupdate() Updates screen
WindowObject newwin(nlines,ncols,begin_y,begin_x)
newwin(begin_y,begin_x)
newwin() creates and returns
a new window.
None beep() Beep the screen if possible
None flash() Flash the screen if possible
None ungetch(int) Push the int back so next getch()
will return it.
Note: argument is an INT, not a CHAR
None flushinp() Flush all input buffers
None cbreak() Enter cbreak mode
None nocbreak() Leave cbreak mode
None echo() Enter echo mode
None noecho() Leave echo mode
None nl() Enter nl mode
None nonl() Leave nl mode
None raw() Enter raw mode
None noraw() Leave raw mode
None intrflush(int) Set or reset interruptable flush
mode, int=1 if set, 0 if notset.
None meta(int) Allow 8 bit or 7 bit chars.
int=1 is 8 bit, int=0 is 7 bit
StringObject keyname(int) return the text representation
of a KEY_ value. (see below)
Here is a list of the currently supported methods and attributes
in the WindowObject:
Return Value Func/Attr Description
--------------------------------------------------------------------------
None refresh() Do refresh
None nooutrefresh() Mark for refresh but wait
None mvwin(new_y,new_x) Move Window
None move(new_y,new_x) Move Cursor
WindowObject subwin(nlines,ncols,begin_y,begin_x)
subwin(begin_y,begin_x)
None addch(y,x,ch,attr)
addch(y,x,ch)
addch(ch,attr)
addch(ch)
None insch(y,x,ch,attr)
insch(y,x,ch)
insch(ch,attr)
insch(ch)
None delch(y,x)
delch()
None echochar(ch,attr)
echochar(ch)
None addstr(y,x,str,attr)
addstr(y,x,str)
addstr(str,attr)
addstr(str)
None attron(attr)
None attroff(attr)
None attrset(sttr)
None standend()
None standout()
None border(ls,rs,ts,bs,tl,tr,bl,br) (accepts 0-8 INT args)
None box(vertch,horch) vertch and horch are INTS
box()
None hline(y,x,ch,n)
hline(ch,n)
None vline(y,x,ch,n)
vline(ch,n)
None erase()
None deleteln()
None insertln()
(y,x) getyx()
(y,x) getbegyx()
(y,x) getmaxyx()
None clear()
None clrtobot()
None clrtoeol()
None scroll()
None touchwin()
None touchline(start,count)
IntObject getch(y,x)
getch()
StringObject getstr(y,x)
getstr()
IntObject inch(y,x)
inch()
None clearok(int) int=0 or int=1
None idlok(int) int=0 or int=1
None leaveok(int) int=0 or int=1
None scrollok(int) int=0 or int=1
None setscrreg(top,bottom)
None keypad(int) int=0 or int=1
None nodelay(int) int=0 or int=1
None notimeout(int) int=0 or int=1