"spectre -help" without page scrolling...

Discussion in 'Cadence' started by spectrallypure, Sep 30, 2008.

  1. Hi all!
    Does anybody know if its possible to force Spectre in command line
    mode to show the help contents without the automatic page scrolling?

    spectre -help <keyword>

    would automaticallly wait for the user input to scroll through the
    help contents, which prevents the text output from being passed to
    other commands. The help pages for some topics can be rather long, and
    very often I would like to have the text being output in one chunk so
    as to pass it to the "grep" command and search for specific words.

    ....I have searched in the command line options but found nothing...
    any ideas on how to accomplish this?

    Cheers,

    Jorge.
     
    spectrallypure, Sep 30, 2008
    #1
  2. spectrallypure

    Marc Heise Guest


    spectre -help <keyword> | more

    Regards,
    Marc
     
    Marc Heise, Sep 30, 2008
    #2
  3. spectrallypure

    prime_number Guest

    Workoround: redirect the output to a file an play with it:

    $ spectre -help bsim3v3 > spectre-help.bsim3v3

    $ cat spectre-help.bsim3v3

    $ grep channel spectre-help.bsim3v3

    etc.

    PN
     
    prime_number, Sep 30, 2008
    #3
  4. spectrallypure

    S. Badel Guest

    Jorge,

    Typically a pager formats the output ONLY if the standard output is a terminal. This means that if
    you redirect the output to anything (a file or a pipe) it will simply output the text without any
    formatting.

    Try 'spectre -h | cat' to observe that.

    The bottomline is, you can pipe the output of spectre to grep without any problem.

    Cheers,
    Stéphane
     
    S. Badel, Sep 30, 2008
    #4
  5. I didn't know it! ...should have tried piping directly before
    posting... sorry! :)

    Thanks everybody!

    Cheers,
    Jorge.
     
    spectrallypure, Sep 30, 2008
    #5
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.