Use character literal in comparison
Add constants for common terminal codes
Add constants for IEEE-488 lines