aboutsummaryrefslogtreecommitdiff
path: root/gui/debugger.h
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2009-07-25 23:36:24 +0000
committerWillem Jan Palenstijn2009-07-25 23:36:24 +0000
commit45cde5f6422dcee5ffbe6d5d4c482de738c2b053 (patch)
tree418bc12033184ca1af6548a3b3f77e0df0d71224 /gui/debugger.h
parent037c02a1f7179bbe5e3b044e6c9a13a94cd9851c (diff)
downloadscummvm-rg350-45cde5f6422dcee5ffbe6d5d4c482de738c2b053.tar.gz
scummvm-rg350-45cde5f6422dcee5ffbe6d5d4c482de738c2b053.tar.bz2
scummvm-rg350-45cde5f6422dcee5ffbe6d5d4c482de738c2b053.zip
Add optional readline support to the text debugger console.
Make text/graphical console selectable with an option to configure. svn-id: r42787
Diffstat (limited to 'gui/debugger.h')
-rw-r--r--gui/debugger.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/gui/debugger.h b/gui/debugger.h
index 1baf99faeb..81a85a7243 100644
--- a/gui/debugger.h
+++ b/gui/debugger.h
@@ -32,10 +32,7 @@
namespace GUI {
-// Choose between text console or ScummConsole
-#define USE_CONSOLE 1
-
-#if USE_CONSOLE
+#ifndef USE_TEXT_CONSOLE
class ConsoleDialog;
#endif
@@ -86,7 +83,7 @@ private:
bool _isAttached;
char *_errStr;
bool _firstTime;
-#if USE_CONSOLE
+#ifndef USE_TEXT_CONSOLE
GUI::ConsoleDialog *_debuggerDialog;
#endif
@@ -120,11 +117,15 @@ protected:
bool Cmd_DebugFlagEnable(int argc, const char **argv);
bool Cmd_DebugFlagDisable(int argc, const char **argv);
-#if USE_CONSOLE
+#ifndef USE_TEXT_CONSOLE
private:
static bool debuggerInputCallback(GUI::ConsoleDialog *console, const char *input, void *refCon);
static bool debuggerCompletionCallback(GUI::ConsoleDialog *console, const char *input, Common::String &completion, void *refCon);
+#elif defined(USE_READLINE)
+public:
+ char* readlineComplete(const char *input, int state);
#endif
+
};
} // End of namespace GUI