title: Can I determine if the terminal interprets the C1 control codes?
body: <p>ISO/IEC 2022 defines <a href="http://en.wikipedia.org/wiki/C0_and_C1_control_codes" rel="noreferrer">the C0 and C1 control codes</a>.  The C0 set are the familiar codes between <code>0x00</code> and <code>0x1f</code> in ASCII, ISO-8859-1 and UTF-8 (eg. <kbd>ESC</kbd>, <kbd>CR</kbd>, <kbd>LF</kbd>).</p>
  
  <p>Some VT100 terminal emulators (eg. <code>screen(1)</code>, PuTTY) support the C1 set, too.  These are the values between <code>0x80</code> and <code>0x9f</code> (so, for example, <code>0x84</code> moves the cursor down a line).</p>
  
  <p>I am displaying user-supplied input.  I do not wish the user input to be able to alter the terminal state (eg. move the cursor).  I am currently filtering out the character codes in the C0 set; however I would like to conditionally filter out the C1 set too, if terminal will interpret them as control codes.</p>
  
  <p>Is there a way of getting this information from a database like <code>termcap</code>?</p>