Fix passing escape sequences directly to terminal
Text copy of rfc 2812
Simple test framework and template