• 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. Termination of enterline() function

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 6223
  • 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

Termination of enterline() function

kdolan
kdolan over 2 years ago

Hi, 

I'm trying to utilize the enterLine command to allow a user to input X amount of points, and then terminate to command. 

With the code below, I can capture the entered points, and use the outputted list of points in the doneProcedure. However, the enterLine command remains active afterwards, as if it it waiting for me to enter another set of points. To get out of this, I'm forced to use the 'Esc' key.

However, is there a way in which I can escape the enterLine function completely, after the doneProcedure is executed? I tried using the cancelEnterFun() but it doesn't seem to do what I want it to do. 

Any thoughts?

Thanks,

Keelan

procedure( myTestproc()

enterLine( ?doneProc "doneProcedure" )

)

procedure( doneProcedure(a b c)

printf("\nPoints: %L" c)

cancelEnterFun()

)

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 2 years ago

    Keelan,

    What's happening here is that the "repeat commands" choice in the editor (the modalCommands env var) is causing the command to repeat automatically. I've long wished that this is something that could be easily overridden as an argument to the enter* enter functions, but it isn''t. You can however see an example of where I wrapped an enter function to temporarily turn off modalCommands and then back on again (if it was on before) afterwards. You might still want to use the ?doneProc in your use model - but hopefully you can get the idea from my other post.

    Regards,

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • kdolan
    kdolan over 2 years ago in reply to Andrew Beckett

    Hi Andrew, perfect response and the exact info I was searching for. Appreciate the help as always,

    Keelan

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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