summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpixel <pixel>2004-05-02 02:29:23 +0000
committerpixel <pixel>2004-05-02 02:29:23 +0000
commit6fe28e64b960b2a58ef0cff94898f6958467927c (patch)
tree85a557d4d664d572ee6f199456d4da8c1d9e915c
parentaedffa791e2c28eccf2534eba50b82c3b38fba8b (diff)
WIP and CTRL-D fix
-rw-r--r--cd-tool.cpp14
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;