termux / termux-app

Termux - a terminal emulator application for Android OS extendible by variety of packages.
https://f-droid.org/en/packages/com.termux
Other
34.69k stars 3.65k forks source link

[Feature]: shell cmd to hide soft keyboard #3135

Open xandro0777 opened 1 year ago

xandro0777 commented 1 year ago

Feature description

Plenty of my scripts don't expect any input and hiding the soft keyboard programmatically would help the readability of the script output enormously.

I found hide-soft-keyboard-on-startup=true but it would be nicer if every shell script could hide and pop-up the soft keyboard as it needs it.

Additional information

No idea

MatanZ commented 1 year ago

This feature should be implemented as an escape sequence.

Tabriik commented 1 year ago

Use am start com.termux/com.termux.app.TermuxActivity to relauch termux this causes the soft keyboard to become hidden. You must enable hide-soft-keyboard-on-startup=true property for it to work.