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

Keyboard shortcut escape sequence #315

Closed
sertonix opened this issue Dec 29, 2022 · 2 comments
Closed

Keyboard shortcut escape sequence #315

sertonix opened this issue Dec 29, 2022 · 2 comments

Comments

@sertonix
Copy link
Contributor

Sometimes keyboard shortcuts are interpreted by vtm but should effect the open app (eg. terminal).
A keyboard shortcut to prevent the next from being used by vtm would be nice.
Then everything should be possible.

@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Dec 30, 2022

Of course this could be done in the same way as it is done in tmux - Ctrl-b as the main tmux command binding, but I want to come up with a way to completely transfer keyboard focus to an application (or a focused group of applications) and return it using the Host-key or some kind of window menu button, like it is done by virtual machine managers, e.g. VirtualBox reserves the right Ctrl key.

This is related to #86. I haven't dived deep into this issue or experimented with it. The final way to escape the keyboard depends on the ability to support keyboard protocols in modern terminal emulators. There is an option to completely intercept keyboard input at the OS level (Win32/X11/Wayland), handle keypresses/keyreleases, intercept special keys/combinations - e.g. Win+Key, Alt+Tab, etc. In this case, we will have complete freedom to choose the option to control keyboard input.

At the moment, I'm thinking of implementing the following keyboard input processing scheme:

  • vtm runs locally and interacting directly with Win32/X11/Wayland (in the future it will also render itself in GUI) intercepts all keyboard input. For example, this is how vtm clipboard support works in Win32 now Text copied outside vtm cannot be pasted with a right click #273.
  • The local vtm instance, using its own keyboard protocol, exchanges keyboard events with other local and remote (via SSH) vtm instances, including DirectVT apps.

@o-sdn-o o-sdn-o mentioned this issue Apr 21, 2023
4 tasks
@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Apr 21, 2023

Closing in favor of #86

@o-sdn-o o-sdn-o closed this as completed Apr 21, 2023
@o-sdn-o o-sdn-o changed the title keyboard shortcut escape sequence Keyboard shortcut escape sequence May 23, 2023
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