title: How can I detect Gnome Terminal?
body: <p>I am writing a console application which makes use of the F1 key (for help).  Unfortunately, while Konsole (of KDE) doesn't use this key, Gnome Terminal does, so the F1 key becomes inaccessible to my application.  I don't think there's a way to detect whether the F1 key is already mapped in the GUI side of things (Gnome Terminal), but if there is, the answer to that will obviate this question.  :)</p>
  
  <p>Ergo, my next best bet is to try to detect whether I am running inside Gnome Terminal.  Is there some way to do that?  I'm primarily interested in gleaning this from within Ruby, but if it can be done via shell or environment variables, or virtual filesystem (/proc, /dev, etc.) then that will suffice.</p>
  
  <p>I'm hoping for a reliable way to do this, but I can settle for "best guess" approaches like grepping the environment variables for clues that can let me reasonably assume that Gnome Terminal is the wrapping terminal.</p>
  
  <p>Extra info: other keys are also "stolen" by Gnome Terminal.  I intend to display some sort of informative message about alternative keys for Gnome users.</p>