termux-app
termux-app copied to clipboard
Fullscreen / immersive mode option is gone
Hi,
first of all, thanks to all working on this amazing android application. It is really great to being able to run my complete work environment on my phone.
I have noticed that fullscreen option was missing, I have looked at recent commits and it looks that it was removed from sources. Is there other way how to achieve the same result? Or could we keep it for users who use it? I for myself can live with its quirks, but without it, I get that annoying bar with clock and virtual buttons on the screen taking precious pixels from the important content.
Is there a way how to get it back? Thanks!
It worked for you? It never changed anything on my LG Lollipop 5.1.1 arm device. I was interested in the feature at one point, but decided that stuff comes in useful when the unexpected happens.
@kracejic Just to check, you're running with a hardware keyboard right?
@Quasic Yes, it worked for me. Both on Android 6 and on 7. Sometimes I had to toggle software keyboard. Like I wrote, it had some quirks. :) But for me, it was still well worth it. I don't like wasted pixels, especially on the small screens.
@fornwall Yes, I am using HW keyboard, either bluetooth one, or USB one through USB adapter. Thanks to this great app I do not see reason to buy notebook anymore, since I live mostly in shell anyway.
Toggling the keyboard and extra keys never worked for me, but I wouldn't be opposed to its reintroduction as a beta feature or something.
@Quasic That would be very nice.
Me too fullscreen option is gone. Device: Nexus 6, Android 7.1.1
Me too, starting today. HP Chromebook 13, running Android apps on the Beta channel of Chrome OS
Full screen mode works well in version https://f-droid.org/repo/com.termux_56.apk https://f-droid.org/repo/com.termux_56_src.tar.gz downgrading should work, but it doesn't out-of-the box. So reinstalling is the only option at present for those that do not build Termux to get immersive mode.
Using Immersive Full-Screen Mode https://developer.android.com/training/system-ui/immersive.html mentions at least three immersive mode option methods from sample apps about immersive mode, see Android ImmersiveMode Sample, Android BasicImmersiveMode Sample, and Android AdvancedImmersiveMode Sample. Are there any preference of one of these methods over the others for Termux?
After reviewing the cited page on developer.android.com, as well as the DevBytes video linked from there, I think the regular immersive mode (non-sticky) makes sense. The thing that most helped me make a choice was right at the very end of the video, where they mention example use cases: to me, termux seems most like the book reader use case.
Having said that, I would be content with either option.
Thanks for asking!
On Sun, Jan 14, 2018 at 12:12 AM, S D Rausty [email protected] wrote:
Using Immersive Full-Screen Mode https://developer.android.com/ training/system-ui/immersive.html mentions at least three immersive mode option methods from sample apps about immersive mode, see Android ImmersiveMode Sample https://github.com/googlesamples/android-ImmersiveMode/, Android BasicImmersiveMode Sample https://github.com/googlesamples/android-BasicImmersiveMode/, and Android AdvancedImmersiveMode Sample https://github.com/googlesamples/android-AdvancedImmersiveMode/. Are there any preference of one of these methods over the others for Termux?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/termux/termux-app/issues/507#issuecomment-357495522, or mute the thread https://github.com/notifications/unsubscribe-auth/Ae8LYUJpSHOFub8L_yuyveqip8vYnP7qks5tKbcKgaJpZM4RBSR- .
I second the desire to re-add the full screen option. I am using it a lot, was very surprised when I couldn't find it anymore. And yes, I use termux with a hardware keyboard. The extra screen space I get by eliminating notification bar and icons is very welcome.
Yes! Full screen Termux please!
As an immediate workaround, one can impose fullscreen on termux via adb using the following commands:
adb shell settings put global policy_control immersive.full=com.termux
or (to leave onscreen virtual nav buttons in place on the bottom)
adb shell settings put global policy_control immersive.status=com.termux
@absurd how is this supposed to work on device in Termux?
[04:45 home ]$ adb shell settings put global policy_control immersive.full=com.termux
bash: adb: command not found
[04:48 home ]$
[04:48 home ]$ e
$ adb shell settings put global policy_control immersive.full=com.termux
No command 'adb' found, did you mean:
Command 'ab' from package 'apache2'
More:
[04:45 home ]$ pcss adb
extra/galera 25.3.23-1
write set replication (WSREP) provider for MariaDB cluster
extra/libmariadbclient 10.1.31-1
MariaDB client libraries
extra/mariadb 10.1.31-1
Fast SQL database server, drop-in replacement for MySQL
extra/mariadb-clients 10.1.31-1
MariaDB client tools
extra/mobile-broadband-provider-info 20170310-1 [installed]
Network Management daemon
extra/modemmanager 1.8rc1+6+g0f377f94-1
Mobile broadband modem management service
extra/mytop 10.1.31-1
Top clone for MariaDB
extra/perl-file-readbackwards 1.05-3
read a file backwards by lines
community/deadbeef 0.7.2-1
A GTK+ audio player for GNU/Linux.
community/innotop 1.11.4-2
A powerful "top" clone for MySQL (MariaDB)
community/percona-server 5.7.21_20-1
Drop-in replacement for MySQL that provides improved performance, diagnostics, instrumentation
and TokuDB storage engine
community/percona-server-clients 5.7.21_20-1
Percona Server client tool
How is adb
supposed to work on device?
Posted 2x because of Android reboot+multiple corrections because of Android misscorrections.
@sdrausty adb is the Android Debug Bridge which runs on an external computer hooked up to the mobile device via usb, so that code snippet is actually run from, say, terminal on your laptop. To my knowledge adb can't run on device without root.
Be advised that the hack is a little janky-- if onscreen keyboard is invoked then it will occlude the termux view rather than the latter resizing itself to make room for the keyboard. You can put things back to normal via adb shell settings put global policy_control immersive.off=com.termux
to remedy this.
I'll occasionally still do this if I'm in for a long vim writing session in the dark and want for my phone's oled black level and no status bar, but for the above reason it's not a particularly good solution.
Thanks for the quick response @absurd; What you just shared is in line with gradle
not working on device as well as adb
. This is absurd; They give us dumb Androids that want to know everything about us (think login & Android Wear). When the user tries to make their Android smarter, whoaa:
- https://github.com/termux/termux-packages/issues?&q=%22Android+8%22
- https://github.com/termux/termux-app/issues?&q=%22Android+8%22
- https://github.com/sdrausty/TermuxArch/issues?&q=%22Android+8%22
- https://github.com/termux/proot/issues?&q=%22Android+8%22
&& more...
Android could be a friendly operating system that is intelligent. Why is Android so dumbed down? What gives open source the right to take away root user?
+1 I miss full screen termux feature as well. It makes me sad that I can no longer maximize my screen real estate as I live in the terminal for most of my work as well.
God forbid this feature was intentionally removed as part of the business model of termux (like style, widget, float, etc..) Scruples aside, FWIW I would pay $2 for that, just make it so!
A comparison of screen real estate
Screenshot 1, Termux v0.59
Screenshot 2, Termux v0.56
Same smartphone, two different Termux versions, why is the difference so big? Notice the navigation buttons. In this model smartphone they are built into the screen and immersive mode hides them too.
Same problem exists on the Gemini PDA with hardware keyboard. I was able to hide the status bar using adb:
adb shell settings put global policy_control immersive.full=com.termux
The soft keys are still there, though.
Edit: just tested with version 0.56. The 'full screen' option is there, but does not hide the soft keys.
Ico -- I've done the same as you on the Gemini PDA to hide the status bar. You can also hide the soft keys by pressing Fn-/ twice to show then hide the software keyboard. Then you will have true full screen on the Gemini. Or, at least I do!
On Thu, May 24, 2018 at 9:31 AM, Ico Doornekamp [email protected] wrote:
Same problem exists on the Gemini PDA with hardware keyboard. I was able to hide the status bar using adb:
adb shell settings put global policy_control immersive.full=com.termux
The soft keys are still there, though.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/termux/termux-app/issues/507#issuecomment-391715699, or mute the thread https://github.com/notifications/unsubscribe-auth/ADGN39woNx2heZ9yk6ITxLUVsDdk8Zenks5t1rZNgaJpZM4RBSR- .
Quoting LittleHouse75 (2018-05-25 03:11:51)
Ico -- I've done the same as you on the Gemini PDA to hide the status bar. You can also hide the soft keys by pressing Fn-/ twice to show then hide the software keyboard. Then you will have true full screen on the Gemini. Or, at least I do!
Funny, that doesnt seem to work for me. The problem is probably on the gemini-side, as I
ve been having problems with proper keyboard
configuration, I`m sure things will get better with coming firmware
updates.
-- :wq ^X^Cy^K^X^C^C^C^C
topic is stale afaict.
https://github.com/termux/termux-app/pull/650 ditto
Since it hasn't been mentioned why it was removed, here's the commit
Remove the fullscreen setting Trying to use fullscreen doesn't work well in a multi-windowed world and makes using translucent navigation and status bars more complicated.
BTW in playing around with the source/resources, I found a base of LinearLayout
(instead of RelativeLayout
), did give a kind of fullscreen, on a 5.1 (Lollipop) phone. The status at top and soft Android keys (home, back etc) remained but were translucent. And it remained fullscreen with the onscreen keyboard - i.e. so half the screen was obscured by the keyboard.
This would be really nice to have back for those of us with external keyboards and without multi-windows. Navigation bar isn't needed, can alt-tab out or close it with C d. Status bar isn't needed when spending > 90% of the time in terminal. Can't this be re-added and marked as "experimental" or something?
For my Xiaomi Mi A2 with Android 8.1 I did the suggested: adb shell settings put global policy_control immersive.status=com.termux
Here’s a – somewhat cumbersome – workaround for pushing the keyboard out of the way:
-
Add to
~/.bashrc
:# make room for virtual keyboard in Termux function my-screen { echo -e "split\nresize $((LINES * 2 / 3))" >~/.my-screenrc screen -c ~/.my-screenrc }
Adapt the ratio, here ⅔, to the size of your virtual keyboard.
-
Run:
$ my-screen
The available visible area should now be above the keyboard.
Remember, one can always swipe down on the keyboard to hide it and see the full screen.
Interestingly, with my Xiaomi Mi 4X (Miui 9.6.1 / Android 7.1.2) I don’t have the issue: With the status bar hidden, the keyboard does not occlude Termux.
Any update on this?
When I use LineageOS, I can hide the notification bar or any app, but I don't have that option with my bootloader-locked Huawei Mate 20 X. :(
Edit: A workaround is to use an app like SecondScreen that you've granted permissions with ADB.
still no update?
When will this be re-released?
I am using a essential phone with android 10 and would also love to get ride of the black bottom bar when using a physical keyboard.
@stephanbeer do you mean the suggestion bar?
I use Key Mapper for creating shortcuts, but it also has the benefit of removing the black suggestion bar at the bottom of termux:
https://github.com/sds100/KeyMapper
@robsmith11 Hah thats funny, because i literally was installing that app 6 hours ago because Google changed the keymapping on android 10 when connecting a hardware keyboard and totally screwed it up. On android pie you could do that application switching/scroll through open apps with "press and holding ALT + TAB keys" like on windows or mac and thats a mess now. I uninstalled that app because i didnt find an option for usb connected devices, only bluetooth and device buttons... i am using "Button Mapper: Remap your keys" right now but maybe should give the other app another try ? Media keys are sadly not recognisable but i can map all F-keys to tasker tasks and profiles, and/or start termux shortcuts for termux, ubuntu, kali or even starting apps like emacs or vim directly in termux with a key press....
Android 10 has the desktop modus included and i am looking forward to get that working with my essential phone and termux. Having a little android/linux box in my pocket and switching it via USB-C hdmi adapter to a almost real desktop workspace is a dream come true. Sadly the hub which i bought isnt working with android phone, only macs and pcs as it seems :-/....Thank you so much for the Termux project/app !!!
Why is there no collaborator response 3 years later still?
Honestly, it's the only thing that annoys me in Termux right now. I love this app and I appreciate all hard work you have put into developing it. That being said, consider making priority of this issue, please.
@xTpx And can be kept opened, say to 2025. @fornwall does nothing to fix issues or at least suggest something last time.
Immersive mode has problems on some devices (at least I seen that "extra keys row" is misplaced) which I can't solve.
Submit pull requests or keep wait...
God forbid this feature was intentionally removed as part of the business model of termux (like style, widget, float, etc..) Scruples aside, FWIW I would pay $2 for that, just make it so!
All the addons are free on F-Droid by the way