wrp / smtx

Simple modal terminal mulitplexer
GNU General Public License v3.0
9 stars 0 forks source link

bugs - wrong keys & errors exiting shell #1

Open nerd190 opened 3 years ago

nerd190 commented 3 years ago

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:

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

wrp commented 3 years ago

Thanks for the kind words. I haven't really decided on the desired behavior, but closing the last shell currently does not quit smtx. My reasoning was that shells which have exited should still be able to be viewed ( to enable a user to see error messages), and it seemed logical to apply that to the final shell.

To actually terminate, I believe you can use the key sequence 0x from command mode. I was changing the bindings often, and havent looked at it for a few months, so I dont remember with certainty.

On Mon, Feb 15, 2021, 08:18 5c0tt-b0t notifications@github.com wrote:

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.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/wrp/smtx/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAKGZZELL6BQ5G75OTVUC3S7E3MHANCNFSM4XU3N7AA .

wrp commented 3 years ago

Can you give some details on the issue you're describing with the arrow keys? The arrow keys work fine for me on macos, and I'm unsure how to input an arrow key on termux. The keyboards I've installed on my Android device do not have arrow keys. I suspect this is an issue with the terminfo file, but cannot replicate the problem.

On Tue, Feb 16, 2021 at 1:28 AM William Pursell william.r.pursell@gmail.com wrote:

Thanks for the kind words. I haven't really decided on the desired behavior, but closing the last shell currently does not quit smtx. My reasoning was that shells which have exited should still be able to be viewed ( to enable a user to see error messages), and it seemed logical to apply that to the final shell.

To actually terminate, I believe you can use the key sequence 0x from command mode. I was changing the bindings often, and havent looked at it for a few months, so I dont remember with certainty.

On Mon, Feb 15, 2021, 08:18 5c0tt-b0t notifications@github.com wrote:

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.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/wrp/smtx/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAKGZZELL6BQ5G75OTVUC3S7E3MHANCNFSM4XU3N7AA .

nerd190 commented 3 years ago

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.