diff options
-rw-r--r-- | cd-tool.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/cd-tool.cpp b/cd-tool.cpp index 8b4102c..9737647 100644 --- a/cd-tool.cpp +++ b/cd-tool.cpp @@ -17,7 +17,9 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: cd-tool.cpp,v 1.27 2004-05-02 00:41:38 pixel Exp $ */ +/* $Id: cd-tool.cpp,v 1.28 2004-05-02 02:29:23 pixel Exp $ */ + +#define WIP #define VERSION "0.5" @@ -273,6 +275,9 @@ Lua * start_full_lua(void) { void showbanner() { printm(M_BARE, "CD-Tool version " VERSION " (c) 2003-2004 Nicolas \"Pixel\" Noble\n" +#ifdef WIP +"Special version Work In Progress, compiled the " __DATE__ " at " __TIME__ "\n" +#endif "This is free software with ABSOLUTELY NO WARRANTY.\n" "\n"); } @@ -466,7 +471,12 @@ virtual int startup() throw (GeneralException) { line_read = readline(prompt); - if (line_read && *line_read) + if (!line_read) { + printm(M_BARE, "\n"); + break; + } + + if (*line_read) add_history(line_read); line = line_read; |