termux / termux-api

Termux add-on app which exposes device functionality as API to command line programs.
https://f-droid.org/en/packages/com.termux.api/
2.28k stars 452 forks source link

Feature request: Hide / Show Keyboard #27

Open Neo-Oli opened 8 years ago

Neo-Oli commented 8 years ago

Hi A command that would allow us to hide and show the software keyboard. termux-keyboard-show / termux-keyboard-hide

This would allow for scripts that automatically go into 'fullscreen' at the start and show the keyboard again when it is done.

Additionally something like termux-keyboard-visible would also be very usefull, to check whether the keyboard is present to begin with. Example:

isKeyboardVisible=$(termux-keyboard-visible)
termux-keyboard-hide
./presentation.sh
if [ $isKeyboardVisible ]; then
  termux-keyboard-show
endif
ghost commented 7 years ago

Scriptlets started from termux-widget should probably start with keyboard hidden?