Advanced, scriptable serial terminal