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

[Bug]: The letters are changed or mixed when giving enter to carry out the command #2385

Closed
ChrisTVH opened this issue Nov 7, 2021 · 3 comments

Comments

@ChrisTVH
Copy link

ChrisTVH commented Nov 7, 2021

Problem description

Every time I use the tab while typing or using a command, the letters from it are mixed into the final part of the command.

Log

chris@localhost  ~  nano .bashrc
 chris@localhost  ~  xls
-bash: xls: orden no encontrada
 ✘ chris@localhost  ~  ls
Descargas   Escritorio  Música      Público                Documentos  Imágenes    Plantillas  Vídeos
 chris@localhost  ~  la
total 1,3M
-rw-------.  1 chris chris 5,0K nov  7 00:13 .bash_history
-rw-------.  1 chris chris  220 feb 25  2020 .bash_logout
-rw-r--r--.  1 chris chris 3,3K nov  6 23:43 .bashrc
-rw-------.  1 chris chris 3,3K nov  6 08:49 .bashrc.pre-oh-my-bash
drwxr-xr-x. 10 chris chris 4,0K nov  6 18:22 .cache
drwxrwxr-x. 13 chris chris 4,0K nov  6 18:22 .config
drwx------.  3 chris chris 4,0K nov  6 10:16 .dbus         drwxr-xr-x.  2 chris chris 4,0K nov  6 10:16 Descargas
drwxr-xr-x.  2 chris chris 4,0K nov  6 10:16 Documentos    drwxr-xr-x.  2 chris chris 4,0K nov  6 18:43 Escritorio
-rw-rw-r--.  1 chris chris 1,1M nov  6 14:07 .face
drwx------.  3 chris chris 4,0K nov  6 19:37 .gnupg
-rw-------.  1 chris chris 2,3K nov  6 19:26 .ICEauthority
drwxr-xr-x.  2 chris chris 4,0K nov  6 11:16 Imágenes
-rw-------.  1 chris chris 2,3K nov  6 19:26 .l2s..ICEauthority-n0001
-rw-------.  1 chris chris 2,3K nov  6 19:26 .l2s..ICEauthority-n0001.0001
drwxrwxr-x.  3 chris chris 4,0K nov  6 10:24 .local
drwx------.  4 chris chris 4,0K nov  6 01:56 .mozilla
drwxr-xr-x.  2 chris chris 4,0K nov  6 10:16 Música
drwxr-xr-x. 15 chris chris 4,0K nov  6 11:23 .oh-my-bash
-rw-r--r--.  1 chris chris   17 nov  6 11:23 .osh-update
drwx------.  3 chris chris 4,0K nov  5 21:20 .pki
drwxr-xr-x.  2 chris chris 4,0K nov  6 10:16 Plantillas
-rw-------.  1 chris chris  807 feb 25  2020 .profile
drwxr-xr-x.  2 chris chris 4,0K nov  6 10:16 Público
-rw-r--r--.  1 chris chris    0 nov  7 14:10 .sdirs
drwx------.  2 chris chris 4,0K nov  6 13:40 .synaptic
drwxr-xr-x.  2 chris chris 4,0K nov  6 10:16 Vídeos
drwxr-xr-x.  2 chris chris 4,0K nov  6 20:00 .vnc
-rw-------.  1 chris chris   54 nov  6 19:26 .Xauthority
 chris@localhost  ~  cd .o
.oh-my-bash/ .osh-update
 chris@localhost  ~  cd .oh-my-bash/
/home/chris/.oh-my-bash
 chris@localhost  ~/.oh-my-bash   master  ls
aliases             img            README.md
cache               lib            templates
CODE_OF_CONDUCT.md  LICENSE.md     themes
completions         log            tools
CONTRIBUTING.md     oh-my-bash.sh
custom              plugins
 chris@localhost  ~/.oh-my-bash   master  la
total 172K
drwxr-xr-x.  2 chris chris 4,0K nov  6 11:23 aliases
drwxr-xr-x.  2 chris chris 4,0K nov  6 11:23 cache
-rw-r--r--.  1 chris chris 3,2K nov  6 11:23 CODE_OF_CONDUCT.md
drwxr-xr-x.  2 chris chris 4,0K nov  6 11:23 completions
-rw-r--r--.  1 chris chris 4,8K nov  6 11:23 CONTRIBUTING.md
drwxr-xr-x.  6 chris chris 4,0K nov  6 11:23 custom
-rw-r--r--.  1 chris chris  307 nov  6 11:23 .editorconfig
drwxr-xr-x.  8 chris chris 4,0K nov  7 14:12 .git
drwxr-xr-x.  2 chris chris 4,0K nov  6 11:23 .github
-rw-r--r--.  1 chris chris  288 nov  6 11:23 .gitignore
drwxr-xr-x.  2 chris chris 4,0K nov  6 11:23 img
drwxr-xr-x.  2 chris chris 4,0K nov  6 11:23 lib
-rw-r--r--.  1 chris chris 1,2K nov  6 11:23 LICENSE.md
drwxr-xr-x.  2 chris chris 4,0K nov  7 14:10 log
-rw-r--r--.  1 chris chris 4,7K nov  6 11:23 oh-my-bash.sh
drwxr-xr-x. 15 chris chris 4,0K nov  6 11:23 plugins
-rw-r--r--.  1 chris chris 7,4K nov  6 11:23 README.md
drwxr-xr-x.  2 chris chris 4,0K nov  6 11:23 templates
drwxr-xr-x. 64 chris chris 4,0K nov  6 11:23 themes
drwxr-xr-x.  2 chris chris 4,0K nov  6 11:23 tools
 chris@localhost  ~/.oh-my-bash   master  nano oh-my-bash.sh
 chris@localhost  ~/.oh-my-bash   master  xls
