Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
でいいねを作ろうとしていhtopますncurses。
htop
ncurses
情報を更新するための無限ループと、それを停止するための条件を実行しています。ただし、以前に入力をチェックしたいので、それ自体は更新されません。
何をすればよいでしょうか ?
curses パラメータを初期化するときは、次の関数を使用できます
timeout(TIME_IN_MILLIS);
コードサンプル:
initscr(); cbreak(); noecho(); nonl(); timeout(1000); mvprintw( 1, 1, "%s", "Hello World!" ); refresh(); getch(); endwin();