VT support for cmdmod  (review with care !)

cc @thatch45 
This is the `output_loglevel` reference defaulting to info that I was talking about.