-bash: xls: orden no encontrada
 ✘ chris@localhost  ~/.oh-my-bash   master  ls
aliases             img            README.md
cache               lib            templates
CODE_OF_CONDUCT.md  LICENSE.md     themes
completions         log            tools
CONTRIBUTING.md     oh-my-bash.sh
custom              plugins
 chris@localhost  ~/.oh-my-bash   master  cd ..
 chris@localhost  ~  ls
Descargas   Escritorio  Música      Público
Documentos  Imágenes    Plantillas  Vídeos
 chris@localhost  ~  la
total 1,3M
-rw-------.  1 chris chris 5,0K nov  7 00:13 .bash_history
-rw-------.  1 chris chris  220 feb 25  2020 .bash_logout
-rw-r--r--.  1 chris chris 3,3K nov  6 23:43 .bashrc
-rw-------.  1 chris chris 3,3K nov  6 08:49 .bashrc.pre-oh-my-bash
drwxr-xr-x. 10 chris chris 4,0K nov  6 18:22 .cache
drwxrwxr-x. 13 chris chris 4,0K nov  6 18:22 .config
drwx------.  3 chris chris 4,0K nov  6 10:16 .dbus
drwxr-xr-x.  2 chris chris 4,0K nov  6 10:16 Descargas
drwxr-xr-x.  2 chris chris 4,0K nov  6 10:16 Documentos
drwxr-xr-x.  2 chris chris 4,0K nov  6 18:43 Escritorio
-rw-rw-r--.  1 chris chris 1,1M nov  6 14:07 .face
drwx------.  3 chris chris 4,0K nov  6 19:37 .gnupg
-rw-------.  1 chris chris 2,3K nov  6 19:26 .ICEauthority
drwxr-xr-x.  2 chris chris 4,0K nov  6 11:16 Imágenes
-rw-------.  1 chris chris 2,3K nov  6 19:26 .l2s..ICEauthority-n0001
-rw-------.  1 chris chris 2,3K nov  6 19:26 .l2s..ICEauthority-n0001.0001
drwxrwxr-x.  3 chris chris 4,0K nov  6 10:24 .local
drwx------.  4 chris chris 4,0K nov  6 01:56 .mozilla
drwxr-xr-x.  2 chris chris 4,0K nov  6 10:16 Música
drwxr-xr-x. 15 chris chris 4,0K nov  7 14:14 .oh-my-bash
-rw-r--r--.  1 chris chris   17 nov  6 11:23 .osh-update
drwx------.  3 chris chris 4,0K nov  5 21:20 .pki
drwxr-xr-x.  2 chris chris 4,0K nov  6 10:16 Plantillas
-rw-------.  1 chris chris  807 feb 25  2020 .profile
drwxr-xr-x.  2 chris chris 4,0K nov  6 10:16 Público
-rw-r--r--.  1 chris chris    0 nov  7 14:10 .sdirs
drwx------.  2 chris chris 4,0K nov  6 13:40 .synaptic
drwxr-xr-x.  2 chris chris 4,0K nov  6 10:16 Vídeos
drwxr-xr-x.  2 chris chris 4,0K nov  6 20:00 .vnc
-rw-------.  1 chris chris   54 nov  6 19:26 .Xauthority
 chris@localhost  ~  ls -a
.                       .l2s..ICEauthority-n0001
..                      .l2s..ICEauthority-n0001.0001
.bash_history           .local
.bash_logout            .mozilla
.bashrc                 Música
.bashrc.pre-oh-my-bash  .oh-my-bash
.cache                  .osh-update
.config                 .pki
.dbus                   Plantillas
Descargas               .profile
Documentos              Público
Escritorio              .sdirs
.face                   .synaptic
.gnupg                  Vídeos
.ICEauthority           .vnc
Imágenes                .Xauthority
 chris@localhost  ~  nano .sdirs
 chris@localhost  ~  nano .bashrc
 chris@localhost  ~  cd .oh-my-bash/
