binutils-gdb/gdb/tui
Andrew Burgess 9a6d629ccf gdb/tui: Place window titles in the center of the border
In tui-wingeneral.c:box_win () a comment suggest we should display
titles like this:

  +-WINDOW TITLE GOES HERE-+

However, we actually display them like this:

  +--WINDOW TITLE GOES HERE+

The former seems nicer to me, so that's what this commit does.  Short
titles will appear as:

  +-SHORT TITLE------------+

We previously didn't test the horizontal windows borders in the test
suite, however, I've updated things so that we do now check for the
'+-' and '-+' on the upper border, this will give us some protection.

gdb/ChangeLog:

	* tui/tui-wingeneral.c (box_win): Position the title in the center
	of the border.

gdb/testsuite/ChangeLog:

	* lib/tuiterm.exp (Term::_check_box): Check some parts of the top
	border.

Change-Id: Iead6910e3b4e68bdf6871f861f23d2efd699faf0
2020-01-13 22:56:48 +00:00
..
ChangeLog-1998-2003
tui-command.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tui-command.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tui-data.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tui-data.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tui-disasm.c GDB: Fix the overflow in addr/line_is_displayed() 2020-01-06 19:47:20 +00:00
tui-disasm.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tui-file.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tui-file.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tui-hooks.c gdb: add back declarations for _initialize functions 2020-01-13 14:01:38 -05:00
tui-hooks.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tui-interp.c gdb: add back declarations for _initialize functions 2020-01-13 14:01:38 -05:00
tui-io.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tui-io.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tui-layout.c gdb: add back declarations for _initialize functions 2020-01-13 14:01:38 -05:00
tui-layout.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tui-out.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tui-out.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tui-regs.c gdb: add back declarations for _initialize functions 2020-01-13 14:01:38 -05:00
tui-regs.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tui-source.c gdb/tui: Link source and assembler scrolling .... again 2020-01-09 23:11:47 +00:00
tui-source.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tui-stack.c gdb: add back declarations for _initialize functions 2020-01-13 14:01:38 -05:00
tui-stack.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tui-win.c gdb: add back declarations for _initialize functions 2020-01-13 14:01:38 -05:00
tui-win.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tui-wingeneral.c gdb/tui: Place window titles in the center of the border 2020-01-13 22:56:48 +00:00
tui-wingeneral.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tui-winsource.c Make TUI borders respect "set style enabled" 2020-01-11 12:24:03 -07:00
tui-winsource.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tui.c gdb: add back declarations for _initialize functions 2020-01-13 14:01:38 -05:00
tui.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00