ewaters / altsql-shell

An easily extensible DBI shell, perfect for a drop-in replacement to mysql-client
http://ewaters.github.com/altsql-shell
123 stars 19 forks source link

Multi-line per row wide output #16

Open ewaters opened 12 years ago

ewaters commented 12 years ago

Rather then requiring wide output to be horizontally scrolled, there are a few options to format wide data on a narrow screen. This is one of them. Find a way to wrap the cells of a row in a sane fashion. Here's a very simple example:

.----+---------------------.
| id | ts                  |
| log                      |
+----+---------------------+
| 1  | 2012-04-16 12:34:16 |
| blakblkj welkjwe         |
+----+---------------------+
| 2  | 2012-04-16 16:30:43 |
| Eric was here            |
+----+---------------------+
| 3  | 2012-04-16 16:31:43 |
| Eric was here again      |
'--------------------------'