• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. what is the syntax for xmodmap command ?

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 13114
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

what is the syntax for xmodmap command ?

GiriBabu
GiriBabu over 13 years ago

 hi all,

I saw a script in cadence doccuments which is used to set bindkeys for number keys in num lock keypad.  When iam exicuting that in my icfb then it shows error. Script is in below. What's the problem in it?

 

xmodmap -e "add Mod3 =KP_0 KP_1 KP_2 KP_3 KP_4 KP_5 KP_6 KP_7 KP_8 KP_9"

(*Error* eval: undefined function - xmodmap)

xmodmap -pm

 (*Error* eval: undefined function - xmodmap)

;------

;mod3        KP_0 (0x5a),  KP_1 (0x57),  KP_2 (0x58),  KP_3 (0x59),  KP_4 (0x53),  KP_5 ;(0x54),  KP_6 (0x55),  KP_7 (0x4f),  KP_8 (0x50),  KP_9 (0x51)

;------


;Then set the DFII bindkeys as:

hiSetBindKey( "Command Interpreter" "Shift<Key>KP_1" "printf( \"hello1\")")

;the above setting is for NumLock: ON

 

hiSetBindKey( "Command Interpreter" "<Key>KP_1" "printf( \"helloEnd\")")

;the above setting is for NumLock: OFF

 

hiSetBindKey( "Command Interpreter" "Shift<Key>KP_8" "printf( \"hello8\")")

;the above setting is for NumLock: ON

 

hiSetBindKey( "Command Interpreter" "<Key>KP_8" "printf( \"helloUp\")")

;the above setting is for NumLock: OFF

 

;If the xmodmap output is like below, you would need to set the bindkeys a bit differently:

;$ xmodmap -pm

;-----

;mod3        KP_Insert (0x5a),  KP_End (0x57),  KP_Down (0x58),  KP_Next (0x59),  KP_Left (0x53),  KP_Begin (0x54),  KP_Right (0x55),  KP_Home (0x4f),  KP_Up (0x50),  KP_Prior (0x51)

;------

 

;Then set the DFII bindkeys as:

 

hiSetBindKey( "Command Interpreter" "Shift<Key>KP_End" "printf( \"hello1\")")

;the above setting is for NumLock: ON

 

hiSetBindKey( "Command Interpreter" "<Key>KP_End" "printf( \"helloEnd\")")

;the above setting is for NumLock: OFF

 

hiSetBindKey( "Command Interpreter" "Shift<Key>KP_Up" "printf( \"hello8\")")

;the above setting is for NumLock: ON

 

hiSetBindKey( "Command Interpreter" "<Key>KP_Up" "printf( \"helloUp\")")

;the above setting is for NumLock: OFF

;=======================================

Thank you,

venu

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    Not entirely sure what you're trying to achieve here, but xmodmap is a UNIX command, not something to type in the CIW. See "man xmodmap" for more details.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    Not entirely sure what you're trying to achieve here, but xmodmap is a UNIX command, not something to type in the CIW. See "man xmodmap" for more details.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information