-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[Bug]: escape sequence issues with vtm
#20655
Comments
Screenshot url is broken, error 404. |
Works on my end. Anyway, it looks like what's being output there is a escape sequence |
vtm
Can you please re-upload it to github? |
You can just paste an image into the GitHub comment textbox and it will be uploaded to GitHub's CDN. |
by the way, I thought it may be problems with PS1 environment variable, but echo $PS1 it does not work in VTM for termux, I did PS1=A but still the strange numbers appear |
sorry, I cant figure out how to do it on my android tablet, I will try when I get home... |
It seems that more and more terminal emulators and terminal programs supports colon ( red=255 green=100 blue=0
printf "\x1b[38;2;${red};${green};${blue}m TRUECOLOR\n" # Semicolon separated, works in Termux
printf "\x1b[38:2:${red}:${green}:${blue}m TRUECOLOR\n" # Colon separated, does not work in Termux yet See https://github.com/termstandard/colors?tab=readme-ov-file#truecolor-support-in-output-devices, where it can be seen that multiple terminal emulators also support using a colon as delimiter nowadays:
While we could patch our own packages to use semicolon instead of colon, it won't help when ssh:ing to other environments and similar, so it's probably best to add support for colon separated parameters also in Termux - I'll be working on that. It's closely related to the colon parameters for underlines that neovim has started to use - #20620 (comment). |
Problem description
look at the prompt area in the terminal of this image
https://x0.at/IQ6B.jpg
the numbers there get in the way os uing the terminal properly...
What steps will reproduce the bug?
install vtm package
run vtm under termux, and start a terminal on an amazon fire 10 HD plus
What is the expected behavior?
I expected to just see a normal prompt and not to be mixed with numbers
System information
echo $PS1
[\e[0;32m]\w[\e[0m] [\e[0;97m]$[\e[0m]
it does not work in VTM for termux, I did PS1=A but still the strange numbers appear
The text was updated successfully, but these errors were encountered: