initial checkin from subversion
This commit is contained in:
30
erstes.cc
Normal file
30
erstes.cc
Normal file
@@ -0,0 +1,30 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user