/* TUI Interpreter definitions for GDB, the GNU debugger.
- Copyright (C) 2003-2014 Free Software Foundation, Inc.
+ Copyright (C) 2003-2015 Free Software Foundation, Inc.
This file is part of GDB.
#include "tui/tui-win.h"
#include "tui/tui.h"
#include "tui/tui-io.h"
-#include "exceptions.h"
#include "infrun.h"
#include "observer.h"
tui_disable ();
}
-/* True if TUI is the top-level interpreter. */
-static int tui_is_toplevel = 0;
-
/* Observers for several run control events. If the interpreter is
quiet (i.e., another interpreter is being run with
interpreter-exec), print nothing. */
static void *
tui_init (struct interp *self, int top_level)
{
- tui_is_toplevel = top_level;
-
/* Install exit handler to leave the screen in a good shape. */
atexit (tui_exit);
return NULL;
}
-/* True if enabling the TUI is allowed. Example, if the top level
- interpreter is MI, enabling curses will certainly lose. */
-
-int
-tui_allowed_p (void)
-{
- /* Only if TUI is the top level interpreter. Also don't try to
- setup curses (and print funny control characters) if we're not
- outputting to a terminal. */
- return tui_is_toplevel && ui_file_isatty (gdb_stdout);
-}
-
static int
tui_resume (void *data)
{