add support for st terminal
reindent code