* tui.h (tui_show_assembly): Declare.

(tui_is_window_visible): Declare.
	* tui.c (tui_show_assembly): New function.
	(tui_is_window_visible): New function.
	(tui_get_command_dimension): New function.
This commit is contained in:
Stephane Carrez 2001-07-21 22:24:44 +00:00
parent 3e266828da
commit 1403b519de
3 changed files with 43 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* tui.h (tui_show_assembly): Declare.
(tui_is_window_visible): Declare.
* tui.c (tui_show_assembly): New function.
(tui_is_window_visible): New function.
(tui_get_command_dimension): New function.
2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* tuiWin.c (tuiRefreshAll): Use clearok to force a refresh.

View File

@ -385,3 +385,35 @@ _tuiReset (void)
} /* _tuiReset */
#endif
void
tui_show_assembly (CORE_ADDR addr)
{
tuiAddWinToLayout (DISASSEM_WIN);
tuiUpdateSourceWindowsWithAddr (addr);
}
int
tui_is_window_visible (TuiWinType type)
{
if (tui_version == 0)
return 0;
if (winList[type] == 0)
return 0;
return winList[type]->generic.isVisible;
}
int
tui_get_command_dimension (int *width, int *height)
{
if (!tui_version || !m_winPtrNotNull (cmdWin))
{
return 0;
}
*width = cmdWin->generic.width;
*height = cmdWin->generic.height;
return 1;
}

View File

@ -92,6 +92,9 @@ TuiPoint, *TuiPointPtr;
/* tui.c */
extern void tuiFree (char *);
extern CORE_ADDR tuiGetLowDisassemblyAddress (CORE_ADDR, CORE_ADDR);
extern void tui_show_assembly (CORE_ADDR addr);
extern int tui_is_window_visible (TuiWinType type);
extern int tui_get_command_dimension (int *width, int *height);
/* Initialize readline and configure the keymap for the switching
key shortcut. */