VT support for cmdmod  (review with care !)

cc @thatch45