我一直在使用NCURSES
库来完成我的任务,但它有一个很大的问题。
我不能让它在终端窗口上显示滚动条。我尝试过任何我发现here的东西,但似乎都没有。
我在StackExhcange中找到了这个代码部分,但即使这样也没有显示schrollbars。
#include <ncurses.h>
int main(void)
{
int i = 0;
initscr();
scrollok(stdscr,TRUE);
while(i<500) {
printw("%3d - lots and lots of lines flowing down the terminal\n", i);
++i;
refresh();
}
getchar();
endwin();
return 0;
}
它是否与elementaryOS有关,因为我听说它已被修改。
答案 0 :(得分:2)
两种可能性:
例如,dialog执行后者。这是一个例子: