Hello,有一天。
因此,我用剪辑或封顶的曲线来撰写这一简单图象,当时你正在把<条码>-down或<条码>上页-up纽顿。
#include <curses.h>
#include <stdio.h>
#include <Windows.h>
int main(void)
{
int ch;
initscr();
cbreak();
keypad(stdscr,TRUE);
idlok(stdscr,TRUE);
scrollok(stdscr,TRUE);
printw("Welcome!");
refresh();
ch = getch();
while(ch != q ){
if(ch == KEY_PPAGE){
scrl(-1);
refresh();
}
else
{
scrl(1);
refresh();
}
ch = getch();
}
endwin();
return 0;
}
The problem is that if the world "Welcome" goes out of the window , then you cannot bring it back with the opposite button. I thought that something like this will be solved by increasing window buffer. But don t know how such a thing will be done and if its good to be done.
是否有帮助我解决这一问题的想法?