← 输入框|github.com|刷新
Skip to content

Impossible to go back to prompt after entering "help()" #113

Closed

Description

@bittner

When you enter help() in the interactive shell you get a screen that looks like this:

...

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules.  To quit this help utility and
return to the interpreter, just type "quit".

To get a list of available modules, keywords, or topics, type "modules",
"keywords", or "topics".  Each module also comes with a one-line summary
of what it does; to list the modules whose summaries contain a given word
such as "spam", type "modules spam".

help>

From this screen it's impossible to go back to the interactive prompt that allows you to enter commands. You can move the cursor prompt using the mouse, but not using the keyboard's arrows keys. It seems like the key strokes are being captured by the interactive help> screen.

It should be possible to exit from this screen, just like it is when using the "real" Python interpreter.

Activity

  1. cool-RR commented on Sep 25, 2018

    @cool-RR
    Member
  2. bittner commented on Sep 25, 2018

    @bittner
    MemberAuthor

    Similar with exit(), by the way. Alright, let's deal with it at due time.

  3. bittner commented on Sep 26, 2018

    @bittner
    MemberAuthor

    Also, license() turns out to have the same behavior as help(). That needs to be mitigated, too.

  4. added a commit that references this issue on May 24, 2022
    a455ef5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions