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

Ctrl+C terminus behaviour different than spawned terminal #27

Open
brupelo opened this issue Jul 20, 2018 · 6 comments
Open

Ctrl+C terminus behaviour different than spawned terminal #27

brupelo opened this issue Jul 20, 2018 · 6 comments

Comments

@brupelo
Copy link

brupelo commented Jul 20, 2018

For instance, when pressing ctrl+c on cmd.exe or similar terminals (conemu, cygwin, msys, ...) you'd get a behaviour like this, is there any chance to emulate the same behaviour with terminus?

@randy3k
Copy link
Owner

randy3k commented Jul 20, 2018

I believe the standard way to cancel in cmdd.exe is the esc key, isn’t it? We need to send ctrl-c as ctrl-c to support things like wsl. If you do not use wsl, you might remap ctrl-c to esc.

Update: Maybe an issue upstream? rprichard/winpty#116

@depthdev
Copy link

depthdev commented Nov 8, 2018

I'd like the CTRL+c to also kill the current process (and create the new line like @brupelo showed) instead of having to declare with a Y that I want to Terminate batch job (Y/N)? after hitting CTRL+c.

If it needs to be the current way, I'm still okay with that, but it would be nice to mimic fully the normal interaction of that keybinding.

@depthdev
Copy link

depthdev commented Nov 8, 2018

BTW, I am very excited about this terminal integration for Sublime on Windows!

@randy3k
Copy link
Owner

randy3k commented Nov 8, 2018

I believe that it is a default behavior to show Terminate batch job if ctrl+c is pressed while running a batch file, or isn't

The problem of ctrl+c for not resetting the prompt is an upstream issue, we could only pray that the upstream author to fix the issue.

@depthdev
Copy link

depthdev commented Nov 8, 2018

Ah, I guess I was narrowly viewing it as just a hosted terminal. Thanks @randy3k . And awesome work!!

@randy3k
Copy link
Owner

randy3k commented Nov 8, 2018

Ah, from what I read from rprichard/winpty#116, the upstream issue has already been fixed, but it is not yet released. Let's wait for the releases of winpty and pywinpty.

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

3 participants