hi,

hab schon von hilfe bekommen.

wen es interessiert

#include <stdio.h>
#include <curses.h>

#define TEMPO 7000000
struct string
{
  char kette[59];
} licht = {" O  O  O  O  O  O  O  O  O  O  O  O  O  O  O  O  O  O  O "};

void main(void)
{
 unsigned long int i;
 int l;

 initscr();
 intrflush(stdscr, FALSE);
 keypad(stdscr, TRUE);
 nodelay(stdscr, TRUE);
 do
  {
   for(l=0;l<=2;l++)
      {
      mvaddstr(8,8-l,licht.kette);
      refresh();
      for (i = 1; i <= TEMPO; i++);
      }

  }while( getch() == ERR );
  endwin();
}

cu

michi
----------------------------------------------------------------------------
PUG - Penguin User Group Wiesbaden - http://www.pug.org

Antwort per Email an