From: gotoken@... (GOTO Kentaro) Date: 1999-08-15T15:27:23+09:00 Subject: [ruby-list:16154] Re: slanglib (Re: how to know binary file) ごとけんです In message "[ruby-list:16090] Re: slanglib (Re: how to know binary file)" on 99/08/12, WATANABE Hirofumi writes: >:わたなべさんもうひとつ教えて下さい。COLORTERM=1 が必要なのは >:何故ですか?? libslang を使ってる Lynx はこれなしでも色を出し >:てくれるんで戸惑ってます。 > >うちの lynx は -color しないと色が出ないんであれなんですけど >~/.lynxrc の show_color が always になってるとか. ソースを追っかけてやっと分かったんですが configure でそうい うことをしてました。失礼しました。今まで気にしてなかったけど 端末が色を出せるかどうかの情報の有無は処理系依存なんですね。 slang/doc/text/cslang.txt: | Of course not all terminals are color terminals. If the S-Lang global | variable SLtt_Use_Ansi_Colors is non-zero, the terminal is assumed to | be a color terminal. The SLtt_get_terminfo will try to determine | whether or not the terminal supports colors and set this variable | accordingly. It does this by looking for the capability in the | terminfo/termcap database. Unfortunately many Unix databases lack | this information and so the SLtt_get_terminfo routine will check | whether or not the environment variable COLORTERM exists. If it | exists, the terminal will be assumed to support ANSI colors and | SLtt_Use_Ansi_Colors will be set to one. Nevertheless, the | application should provide some other mechanism to set this variable, | e.g., via a command line parameter. -- gotoken