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

bugs - wrong keys & errors exiting shell #1

Open
nerd190 opened this issue Feb 15, 2021 · 3 comments
Open

bugs - wrong keys & errors exiting shell #1

nerd190 opened this issue Feb 15, 2021 · 3 comments

Comments

@nerd190
Copy link

nerd190 commented Feb 15, 2021

This is beautifully simple!
I'm a tmux fan but it seems a little overkill for my Android tablet running Termux, I tried dvtm (again, beautifully simple) but colors arent displayed accurately and I'm lost with C, just tried tabs (a new one written in rust) VERY promising, no splits - just windows, but one problem that I cant live with is its one bug, after entering tabs, leaving and running tabs again, you lose all shell history, it doesnt come back without fully exiting the shell and re-entering.
smtx is similar, it works beautifully but unfortunately has some bugs:

  • left, right, delete (and many others apart from the normal character keys) arent correct.
  • exiting the shell doesnt work, it freezes.

Apart from that its awesome, well done! I hope one day I can kick tmux for my smaller devices.
Thank you, its appreciated.

@wrp
Copy link
Owner

wrp commented Feb 16, 2021 via email

@wrp
Copy link
Owner

wrp commented Feb 19, 2021 via email

@nerd190
Copy link
Author

nerd190 commented Feb 21, 2021

Of course I can!
By the way, Hackers Keyboard (forgive the name) is available here on GitHub, F-Froid (an open-source appstore filled with only open-source apps) or eww Googles Playstore, (its the most popular "full" keyboard used on Android over the last 10 years).
But I believe it would be wise to use Termux's built-in functionality: "termux-extra-keys", this doesnt rely on an keyboard app, you can use your own keyboard of choice, it just adds extra keys above your existing keyboard, whilst mine may look confusing:
Screenshot_20210220-234612_Termux
They all "popup" revealling another (second) key when held, for instance my HOME is also END, / is also \ , UP is also PAGE_UP etc etc. I have no left or right keys as my keyboard Simple Keyboard (an open-source version of Android's stock "Gboard", available from F-Droid or here on GitHub also) has cursor left-right swipe-movement (just swipe the spacebar).
I'll report back with my findings!
Though for testing purposes, I suggest adding some extra keys! Termux Extra Keys suggest you add these (simple, sane set of keys, no pop-ups etc):

extra-keys = [ \
 ['ESC','|','/','HOME','UP','END','PGUP','DEL'], \
 ['TAB','CTRL','ALT','LEFT','DOWN','RIGHT','PGDN','BKSP'] \
]

Copy-paste those into ~/.termux/termux.properties
Which give you these:
Extra_keys_view
Note: Most editors are available through Termux (Emacs, Spacemacs, Nano, Micro etc) but If you dont have a keyboard with CTRL, you cant save a document in one of these editors so use a modal editor instead (Vi, Vim, Neovim, Kakoune etc) are all available, what isnt available is buildable just like on any other GNU-Linux system (just make sure you have clang, gcc, make, cmake, build-essential, util-linux etc installed. Just search all the available editors with apt search editor, install one of them, after (if you dont use modal editors) you can remove it now you have CTRL keys etc (if you prefer another editor) 👍
P.S someone of my keys are also macros! so one press of a button can open/close or switch tmux windows or simply send :q to close up vi styled editors.

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

2 participants