{"url":"https://yuyarin.hatenadiary.org/entry/20071124/1195841575","provider_name":"Hatena Blog","blog_title":"yuyarin\u306e\u65e5\u8a18","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyuyarin.hatenadiary.org%2Fentry%2F20071124%2F1195841575\" title=\"curses\u3067\u904a\u3093\u3067\u307f\u305f - yuyarin\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2007-11-24 03:12:55","version":"1.0","type":"rich","description":"curses*1\u306e\u4f7f\u3044\u65b9\u306e\u304a\u52c9\u5f37\u3002 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb sudo apt-get install ncurses-dev \u30b3\u30f3\u30d1\u30a4\u30eb \u30ea\u30f3\u30af\u3059\u308b\u306e\u3092\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u3002 g++ -o sample sample.cpp -lcurses \u7df4\u7fd2\u30d7\u30ed\u30b0\u30e9\u30e0 0\u304b\u30899\u307e\u3067\u3092\u30ad\u30fc\u5165\u529b\u304c\u3042\u308b\u5ea6\u306b1\u305a\u3064\u5897\u3084\u3057\u3066\u8868\u793a\u3059\u308b\u3002 #include <curses.h> int main(void){ initscr(); // \u30b9\u30af\u30ea\u30fc\u30f3\u306e\u30bb\u30c3\u30c8 for(int n=0; n<10; n++) { printw(\"%d\",n); // \u51fa\u529b refresh(); // \u8868\u793a getch(); // \u30ad\u30fc\u5165\u529b\u5f85\u3061 } end\u2026","height":"190","width":"100%","author_url":"https://blog.hatena.ne.jp/yuyarin/","image_url":null,"categories":["C/C++","Linux","Programming"],"author_name":"yuyarin","title":"curses\u3067\u904a\u3093\u3067\u307f\u305f","blog_url":"https://yuyarin.hatenadiary.org/"}