Skip to content

Allow specifying more exit codes as successful for character module #6301

Open
@nelchael

Description

Feature Request

Is your feature request related to a problem? Please describe.

No, not related to a problem.

Describe the solution you'd like

Allow specifying more exit codes as "success" for the purpose of rendering the character style.

When a process is suspended using ^Z key combo the shell receives an exit code of 148, this comes from adding the SIGTSTP (20) to 128 (see https://www.gnu.org/software/libc/manual/html_node/Job-Control-Signals.html#index-SIGTSTP and https://tldp.org/LDP/abs/html/exitcodes.html for detailed information). I'd like to render the character module as a success in those cases. As this is just a personal preference I'd opt for adding a new configuration option that anyone can use to customize this aspect and add whatever exit codes should be regarded as a success by the character module.

Describe alternatives you've considered

status module, but it's way more than just success/failure indicator like character.

Activity

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions