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