diff --git a/DVDEmu.cpp b/DVDEmu.cpp index f0e30e7..3028d07 100644 --- a/DVDEmu.cpp +++ b/DVDEmu.cpp @@ -7,13 +7,14 @@ #include #include #include +#include #include "DVDEmu.h" #include "Serial.h" #include "Video.h" #include "Victor_XV-D701.h" #include "Toshiba_SD-B100.h" -#define VERBOSE_DEBUG 1 +#define VERBOSE_DEBUG 0 int getDirectoryCount( const char * const directory ) { @@ -188,6 +189,21 @@ int main( int argc, char *argv[] ) return 1; } + if( !VERBOSE_DEBUG ) + { + /* Init curses */ + initscr(); + + /* Remove everything on the screen */ + erase(); + + /* Turn off cursor */ + curs_set( 0 ); + + /* Display this */ + refresh(); + } + /* Ensure we start fresh */ PurgeComm( serial ); diff --git a/Makefile b/Makefile index b2bbdff..f864017 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ all: dvdemu dvdemu: DVDEmu.cpp DVDEmu.h Serial.cpp Serial.h Video.cpp Video.h Toshiba_SD-B100.cpp Toshiba_SD-B100.h Victor_XV-D701.cpp Victor_XV-D701.h - g++ -Wall -Werror -D_BSD_SOURCE -pthread -o dvdemu DVDEmu.cpp Serial.cpp Video.cpp Toshiba_SD-B100.cpp Victor_XV-D701.cpp -ggdb + g++ -Wall -Werror -D_BSD_SOURCE -pthread -lcurses -o dvdemu DVDEmu.cpp Serial.cpp Video.cpp Toshiba_SD-B100.cpp Victor_XV-D701.cpp -ggdb .DUMMY: clean clean: