![]() You can use that to help debug what keys the client application is receiving. But this is not the question here.Ī useful tool for debugging input on linux is showkey -a. Apparently "keyboard" is not compatible with WSL2. Which means it receive the keyboard info. I tried to run following python program in both stacks : WT/WSL and WT/CMD.EXE import keyboard I didn't found any mention of ctrl-_ in WT config shortcuts.If I run WSL2 without WT, Ctrl-_ is not interpreted at all.If I run another type of "tab" in WT, like cmd.exe or powershell, ctrl-_ is not interpreted as "delete".If I run WSL2 through WT, but don't start emacs, ctrl-_ is also interpreted as "delete".For instance, is there a configuration file for WT and/or WSL2, that says which combination are forwarded, which one are interpreted and which one are ignored. Of course more generally, I really would like to know, how each layer works and is parameterized. Very specifically and synthetically stated, my question would be : "How do I configure this stack to make emacs receive ctrl-_ ?" In this configuration typing "delete" or "ctrl-_" is the very same thing : it removes the first character before the caret. ![]() It is translated at some point as "delete". For instance ctrl-_ (ctrl underscore), which is very useful on default emacs configuration, is not interpreted by emacs. alt-f4 is interpreted by windows : it closes windows terminalĪnd some of them are a mystery for me.ctrl-tab is interpreted by windows terminal : it changes tab.ctrl-z is interpreted by wsl2 (afaik) : it pauses emacs as a background job.ctrl-e is interpreted by emacs : it move the caret to the end of file.This subsystem is a DebianĪt this point, when I enter a key combination, it may be passed to emacs, or it may be intercepted/interpreted by any other layer of the stack. In this terminal I open a tab which (afaik magically) is a shell on a linux subsystem.Under windows, I run Windows terminal (WT.exe).I have to say that my favorite tool to edit text is emacs, that use a lot of keyword combinations. I'm using WSL (WSL2 in fact) for a few days and I'm a bit confuse about keyboard combination redirection and/or interception.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |