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

[alt+]shift+Up/Down not recognized on TERM=st #4267

Closed
mc-butler opened this issue Aug 4, 2021 · 11 comments
Closed

[alt+]shift+Up/Down not recognized on TERM=st #4267

mc-butler opened this issue Aug 4, 2021 · 11 comments
Assignees
Labels
area: tty Interaction with the terminal, screen libraries prio: medium Has the potential to affect progress
Milestone

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/4267
Reporter sdk (sh+mc@….de)

Hello,

The simple term (st.suckless.org) is quite popular in power-user circles. In mc some key combinations are not recognized.

These are the quirks for "mc.lib" to make the arrow keys with modifiers work.

[terminal:st]
shift-right=\\e[1\;5C
shift-left=\\e[1\;5D
shift-up=\\e[1\;2A
shift-down=\\e[1\;2B
alt-shift-right=\\e[1\;6C
alt-shift-left=\\e[1\;6D
alt-shift-up=\\e[1\;6A
alt-shift-down=\\e[1\;6B

[terminal:st-256color]
copy=st

[terminal:st-git-256color]
copy=st

It would be wonderful, if you could add them.

Best Regards,
Stefan

Note

Original attachments:

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Aug 4, 2021 at 18:39 UTC (comment 1)

  • Milestone changed from Future Releases to 4.8.27
  • Status changed from new to accepted
  • Component changed from mc-key-bindings to mc-tty
  • Owner set to andrew_b

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Aug 4, 2021 at 18:43 UTC (comment 2)

  • Branch state changed from no branch to merged
  • Resolution set to fixed
  • Status changed from accepted to testing

Thanks!

Applied as [f533b37].

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Aug 4, 2021 at 18:44 UTC (comment 3)

  • Status changed from testing to closed

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Aug 4, 2021 at 18:45 UTC (comment 4)

  • Votes set to committed-master

@mc-butler
Copy link
Author

Changed by sdk (sh+mc@….de) on Aug 7, 2021 at 10:47 UTC (comment 5)

  • Resolution fixed deleted
  • Status changed from closed to reopened

Thanks for merging - embarresingly I messed it up by holding down ctrl instead of shift half of the time. Could you please correct it?

[terminal:st]
shift-right=\\e[1\;2C
shift-left=\\e[1\;2D
shift-up=\\e[1\;2A
shift-down=\\e[1\;2B
alt-shift-right=\\e[1\;4C
alt-shift-left=\\e[1\;4D
alt-shift-up=\\e[1\;4A
alt-shift-down=\\e[1\;4B

[terminal:st-256color]
copy=st

[terminal:st-git-256color]
copy=st

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Aug 7, 2021 at 11:50 UTC (comment 5.6)

  • Status changed from reopened to closed
  • Resolution set to fixed

Replying to sdk:

Could you please correct it?

Done: [fdf2140].

@mc-butler
Copy link
Author

Changed by zaytsev (@zyv) on Aug 7, 2021 at 15:01 UTC (comment 7)

Andrew: funny, the branch name is naster ;-)

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Aug 7, 2021 at 15:06 UTC (comment 7.8)

Replying to zaytsev:

Andrew: funny, the branch name is naster ;-)

There is/was no branch here. There were two direct commits to master.

@mc-butler
Copy link
Author

Changed by zaytsev (@zyv) on Aug 7, 2021 at 15:15 UTC

@mc-butler
Copy link
Author

Changed by zaytsev (@zyv) on Aug 7, 2021 at 15:15 UTC (comment 9)

Well, that must have certainly been your intention, but...

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Aug 7, 2021 at 16:01 UTC (comment 10)

Ah, indeed. There was a typo. Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: tty Interaction with the terminal, screen libraries prio: medium Has the potential to affect progress
Development

No branches or pull requests

2 participants