-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 not working on root's BASH shell #1156
Comments
What is output of |
This points that issue is not Termux-specific. Especially when you use old third-party bash version and it affected by same issue. No changes were done in bash packages recently (just rebuild). Also, nothing was changed in terminal emulation. |
Why its closed? The issue started without modifying anything on the third-party bash, and affect both bash version including the lastest one comes with termux-app. So, its not bash's version specific. Its bash as root user. |
|
Forgot add. I use both versions of bash binaries within the termux itself via |
@seffparker try re-rooting/updating su. The problem probably lies in your su variant. Does ctrl + c work from a su bash shell in other terminal apps? |
Your stty output is correct so possible problems only:
I suggest you to try command |
You guys are correct. I have exact issue on terminal elmulator too. So, it must be with su as you stated. btw, I use latest Magisk 19.3 |
Problem description

As the title states, the ctrl+c interrupt doing nothing in BASH shells running as root user.
Tried all three methods, volkey+c, termux alt keyboard, hackers keyboard. None works in root's bash. There were no issues later, this only started recently.
All methods works in root's sh shell, and non-root's bash shell.
Tried termux builtin BASH (v5) and a third-party bash (v4). Same issue on both.
Trid toggling SeLinux, no luck.
Steps to reproduce
su as root user to a BASH (not sh) shell and run any command that require an interrupt or just type a command name without pressing ENTER key, and then hit ctrl+c
Expected behavior
ctrl+c send interrupt and leaves the process.
Additional information
$ termux-info
Updatable packages:
All packages up to date
Subscribed repositories:
https://dl.bintray.com/grimler/termux-root-packages-21 root/stable
https://termux.net stable/main
https://termux.net stable/main
System information:
Linux batmobile 4.9.112-perf-gf165f5d #1 SMP PREEMPT Wed Apr 3 16:46:50 WIB 2019 aarch64 Android
Termux-packages arch:
aarch64
Android version:
9
Device manufacturer:
Xiaomi
Device model:
POCO F1
The text was updated successfully, but these errors were encountered: