SKILL: Function to identify OS or computer?

Discussion in 'Cadence' started by Edward Dodge, Nov 12, 2006.

  1. Edward Dodge

    Edward Dodge Guest

    I'm trying to modify my bindkey file so that it tests what kind of
    system is loading it. Based on that, I'll write some extra code that
    changes the ESC-key to "Meta" if it's on a Sun/Solaris and "Alt"
    otherwise. Anyone know of such a function or have a nice, elegant way
    to get around this?

    Thanks in advacne,

    Edward
     
    Edward Dodge, Nov 12, 2006
    #1
  2. Suresh Jeevanandam, Nov 13, 2006
    #2
  3. Edward Dodge

    Guest Guest

    Starting in IC 6.1.0 you should use hiBindKeyModifiers(), which is a supported
    public function.

    Note, though, that starting in IC 6.1.0 Alt is by default dedicated to menu
    shortcut access and is not available for "normal" key bindings unless menu
    shortcuts are disabled (using the ui.enableMenuShortcuts .cdsenv variable).
    Alt will continue to be legal for function keys and mouse buttons, though.

    -Pete Z.
     
    Guest, Nov 14, 2006
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.