Skip to content

ctrl-z doesn't suspend to background on linux #464

@nonagonal

Description

@nonagonal

I'm using prompt_toolkit v1.0.13 (via IPython 5.2.2) on Ubuntu, and ctrl-z is inserting '^Z' instead of suspending the active process.

I experimented with the prompt_toolkit code a bit, and it seems that in key_binding/bindings/basic.py:

  1. load_basic_system_bindings() is called
  2. suspend_to_background_supported() does return True
    but
  3. for some reason the Control-Z event handler registered in load_basic_system_bindings() is never called (instead the one in registered in load_basic_bindings() is always called).

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