cea-hpc/milkcheck

Bad running action display when list is wider than terminal

Closed this issue · 0 comments

When the running action list is very large, and the resulting line is wider than the Terminal, it is not cleaned and resulting display is wrong.

[root@foo0 ~] # milkcheck status 
[filesystems,login-master,mkfstree-master,ospfd,robinhood-master,slurm,spom-
mast[ccccrond,filesystems,login-master,mkfstree-master,ospfd,robinhood-master,slurm,
[ccc_bridged,ccccrond,filesystems,login-master,mkfstree-master,ospfd,robinhood-
[ccc_bridged,ccccrond,filesystems,ibms-master,login-master,mkfstree-
master,ospfd[ccc_bridged,ccccrond,filesystems,ibms-master,login-master,mkfstree-
master,opens[ccc_bridged,ccccrond,filesystems,ibms-master,login-master,mkfstree-
master,opens[ccc_bridged,ccccrond,ceanfs,filesystems,ibms-master,login-
master,mkfstree-maste[ccc_bridged,ccccrond,ceanfs,filesystems,ibms-master,login-
master,mkfstree-maste[ccc_bridged,ccccrond,ceanfs,filesystems,ibms-master,login-
master,mgs2,mkfstree-master,opensm-master,ospfd,prace-master,robinhood-
master,scratch3,slurm,spom-mas[ccc_bridged,ccccrond,ceanfs,filesystems,ibms-
master,login-master,mgs2,mkfstree-master,opensm-master,ospfd,prace-
master,robinhood-master,scratch3,slurm,spom-mas