Package: zinf
Version: 2.1.1.0
Author: Guillem Jover <guillem@hadrons.org>
Status: not-sent
Description:
 Test patch.

diff -Naur freeamp-2.1.1.0/ui/ncurses/ncursesUI.cpp freeamp-2.1.1.0-patched/ui/ncurses/ncursesUI.cpp
--- freeamp-2.1.1.0/ui/ncurses/ncursesUI.cpp	2000-10-13 12:32:57.000000000 +0200
+++ freeamp-2.1.1.0-patched/ui/ncurses/ncursesUI.cpp	2002-07-19 05:35:08.000000000 +0200
@@ -48,10 +48,10 @@
 }
 
            }
-	   
+/*	   
 static struct termios normalTTY;
 static struct termios rawTTY;
-
+*/
 int getKey() {
     fd_set rdfs;
 
@@ -86,11 +86,11 @@
 Error ncursesUI::Init(int32 startup_level) {
     cursesStarted = false;
     if ((m_startupLevel = startup_level) == PRIMARY_UI) {
-        tcgetattr(stdinfd, &::normalTTY);
+/*        tcgetattr(stdinfd, &::normalTTY);
         ::rawTTY = ::normalTTY;
         ::rawTTY.c_lflag &= ~ICANON;
         ::rawTTY.c_lflag &= ~ECHO;
-        tcsetattr(stdinfd, TCSANOW, &rawTTY);
+        tcsetattr(stdinfd, TCSANOW, &rawTTY);*/
 
         keyboardListenThread = Thread::CreateThread();
         keyboardListenThread->Create(ncursesUI::keyboardServiceFunction,this);
@@ -136,9 +136,9 @@
         refresh();
         endwin();
     }
-    if (m_startupLevel == PRIMARY_UI) {
+/*    if (m_startupLevel == PRIMARY_UI) {
         tcsetattr(stdinfd, TCSANOW, &normalTTY);
-    }
+    }*/
     //cout << "ncursesUI: begin deleted..." << endl;
     if (keyboardListenThread) {
         keyboardListenThread->Destroy();
@@ -405,13 +405,13 @@
 }
 
 void ncursesUI::ProcessArgs() {
-    //char *pc = NULL;
-    //for(int i=1;i<m_argc;i++) {
+    char *pc = NULL;
+    for(int i=1;i<m_argc;i++) {
         //cout << "Adding arg " << i << ": " << argv[i] << endl;
-        //pc = m_argv[i];
-        //if (pc[0] == '-') 
-        //    processSwitch(pc);
-    //}
+        pc = m_argv[i];
+        if (pc[0] == '-') 
+            processSwitch(pc);
+    }
     m_plm->SetCurrentIndex(0);
 }
 
@@ -437,8 +437,8 @@
     {
         cout << "Invalid command line argument, try -h for help." << endl;
     }
-    Event *e = new Event(CMD_QuitPlayer);
-    m_playerEQ->AcceptEvent(e);
+/*    Event *e = new Event(CMD_QuitPlayer);
+    m_playerEQ->AcceptEvent(e);*/
     return;
 }
 
