Sensibly format rows with table name on the right. master
authorIain Patterson <me@iain.cx>
Thu, 5 Mar 2015 16:49:21 +0000 (16:49 +0000)
committerIain Patterson <me@iain.cx>
Thu, 5 Mar 2015 16:49:21 +0000 (16:49 +0000)
commitbda8614d4ea61c2f388aeaed699ffc750ea3f3b5
tree57ecbe0b0f30ea2569ea241256a9d895ac50cec6
parent0f802393480cfa99536123ce84d301b31eaf6d46
Sensibly format rows with table name on the right.

Rows were already too long to fit on a standard-width terminal, yet we were truncating names to fit in an arbitrary width.  Instead put the table name on the right and let it fill all available space.
Call ClearLine() after displaying each row so that displaying a shorter row when the display updates will not pollute the side of the screen.
Make sure we don't try to draw lines too low down on the screen.
app/app.go
i_s/processlist/pl_by_user.go
p_s/events_stages_summary_global_by_event_name/private.go
p_s/events_waits_summary_global_by_event_name/private.go
p_s/file_summary_by_instance/private.go
p_s/table_io_waits_summary_by_table/private.go
p_s/table_lock_waits_summary_by_table/private.go