Color reset litters information on onehost list ( onevm function list_short and header_host_small involved). Onevm the same
|Assignee:||Javi Fontan||% Done:|
|Target version:||Release 1.2.1|
The first line of a onevm/onehost list ist littered with the shell color reset:
$ vmhost -l name list | cat -A
This is really nasty if you are using the output with sed or grep.. since the first line would not be identified by - iE - | grep ^172.
By my mean the problem ist:
in the functions header_host_small and header_vm_small, puts @table.header_str returns a newline in the end.
after them scr_restore echoes [[0m and no newline is used.
So if table.header_str could return without newline, or you could to cut this newline an put a new after src_restore .. the output would see like this:
Fixing #99 in 1.2 branch
git-svn-id: http://svn.opennebula.org/one/branches/one-1.2@476 3034c82b-c49b-4eb3-8279-a7acafdc01c0