CUIにおいて,スクリーンや,キー入力,カーソルなどを管理するライブラリです. このライブラリを利用することで,CUIベースでダイアログを出したり,いろいろ出来るようです. ここでは,自分で使うと思った関数のみ簡単な説明を書いています. このページは,BSDのマニュアルを参考に,私が解釈したものです. 間違っているかもしれませんので,自己責任で参考にしてください. より詳しく知りたい場合は,BSDのマニュアルを見て下さい. ヘッダファイルncurses.hのインクルードとライブラリncurses.aのリンクが必要です #include <ncurses.h> -lncurses 使い方 作成 initscr もしくは newterm 設定 少なくともcbreak もしくは nocbreakを呼び出すべき. 利用 後処理 endwinで端末のリセットとカーソルを左下に移動する. また,必要に
もうカラムの話は飽きたかも知れませんが今回も UTF 的なナニがソレのカラムの話です。 とりあえずボクは飽きました。 curses は罫線が1カラムであることを期待します。常識的に考えてそうであるべきです。し、地球上のほとんどの環境では1カラムです。 が、日本で使われてるフォントの多くは2カラムで出力します。誰がそうしたのかしりませんが、小石くらいは投げてもいいと思います。 (勿論ここに行き着く前に罫線は Ambiguous なため、CJK周りの煩雑な問題を解決(になってないけど)するパッチを当てないといけません) どういうことか分からない人は以下のURLを開いてみましょう。 http://en.wikipedia.org/wiki/Box_drawing_characters 多分ページ内のテーブル内の罫線は全角、画像の罫線は半角に見えると思います。ギャグだと思いたい。 そんなわけで、普
Saving time. Command line interfaces are meant to be easy. So why shouldn’t building them be easy, too? HighLine provides a solid toolset to help you get the job done cleanly so you can focus on the real task at hand, your task. Clean and intuitive design. Want to get a taste for how HighLine is used? Take a look at this simple example, which asks a user for a zip code, automatically does validat
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く