Coding style fixes
Minor refactor in TermWidget