Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
BenceBakos opened this issue Apr 21, 2021 · 0 comments
Open

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

BenceBakos opened this issue Apr 21, 2021 · 0 comments

Comments

@BenceBakos
Copy link

BenceBakos commented Apr 21, 2021

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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant