Simplified bash example.
Basic support of [K, 1K and 2K character codes.