New revision : https://github.com/jb-boin/mariadb/commit/468c3508960ae78b7f062ad9b5da9c5b7721be40
- Added dynamic column width for the User and DB columns (can be either set by configuration on ~/.mytop with usercol_with=X and dbcol_width=X or by argument at execution with --usercol_width X and --dbcol_width X or by pressing "w" key while mytop is running). The columns cannot be completely removed (yet) but can be set to a minimum width of their header width (4 and 2 chars).
- Progression display is now showing the actual stage and max_stage at the beginning of the state column on queries with more than 1 stage.
- The first letter of the queries (Info column) is now uppercase for a better readability when long string are in the "State" column as there is only a space between the two columns.
Putting the first query letter uppercase is not be the best way to go but it is the most simple fix at the moment, i will try to make the State column variable in width such as the User and DB ones and try to see if putting the Time and/or % columns between the State and the Info columns would be better in readability without having to add spaces between the columns.
I will try to add the possibility to completely hide columns and maybe add a removable one for the progress/stage/stage_max.
Another thing to do would be to show something else than 0.0% of completion on queries where it is unrelevant.
Another idea would be to put some columns on a variable width, to resize the column to the longest value width if shorter than the column max width to spare some space.
Looked at diff, emailed Mark Grennan to ask him to accept it into mytop upstream.