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

Characters are not echoed on Samsung keyboard #686

Closed
ghost opened this issue May 17, 2018 · 47 comments
Closed

Characters are not echoed on Samsung keyboard #686

ghost opened this issue May 17, 2018 · 47 comments

Comments

@ghost
Copy link

ghost commented May 17, 2018

I am using Termux on a Samsung Note8 and what annoys me is that I cannot see what I type because Termux doesn't echo the characters. Only when I type a space, a dash or similar Termux echoes what I have typed so far.
Is this a big or a wrong setting?

@Grimler91
Copy link
Member

It's likely a setting in your phone, can't remember the name of this feature though.

@ghost
Copy link
Author

ghost commented May 17, 2018

That helps! 😂

@Grimler91
Copy link
Member

Sounds like "predictive text", see this issue #126.
I would probably turn it off in android's settings.

@pulketo
Copy link

pulketo commented Sep 24, 2018

Do not use default keyboard, please download "Hacker's keyboard" from playstore

@systemsgo
Copy link

This doesn't seem directly caused by predictive text. When using most apps with predictive text, character input still appears one character at a time. The predictive aspect only allows for autocompletion or correction. Termux also works this way with predictive in some cases, it only stopped working recently. Switching keyboards doesn't do anything to address the underlying issue.

@ghost
Copy link

ghost commented Jan 2, 2020

This doesn't seem directly caused by predictive text.

Not directly but still related. Termux can't handle word-based input. It recognizes only char-by-char input.

The predictive aspect only allows for autocompletion or correction.

TerminalView is not a text field and keyboard knows nothing what is being typed. That causes issues with word-based input.

Termux also works this way with predictive in some cases

We use TYPE_NULL input type. According to SDK documents, a generic input type should be chosen in that case. Samsung keyboards behave weirdly and choose the last used input type instead.

Switching keyboards doesn't do anything to address the underlying issue.

If keyboard assumes that TYPE_NULL is actually last used one, that's a keyboard's bug. Not ours.

We can use

InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD | InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS

to make it work well with Samsung keyboards but that will cause some issues with others, especially ones that do special handling for passwords.

@DougLohre
Copy link

I am using Termux on a Samsung Note8 and what annoys me is that I cannot see what I type because Termux doesn't echo the characters. Only when I type a space, a dash or similar Termux echoes what I have typed so far.
Is this a big or a wrong setting?

I'm having that problem too! ugh!!

@quazZzar
Copy link

Same problem here.
Started after I updated to the newest Android 10 and UI 2.0 ... Samsung S9+

@x2k13
Copy link

x2k13 commented Feb 14, 2020

Same for Samsung Galaxy Tab A 10.5 after today's February Update. Yesterday it worked, now it's borked. And the workaround by deactivating predictive text doesn't work anymore.

Edit: Correction, after a reboot, predictive text disabled, Termux recognises input again. That doesn't mean the issue is fixed, though. Covering the symptoms by disabling widely used features of a keyboard isn't really a fix for a bug.

@DougLohre

This comment has been minimized.

@DougLohre

This comment has been minimized.

@kk-007
Copy link

kk-007 commented Feb 21, 2020

Same issue here in smasung galexy s9

@kk-007
Copy link

kk-007 commented Feb 21, 2020

Same problem here.
Started after I updated to the newest Android 10 and UI 2.0 ... Samsung S9+

i have also updated in s9 but issue is there it's not solved.

@mandresc
Copy link

mandresc commented Mar 9, 2020

Hi,
I was having the same issue and after disabling the Predictive Text, then I exit the program and open it again and now is working fine

@ghost ghost mentioned this issue Aug 25, 2020
@bchristie
Copy link

bchristie commented Aug 25, 2020

FWIW, Note 20 Ultra... same issue. Appears to really dislike the Samsung keyboard.

Android 10, OneUI 2.5.

@SDRausty

This comment has been minimized.

@SDRausty

This comment has been minimized.

@x2k13

This comment has been minimized.

@SDRausty

This comment has been minimized.

@ghost
Copy link

ghost commented Aug 26, 2020

@SDRausty Please note that this thread is not about compiling keyboard app in Termux. If you want to suggest a keyboard to try - provide a link to Google Play or F-Droid so users can try it. But links to irrelevant repositories and web pages are spam. Stop advertising your repos on Termux bug tracker and I won't mark your comments as such.

Now regarding this issue: I already mentioned that possible solution will be reverting back to previous input method used by Termux:

InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD | InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS

This will explicitly reset keyboard to input method acceptable by application. @fornwall however doesn't consider this as acceptable solution.

@ghost
Copy link

ghost commented Aug 26, 2020

As issue exists for more than 2 years and no one submitted a proper pull request addressing this, I can make a termux.properties option through which you should be enable workaround by using older "visible password" input type.

@ghost ghost deleted a comment from SDRausty Aug 26, 2020
@termux termux temporarily blocked SDRausty Aug 26, 2020
@ghost ghost deleted a comment from SDRausty Aug 26, 2020
@x2k13
Copy link

x2k13 commented Aug 26, 2020

As issue exists for more than 2 years and no one submitted a proper pull request addressing this, I can make a termux.properties option through which you should be enable workaround by using older "visible password" input type.

I had no idea this could be achieved with termux.properties, that would be great (with a bit of documentation of course). I'm sure you would make a lot of Samsung users really happy. Cheers!

@ghost
Copy link

ghost commented Aug 26, 2020

I had no idea this could be achieved with termux.properties, that would be great (with a bit of documentation of course).

Right now it is not available, so not documented. I guess can make a toggable workaround release it as part of Termux v0.99 either today or tomorrow.

ghost pushed a commit that referenced this issue Aug 26, 2020
Issue #686.

Note that there can be a better workaround which I don't know...
@LordMrcS
Copy link

LordMrcS commented Aug 26, 2020

@xeffyr tested your fix and it's working perfectly now. Thanks ! 👍

 cd ~
 mkdir .termux
 echo "enforce-char-based-input=true" > .termux/termux.properties
 termux-reload-settings

@ghost
Copy link

ghost commented Aug 26, 2020

Part of v0.99 release.

APKs publishing is on @fornwall 's (Google Play) and F-Droid's responsibility.

@ghost ghost closed this as completed Aug 26, 2020
@ghost ghost unpinned this issue Aug 26, 2020
@x2k13
Copy link

x2k13 commented Aug 26, 2020

Part of v0.99 release.

APKs publishing is on @fornwall 's (Google Play) and F-Droid's responsibility.

Thank you very much, you rock!

@SDRausty

This comment was marked as spam.

@topongo
Copy link

topongo commented Jul 17, 2021

@xeffyr tested your fix and it's working perfectly now. Thanks ! 👍

 cd ~
 mkdir .termux
 echo "enforce-char-based-input=true" > .termux/termux.properties
 termux-reload-settings

I'm having the same behavior described initially with the Gboard keyboard, but even modifying ~/.termux/termux.properties enabling and disabling enforce-char-based-input I don't get any result. Either cases gboard is still in text input type and not password input type.

@agnostic-apollo
Copy link
Member

I don't get any result.

Restart Termux after enabling it for changes to take effect.

@fly-machine
Copy link

I was facing same issue with Gboard (google keyboard).
I have disabled all options in text correction in gboard settings (gboard settings > text correction > disable all options) after that this issue is gone for me.

@ghost ghost mentioned this issue Aug 21, 2021
@ghost ghost locked and limited conversation to collaborators Oct 17, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests