summaryrefslogtreecommitdiff
path: root/src/ncur
diff options
context:
space:
mode:
Diffstat (limited to 'src/ncur')
-rw-r--r--src/ncur/CVS/Entries4
-rwxr-xr-xsrc/ncur/ncur.cpp12
-rwxr-xr-xsrc/ncur/ncur.h5
3 files changed, 11 insertions, 10 deletions
diff --git a/src/ncur/CVS/Entries b/src/ncur/CVS/Entries
index b757331..580d793 100644
--- a/src/ncur/CVS/Entries
+++ b/src/ncur/CVS/Entries
@@ -1,5 +1,5 @@
/menu.cpp/1.8/Mon Feb 21 01:55:50 2005//
/menu.h/1.6/Mon Feb 21 01:55:50 2005//
-/ncur.cpp/1.26/Wed Mar 9 21:09:32 2005//
-/ncur.h/1.11/Sun Mar 6 20:44:47 2005//
+/ncur.cpp/1.22/Mon Feb 21 01:55:50 2005//
+/ncur.h/1.9/Mon Feb 21 01:55:50 2005//
D
diff --git a/src/ncur/ncur.cpp b/src/ncur/ncur.cpp
index 9b0996c..4f63f01 100755
--- a/src/ncur/ncur.cpp
+++ b/src/ncur/ncur.cpp
@@ -6,7 +6,6 @@
#ifdef CLI
#include "../cli/cli.h"
#endif
-#include "../sign.h"
using namespace std;
@@ -212,7 +211,7 @@ ncur::switch_main_menu_( int i_choice )
def_prog_mode(); /* Save the tty modes */
endwin(); /* End curses mode temporarily */
- delete new cli(); /* Start CLI mode */
+ new cli(); /* Start CLI mode */
reset_prog_mode(); /* Return to the previous tty mode*/
/* stored by def_prog_mode() */
refresh(); /* Do refresh() to restore the */
@@ -234,7 +233,11 @@ ncur::switch_main_menu_( int i_choice )
break;
case 11: // Shut down server
- sign::terminate_received(0);
+ if ( ! wrap::GCOL->remove_garbage() ) //<<
+ wrap::NCUR->print( GAROFFNE ); //<<
+ mvprintw( 21,2, "Good bye !");
+ close_ncurses();
+ exit(0);
break;
default:
@@ -253,9 +256,8 @@ ncur::init_ncurses()
clear();
noecho();
cbreak(); // Line buffering disabled. pass on everything
- init_pair(1, COLOR_BLACK, COLOR_CYAN);
+ init_pair(1, COLOR_WHITE, COLOR_BLUE);
mvprintw( 0,2, (char*)(tool::ychat_version()).c_str());
- curs_set(0);
refresh();
}
diff --git a/src/ncur/ncur.h b/src/ncur/ncur.h
index 1830cdf..74ed60e 100755
--- a/src/ncur/ncur.h
+++ b/src/ncur/ncur.h
@@ -16,7 +16,6 @@ using namespace std;
class ncur : public thro
{
private:
- friend class sign;
menu* p_menu;
WINDOW* p_serveroutput;
list<char*>* p_messagelist; // contains the messages for p_serveroutput!
@@ -29,8 +28,8 @@ private:
pthread_mutex_t mut_is_ready;
public:
- ncur();
- ~ncur();
+ ncur( ); // a standard constructor.
+ ~ncur( );
void start( void *p_void );
void print( char* c_print );