Fixes for the prompt UI construction of the tables.
The top line was sometimes one '_' character too long. Now the correct table width is calculated as it may not always match status.text_width.
Authored by: bugman 2012-06-02
Parent: [r16601]
Child: [r16603]