Skip to content

<F8> Pastebin can't handle 'ESC' key #123

@ikanobori

Description

@ikanobori

It appears that, after pressing F8, a confirm message asks you for nopasting buffer.

But this message, which calls the CLIIntercation.confirm method, can't handle non-literal chars, like ESC, F1, F2, F3, ↑, →, ↓, etc. raising ValueError. Down here there's the traceback:

File ".../repl.py", line 681, in pastebin

not self.interact.confirm("Pastebin buffer? (y/N) ")):

File "..../cli.py", line 240, in confirm

return self.statusbar.prompt(q).lower().startswith('y')

File ".../cli.py", line 1422, in prompt

raise ValueError

ValueError


Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions