Skip to content

Feature request: ^C & ^Z key bindings for BASH SIGINT & SIGTSTP; F5 alias to ^R #128

@iconoclasthero

Description

@iconoclasthero

Current:

^C: refers user to ^Q
^Z: no response
F5: no response

Desired:

Control-C:

I'd like to be able to use ^C for SIGINT (instead of ^Q) so that I can continue to use the same keybinding for quitting as 99% of other applications. I'm not sure if this is a Python thing or not because I notice that e.g., pulsemixer has an issue with ^C to quit, but I assume that just needs to handle the error instead of displaying it on the CLI. (The pulsemixer traceback File "~/.local/bin/pulsemixer", line 1243, in <lambda> signal.signal(signal.SIGINT, lambda s, f: self.terminate()) strongly suggests that signal.SIGINT can be used in Python.)

Control-Z:

I'd like to be able to use ^Z to suspend/SIGTSTP frogmouth, again like most other application. Using pulsemixer as an example, it can be suspended so this is presumably not inherently a limitation of Python.

F5/Control-F5:

Alias to existing ^R binding for people used to using that in browsers.

Rationale:

As in-line above, the standard key to exit a program is ^C not ^Q. It's the standard.
Suspend support should be virtually universal for CLI/TUI applications. E.g., nano's default ^T^Z makes sense only if one wants to use ^Z for undo (instead of the older default of ^U like it was on pine 30+ years ago). But even then, it's still ultimately ^Z.
Since I'm asking anyway, I'll throw in ^F5 because I keep hitting that for refresh instead of ^R.

NB:

I use ^C/^Z because the convention is to use caps, however, I am referring to control-c/z, not control-shift-c/z or control-C/Z, though they should probably be case insensitive.

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