-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Escape codes not interpreted properly in /bin/ksh on macOS Big Sur #14
Comments
It seems other escape codes are messing with things - for example, starting a fresh Terminal, typing 'ls' (vi mode is active), then hitting tab twice to trigger an autocomplete list results in the following: I'll dig a bit if I have time, but let me know if you want me to do anything specific. Note I'm running off of the develop branch (as it's even with master). |
Thanks for reporting this! Yes I can see those escape sequences; Are all the instances of this problem occurring right after you've started a new Could you test running Also, could you run |
Also, try what I've got on the |
Note that the In answer to your general question about whether the issues happen after opening a new terminal: one of them does! It appears that the problem with auto-completion only happens as the first command. Multi-line settings do not have an effect on it. So, the auto-complete causing termination of the shell happens only on the first command after opening a new shell. The second issue (cursor moving about when recalling history, and cursor doing strange things when moving left or right) does not only happen on the first command. Interestingly, when I Below is the information you requested. KSH version: dave ~ $ echo ${.sh.version}
Version AJM 93u+ 2012-08-01 In Terminal: dave ~ $ echo $TERM
xterm-256color In wezterm: dave ~ $ echo $TERM
xterm-256color |
Hrm... I'm looking at term-hack and there doesn't seem to be a difference between term-hack, develop, or master. Am I missing something? dave ~/.rc/polyglot (term-hack) $ git ls-remote upstream | head -n 4
55d4044b07978b6cceb98423f99e8773c29e6659 HEAD
55d4044b07978b6cceb98423f99e8773c29e6659 refs/heads/develop
55d4044b07978b6cceb98423f99e8773c29e6659 refs/heads/master
55d4044b07978b6cceb98423f99e8773c29e6659 refs/heads/term-hack |
Give the branch another pull. Thanks for your patience. |
OK. Just to be absolutely thorough, on the |
I'll keep trying to reproduce the other stuff as well. |
I'm 99.99% sure my prompt couldn't be causing the memory fault! It's probably worth researching that problem elsewhere. The business with the cursor jumping around, though, could conceivably be Polyglot's fault. I'm not sure yet. I don't have a Mac to experiment with, but I do notice a problem with horizontal scrolling on OpenIndiana that must be my fault. Give me a little while to fix that and we'll see if it improves your situation at all. |
That sounds good - I'm certain (even though I may be wrong) that the memory fault is not polyglot - this shell is pretty ancient, after all. :) Once you get the fixes for the horizontal scrolling in, I'll check that out and see if if fixes my other issues. Thanks for the help, and the information about multiline! |
Oh! I just realized that this is all in vi editing mode. I have not been able to duplicate the weird cursor movement in emacs editing mode. The auto-complete memory fault does happen in either mode. |
That's really meaningful, I think -- the point about |
Interestingly, the tab completion problem you've run into looks a little like this -- but that would appear to be a bug more recently introduced into the shell. |
Yes, and in that thread it is mentioned that the problems are throughout the code base, so this could just be another example. I'll do a trace of it when I get a chance. |
I'm running polyglot using ksh on macOS Big Sur v11.6.
When running it on CentOS or RHEL, the longer commands slide, so they stay on one line.
However, whether I use polyglot within wezterm or the default Terminal app, scrolling back to a long line or typing in a long line will result in the cursor jumping around. The simplest example I've been able to reproduce is executing a git command that exceeds the line length, then opening a new shell and pressing up arrow twice with the intention of re-running (or modifying) the long git command.
The result of that sequence of actions in an 80x24 Terminal is shown in the image below:
I also experience strange behavior when moving left and right on long commands, but I believe those are related to this issue, so will wait until we figure out how to solve this and see if the others go away.
The text was updated successfully, but these errors were encountered: