proper Param scoping, terminalTextToHtml