Skip to content

Can command line options be enforced by a plugin? #9618

Answered by jeffwright13
jeffwright13 asked this question in Q&A
Discussion options

You must be logged in to vote

For anyone following this question, I found the answer by adapting the code from this post to my own specific use.

    capmanager = config.pluginmanager.getplugin("capturemanager")
    try:
        capmanager.suspend_global_capture(in_=True)
    finally:
        tui_asciimatics() if tui == "asciimatics" else tui_textual()  # <== code that screws with terminal
        capmanager.resume_global_capture()

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jeffwright13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant