diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2001-07-21 19:44:38 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2001-07-21 19:44:38 +0000 |
commit | af101512330aa06212f39e1af3691f8da8158692 (patch) | |
tree | 236201fe89831c633a695dfd822f04edc6e567cb /gdb/tui/tuiGeneralWin.c | |
parent | 56347833653a3fa317f87261d50cfc05935b3c77 (diff) | |
download | gdb-af101512330aa06212f39e1af3691f8da8158692.zip gdb-af101512330aa06212f39e1af3691f8da8158692.tar.gz gdb-af101512330aa06212f39e1af3691f8da8158692.tar.bz2 |
* tuiGeneralWin.c (boxWin): Use the tui configuration variables.
* tuiWin.h: Declare the new variables.
* tuiWin.c (_initialize_tuiWin): Create TUI configuration variables.
(tui_update_variables): New function.
(translate): New function.
(tui_border_kind_enums, tui_border_mode_enums): New tables.
(tui_border_mode_translate): New table.
(tui_border_kind_translate_*): New tables.
(tui_active_border_mode): New variables.
(tui_border_*): New variables.
Diffstat (limited to 'gdb/tui/tuiGeneralWin.c')
-rw-r--r-- | gdb/tui/tuiGeneralWin.c | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/gdb/tui/tuiGeneralWin.c b/gdb/tui/tuiGeneralWin.c index 6535f91..8ec54fe 100644 --- a/gdb/tui/tuiGeneralWin.c +++ b/gdb/tui/tuiGeneralWin.c @@ -23,7 +23,7 @@ #include "tui.h" #include "tuiData.h" #include "tuiGeneralWin.h" - +#include "tuiWin.h" /* ** local support functions @@ -84,26 +84,29 @@ tuiDelwin (WINDOW * window) } /* tuiDelwin */ -/* - ** boxWin(). - */ +/* Draw a border arround the window. */ void boxWin (TuiGenWinInfoPtr winInfo, int highlightFlag) { - if (m_genWinPtrNotNull (winInfo) && winInfo->handle != (WINDOW *) NULL) + if (winInfo && winInfo->handle) { + WINDOW *win; + int attrs; + + win = winInfo->handle; if (highlightFlag == HILITE) - box (winInfo->handle, '|', '-'); + attrs = tui_active_border_attrs; else - { -/* wattron(winInfo->handle, A_DIM); */ - box (winInfo->handle, ':', '.'); -/* wattroff(winInfo->handle, A_DIM); */ - } + attrs = tui_border_attrs; + + wattron (win, attrs); + wborder (win, tui_border_vline, tui_border_vline, + tui_border_hline, tui_border_hline, + tui_border_ulcorner, tui_border_urcorner, + tui_border_llcorner, tui_border_lrcorner); + wattroff (win, attrs); } - - return; -} /* boxWin */ +} /* |