-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
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
MobaXTerm "xterm" terminal - END, HOME, DEL keys not working #4872
Comments
This is an ongoing issue with key bindings and terminfo in OMZ. #3061 is probably closest to your issue, and has some detailed information. You can see various other Home/End key binding issues in the list in #4344. Thought we had Home/End cleared up for most terminals. Check that the character sequences MobaXTerm is sending for Home and End match those in the |
I grabbed MobaXterm and tried it out. It looks like in application cursor mode, it's sending the character sequences for the VT220 editing keypad Home/End keys ( Eventually OMZ may be able to handle this automatically, but in the mean time you'll have to configure a workaround. If you can configure MobaXterm to send the normal xterm sequences, that should fix it. PuTTY does the same thing in one of its configurations. Have a look at #3757, which is specifically about PuTTY. As a workaround, you could add this in your
|
MobaXterm is based on PuTTY, somehow. From their documentation page:
I've sent them an e-mail a while back asking them about this specific matter, but I haven't heard back from them yet. I've taken a look at the files the program generates in its configuration folder, but I haven't found a way of changing the characters it sends when I press the aforementioned keys. In its configuration folder, I managed to snag two relevant files. One of them is a terminfo file; another is a inputrc file. Hopefully, they'll be useful for something! [https://drive.google.com/file/d/0Bwi2temj01hfaEdCNTZ3T24xWFU/view?usp=sharing](MobaXterm Files.zip) |
Ah! In that case, you can try setting
|
While my system does have a proper terminfo entry for Here's
|
There's a catch here: OMZ switches the terminal into "application keypad" mode when the ZLE command line editor is active, using terminfo's Instead of Could also be that your setup is leaving the terminal in local cursor mode. Maybe MobaXterm has their own documentation on configuring their terminal, though I didn't see much in my brief poking around at it. (I wonder what version and configuration of Putty they're using. When I was doing that testing, I tested a few Putty configurations, and none of them gave |
Just did the CTRL+V test on the same CentOS 7 machine I've been using thus far; got, yet again, If I use the default I don't really understand this |
Interesting. Setting This makes me think that the "terminal type" setting in MobaXterm is affecting not just the And in stock PuTTY, this is configured independent of the I dunno what to suggest you do right now. This really ought to be Not Your Problem. To OMZ contributors: this looks to me like more support for ditching
Yeah, no reason you should. This is a bunch of historical stuff going all the way back to the sixties and the particular terminals that were built then. Sorry it's making your (and my) life harder. |
Try to set terminal type = byobu in xmobaterm |
Suggestion from @Lopson works for me. After using
Edit: $TERM need to be |
I tried the fix from @hiephm (my With
I am guessing the errors are talking about my OMZ prompt, which is:
So I either need to
Anybody have suggestions for these? I also tried |
I fixed the issue by using an AutoHotkey script. I wrote a small script that if the active window is MobaXTerm's, change the Home/End keys to "CTRL+A/CTRL+E" respectively. Here's the script if anyone wants to try it out: #If WinActive("ahk_class TMobaXtermForm") End:: |
Thanks @goldeneye977 . Your AutoHotkey script works for me as well. My time in the terminal just got a little bit nicer thanks to you. Cheers. |
BTW @tldrblt, the script has a minor issue. If u detach the MobaXTerm window, it's won't work there because the window's ahk_class changes. This can be fixed by using "ahk_exe MobaXterm.exe" instead. Hope that helps! |
Wow @goldeneye977 I literally spent hours trying to get ALL the other suggestions floating around out there working till I came across your AutoHotKey script. Since I was already using AHK, literally a copy/paste/reload, and 10 seconds later, I am a happy camper. +1 +1 +1 |
I used this solution, but i wrote manually |
This works! |
From MobaXterm window, click "Settings", select "X11", and then deselect "Unix-compatible keyboard". It works for this way. |
It works for me! |
I works for me too. Thanks |
Any chance getting a fix for this? |
The following works with
|
Just to summarize this for people like me, who needed 2h of internet search to fix this with xterm and zsh:
My
The comment at the end of each line (starting with a |
This is the best solution so far !! |
Let's close then, thanks! |
I don't know if putting this up on this project is the right way to go, but when I searched for tickets in this git, I saw similar ones, so here goes.
I have a CentOS 7.2.1511 machine, with ZSH 5.0.2 installed. I have the latest version of oh-my-zsh installed, along with the plugin ZSH-Syntax-Highlighting.
To connect to this machine, I use MobaXTerm (latest version). I connect to the CentOS machine through SSH and present the terminal as being of the "xterm" type (the default option for this SSH client).
The standard HOME, END, DEL, etc keys don't work out-of-the-box. I don't know how to make a Terminfo file for this case, and it seems like I shouldn't be needing to come up with a new Terminfo in the first place, seeing as MobaXTerm truly is an xterm terminal.
As such, I'd like to hear from you on this matter: is there some kind of known bug with this specific ZSH version that impedes MobaXTerm from working as intented?
Thanks for your time.
The text was updated successfully, but these errors were encountered: