32 lines
532 B
C++
32 lines
532 B
C++
|
|
#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_BLUE),COLOR_BLACK);
|
||
|
|
cp=init_pair(2,COLOR_BLUE,COLOR_MAGENTA);
|
||
|
|
attrset(COLOR_PAIR(1));
|
||
|
|
attron(WA_BOLD);
|
||
|
|
box(stdscr,0,0);
|
||
|
|
for (z=1;z < 5;z++)
|
||
|
|
{
|
||
|
|
move(z,1);
|
||
|
|
attrset(COLOR_PAIR(1));
|
||
|
|
addstr(str1);
|
||
|
|
attrset(COLOR_PAIR(2));
|
||
|
|
addstr(str1);
|
||
|
|
}
|
||
|
|
refresh();
|
||
|
|
sleep(1);
|
||
|
|
endwin();
|
||
|
|
return 0;
|
||
|
|
}
|