Skip to content

ctrl-c and ctrl-\ do not work #1120

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

Open
dmt4 opened this issue May 25, 2025 · 6 comments
Open

ctrl-c and ctrl-\ do not work #1120

dmt4 opened this issue May 25, 2025 · 6 comments

Comments

@dmt4
Copy link

dmt4 commented May 25, 2025

Hi

Trying to move to rio on linux, noticed it does not seem to handle ctrl-c and ctrl-\ properly.

ctrl-c just prints ^C but does not seem to send sigint to the current application. Similarly ctrl-\ prints ^\ but no signal sent.

ctrl-z seems to work as one would expect.

Is there some configuration option I should try? I tried with empty config, there was no change.

Version 0.2.16-1 from up to date archlinux.

@raphamorim
Copy link
Owner

Hey there,

Weird, do you have any configuration? I tried on my linux with sucess. Also which distro and shell are you using?

@dmt4
Copy link
Author

dmt4 commented May 27, 2025

Hi, thanks for responding!

Using bash on archlinux, this is their package:

https://gitlab.archlinux.org/archlinux/packaging/packages/rio/-/blob/main/PKGBUILD

moved away my config to rule it out.

Just now went a step further and tried it on a newly made account... and it worked well so I should do a bit of investigating myself I guess, maybe there is something in the environment.

@raphamorim
Copy link
Owner

a-ha! ok that's interesting! so it works in other account but not in one account?

@dmt4
Copy link
Author

dmt4 commented May 27, 2025

Ok, it was partially my doing but I think there is still something to look into. The issue occurs if rio is launched from a script which then exits, here is a minimal example:

#!/bin/bash
rio &

rio then does not handle ctrl-c and ctrl-\ properly. I tried with other terminals (alacritty, konsole) just now and they work in that scenario.

--
If you wonder why would I bother launching from a script, it is to try to emulate the behaviour of yakuake as much as I can and wrote a small script to do it.

@raphamorim
Copy link
Owner

ahh good catch, that make sense. I will try to reproduce locally tomorrow

@dmt4
Copy link
Author

dmt4 commented May 29, 2025

A small update, if I do exec rio instead of rio & in the above things seems to work as expected.

In case anyone else runs into this, it may be a viable workaround.

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

2 participants