use terminfo in pkg/jsonmessage Upstream-commit: 2c948ac3e6b3b1440c5583cfa9d2c581e96280eb Component: engine