Files
ncurses/erstes.cc

31 lines
479 B
C++
Raw Permalink Normal View History

2017-02-07 20:07:58 +00:00
#include <curses.h>
int main()
{
WINDOW *stdscr;
const char *str1 = "Eins";
int z;
stdscr = initscr();
int sc=start_color();
nonl();
intrflush(stdscr, FALSE);
keypad(stdscr, TRUE);
int cp=init_pair(1,COLOR_MAGENTA,COLOR_BLUE);
cp=init_pair(2,COLOR_BLUE,COLOR_MAGENTA);
COLOR_PAIR(1);
for (z=1;z < 5;z++)
{
move(z,0);
attrset(COLOR_PAIR(1));
addstr(str1);
attrset(COLOR_PAIR(2));
addstr(str1);
usleep(1);
}
refresh();
sleep(1);
endwin();
return 0;
}