Skip to content
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

Fullscreen / immersive mode option is gone #507

Open
kracejic opened this issue Dec 13, 2017 · 38 comments
Open

Fullscreen / immersive mode option is gone #507

kracejic opened this issue Dec 13, 2017 · 38 comments

Comments

@kracejic
Copy link

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!

@Quasic
Copy link
Contributor

Quasic commented Dec 15, 2017

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.

@fornwall
Copy link
Member

@kracejic Just to check, you're running with a hardware keyboard right?

@kracejic
Copy link
Author

@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.

@Quasic
Copy link
Contributor

Quasic commented Dec 16, 2017

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.

@kracejic
Copy link
Author

@Quasic That would be very nice.

@gushmazuko
Copy link

Me too fullscreen option is gone.
Device: Nexus 6, Android 7.1.1

@kanreki
Copy link

kanreki commented Jan 13, 2018

Me too, starting today. HP Chromebook 13, running Android apps on the Beta channel of Chrome OS

@SDRausty

This comment was marked as spam.

@SDRausty

This comment was marked as spam.

@kanreki
Copy link

kanreki commented Jan 14, 2018 via email

@dnastase
Copy link

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.

@LittleHouse75
Copy link

Yes! Full screen Termux please!

@absurd
Copy link

absurd commented Feb 18, 2018

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

@SDRausty

This comment was marked as spam.

@absurd
Copy link

absurd commented Mar 29, 2018

@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.

@SDRausty

This comment was marked as spam.

@timblaktu
Copy link

+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.

@timblaktu
Copy link

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!

@SDRausty

This comment was marked as spam.

@zevv
Copy link
Contributor

zevv commented May 24, 2018

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.

@LittleHouse75
Copy link

LittleHouse75 commented May 25, 2018 via email

@zevv
Copy link
Contributor

zevv commented May 25, 2018 via email

@SDRausty

This comment was marked as spam.

@SDRausty

This comment was marked as spam.

@hyperpallium
Copy link

hyperpallium commented Jul 28, 2018

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.

@supbish
Copy link

supbish commented Aug 13, 2018

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?

@feklee
Copy link

feklee commented Aug 20, 2018

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.

@robsmith11
Copy link

robsmith11 commented May 17, 2019

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.

@JohannesPertl
Copy link

still no update?

@gokninski
Copy link

When will this be re-released?

@ghost
Copy link

ghost commented Sep 13, 2019

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.

@robsmith11
Copy link

@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

@ghost
Copy link

ghost commented Sep 13, 2019

@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 !!!

@elig0n
Copy link

elig0n commented Jun 1, 2020

Why is there no collaborator response 3 years later still?

@mtkleet
Copy link

mtkleet commented Oct 16, 2020

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.

@ghost
Copy link

ghost commented Nov 20, 2020

@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...

@Heath123
Copy link

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

@moayad-star
Copy link

Read it Termux-wiki-fullscreen

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