bpython / curtsies

Curses-like terminal wrapper with a display based on compositing 2d arrays of text.
MIT License
228 stars 52 forks source link

Enable ctrl+c, ctrl+s keyboard events #163

Open BenceBakos opened 3 years ago

BenceBakos commented 3 years ago

In my application, i had to do the following things:

import subprocess
import shlex

def init_application():
    subprocess.run(shlex.split("stty -ixon"))
    subprocess.run(shlex.split("stty -ixoff"))
    subprocess.run(shlex.split("stty -isig"))

To enable a couple of essential keyboard events (ctrl+c,ctrl+s).

This information may be useful in https://github.com/bpython/curtsies/blob/master/docs/Input.rst at "notes".