Cross-platform scriptable serial terminal