martanne / dvtm

dvtm brings the concept of tiling window management, popularized by X11-window managers like dwm to the console. As a console window manager it tries to make it easy to work with multiple console based programs.
MIT License
857 stars 106 forks source link

Using the alt key doesn't work #71

Open jcjordyn130 opened 7 years ago

jcjordyn130 commented 7 years ago

I've tried messing with TERM and DVTM_TERM and for whatever reason I can't get alt to work.

ghost commented 7 years ago

ALT + key a combination of escape + key and another key.

If you enter cat and then press ALT + somekey, what do you see?

refacto commented 6 years ago

I also have weird behaviour using the alt key.

Input: alt + <letter/number> Output: ^[1^[a^[2^[b

Input: alt + <arrowkey> Output: nothing

I would like the alt + <arrowkey> combination to work, as it makes switching channels in irssi much easier.

ghost commented 6 years ago

@refacto: A workaround for having the life easier before a patch fix this: you can use

Of course the real solution is having it fixed in dvtm.

ghost commented 6 years ago

On my side, I have ^[[1;3D (so it works). Maybe it is a dvtm, maybe it is a libtermkey bug...

@refacto: do you have some more info about the escape sequences you send to dvtm?

As an example, you can check (this time outside dvtm) with cat + enter and then some arrow key.

Also, the output of echo $TERM would be useful.

This will help to reproduce the issue.

refacto commented 6 years ago

Thanks, this helps a bunch! :)

On 29 March 2018 16:19:06 CEST, "Josuah Demangeon⠠⠵" notifications@github.com wrote:

@refacto: A workaround for having the life easier before a patch fix this: you can use

  • ctrl + n next channel
  • ctrl + p previous channel
  • alt + [number] to jump to channel number
  • alt + a to jump to last channel with activity

Of course the real solution is having it fixed in dvtm.