/home/chris/.oh-my-bash
 chris@localhost  ~/.oh-my-bash   master  ls
aliases             img            README.md
cache               lib            templates
CODE_OF_CONDUCT.md  LICENSE.md     themes
completions         log            tools
CONTRIBUTING.md     oh-my-bash.sh
custom              plugins
 chris@localhost  ~/.oh-my-bash   master  cd templattem-bash: cd: templattem: No existe el archivo o el directorio
 ✘ chris@localhost  ~/.oh-my-bash   master  cd templates/
/home/chris/.oh-my-bash/templates
 chris@localhost  ~/.oh-my-bash/templates   master  ls
bashrc.osh-template
 chris@localhost  ~/.oh-my-bash/templates   master  cd
 chris@localhost  ~  ls
Descargas   Escritorio  Música      Público
Documentos  Imágenes    Plantillas  Vídeos
 chris@localhost  ~  cd .oh-my-bash/
/home/chris/.oh-my-bash
 chris@localhost  ~/.oh-my-bash   master  cd templates/
/home/chris/.oh-my-bash/templates
 chris@localhost  ~/.oh-my-bash/templates   master  ls
bashrc.osh-template
 chris@localhost  ~/.oh-my-bash/templates   master  cd bashrc.osh-template
-bash: cd: bashrc.osh-template: No es un directorio
 ✘ chris@localhost  ~/.oh-my-bash/templates   master  nano bashrc.osh-template
 chris@localhost  ~/.oh-my-bash/templates   master  xcd ..
-bash: xcd: orden no encontrada
 ✘ chris@localhost  ~/.oh-my-bash/templates   master  xcd ..
-bash: xcd: orden no encontrada
 ✘ chris@localhost  ~/.oh-my-bash/templates   master  cd ..
 chris@localhost  ~/.oh-my-bash   master  ls
aliases             img            README.md
cache               lib            templates
CODE_OF_CONDUCT.md  LICENSE.md     themes
completions         log            tools
CONTRIBUTING.md     oh-my-bash.sh
custom              plugins
 chris@localhost  ~/.oh-my-bash   master 

As you could see at the beginning an "x" came out when I tried to put the command "ls" that happens when I finish editing a file with nano I use "ctrl + s" and "ctrl + x" the letters are not seen but I write the command and then they appear making the command misprints in terminal.

Steps to reproduce the behavior.

Step one

Create or try to edit a file with any code editor for the terminal of your choice.

Step two

Use any of the shortcuts, in this case I used "ctrl + s" and "ctrl + x", then run any command from the terminal.

The same problem happens with the tab

Trying to auto complete any command with tab and hitting mixes the command letters.

All these problems happen with the virtual keyboard of the mobile, it should be clarified that the auto-correction of the virtual keyboard of the mobile is deactivated so it has nothing to do with the aforementioned.

What is the expected behavior?

That the executed commands do not mix the letters or ghost letters appear when they are executed.

System information

Termux App Info

APP_NAME: Termux
PACKAGE_NAME: com.termux
VERSION_NAME: 0.117
VERSION_CODE: 117
TARGET_SDK: 28
IS_DEBUG_BUILD: false
APK_RELEASE: F-Droid
SIGNING_CERTIFICATE_SHA256_DIGEST: 228FB2CFE90831C1499EC3CCAF61E96E8E1CE70766B9474672CE427334D41C42

Device Info

Software

OS_VERSION: 4.4.177-21701136
SDK_INT: 30
RELEASE: 11
ID: RP1A.200720.012
DISPLAY: RP1A.200720.012.A202FXXU3CUG2
INCREMENTAL: A202FXXU3CUG2
SECURITY_PATCH: 2021-05-01
IS_DEBUGGABLE: 0
IS_TREBLE_ENABLED: true
TYPE: user
TAGS: release-keys

Hardware

MANUFACTURER: samsung
BRAND: samsung
MODEL: SM-A202F
PRODUCT: a20eeea
BOARD: exynos7884B
HARDWARE: exynos7884B
DEVICE: a20e
SUPPORTED_ABIS: arm64-v8a, armeabi-v7a, armeabi

@ChrisTVH
Copy link
Author

ChrisTVH commented Nov 7, 2021

I wrote everything with the translator, sorry if I couldn't make myself understood properly.

@ghost
Copy link

ghost commented Nov 7, 2021

Some keyboards do not work properly with the app and need a different treatment to be turned on: https://wiki.termux.com/wiki/Terminal_Settings#Workaround_for_some_keyboards_issues

Run

echo "enforce-char-based-input = true" > ~/.termux/termux.properties

and restart the application.

If you can't enter/paste the command for some reason, try alternate input widget: https://wiki.termux.com/wiki/Touch_Keyboard#Text_Input_View.

@ChrisTVH
Copy link
Author

ChrisTVH commented Nov 7, 2021

Oh, this is beautiful, more than 20 hours suffering with that, thank you very much

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant