-
Notifications
You must be signed in to change notification settings - Fork 1.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
Micro uses foot's bright7
color instead of default
listed in color scheme file
#3101
Comments
Is the environment variable |
No. I just tried to enable it and it doesn't have any influence... And it also doesn't affect |
I do not know much about terminals but I think another color was used because 24-bit color was disabled. The 8th color ( 24-bit color was probably disabled because foot is not in the terminfo database in micro, but I think other programs usually use the system database. There is an isuse about the terminfo database being included: #2543 I tried reading "TRUECOLOR" section in the manpage of foot and I do not know if the terminfo entries have to be used, but I think it is related. 24-bit colors is just disabled if micro/internal/screen/screen.go Lines 144 to 149 in 2d82362
|
So you mean to try: |
But i just found one fun thing. EDIT: it looked like it is without bug. Just because I opened plain micro and saw white as expected... What is wrong? Idk I can say that colors are loosed but not more before further research P.S Happy New Year |
Sorry, I realized there is probably something wrong with what I thought about |
No, I was only thinking about trying to run with I did not say that I thought the included terminfo database only is used, but entries in files are also used so the entries of foot are used. I do not think
I have not used Wayland before so I tried copying the terminfo entry of foot in Debian 12 and using a terminal emulator where 24-bit color is enabled, but it was enabled when I think this script can be used when testing and changing #!/bin/sh
set -u -e
[ $# -gt 0 ] && export MICRO_TRUECOLOR=1
echo "COLORTERM ${COLORTERM:--} MICRO_TRUECOLOR ${MICRO_TRUECOLOR:--}"
# opening micro takes a while when using other terminal emulators and
# TERM is foot-direct, not tested
for t in xterm xterm-color xterm-256color xterm-truecolor foot; do
printf %s $t
read _
TERM=$t micro -colorscheme monokai
done This is what it was like when I used the terminal emulator I was using: I apologize that what I have said was confusing and that I was not able to answer properly. |
I tried testing using foot and GNOME Terminal in Debian 12 but 24-bit color was only enabled when I set The variable can be set like this when running micro: MICRO_TRUECOLOR=1 micro
micro # running again, variable is not set The variable can also be set and exported in another line like this so that it will be set when it is not set in a command: export MICRO_TRUECOLOR=1
micro |
You are right it wasn't exported. My habit is to put Foot works as expected when the |
24-bit color is disabled when It can be seen in this video that the colors are different when simplescreenrecorder-2024-02-04_21.19.45.mp4 |
Yeah. It is correct. I just changed the color in gnome terminal and so that micro uses it as like in foot. Thanks! |
Description of the problem or steps to reproduce
I tried new theme for terminal and found a strange bug: micro uses foot's
bright7
color instead ofdefault
listed in color scheme file. Ifbright7
color isn't set, micro use default color as expected...Here you can see
![screen-1703444329](https://private-user-images.githubusercontent.com/97330399/292685987-0eda9018-5eb5-4e0c-ab85-8d10127a5563.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk0MTc2MDEsIm5iZiI6MTcxOTQxNzMwMSwicGF0aCI6Ii85NzMzMDM5OS8yOTI2ODU5ODctMGVkYTkwMTgtNWViNS00ZTBjLWFiODUtOGQxMDEyN2E1NTYzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI2VDE1NTUwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQxZjA5Mzc3YzQyMjE2MDk4YzEyYzIyNTYxN2M3OWE1YTcwNzEzOWZmMmExYTczOWY5NWQzYmNhOTVhMDA2NWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.w1UY1Gu6bMwEJKVWpKNsEvUgdbBoePi36YjhWfvQHx0)
monokai
theme that uses terminals red color instead of usual white:Monokai theme specifies two colors:
color-link default "#F8F8F2,#282828"
and it works in the terminals but foot for some reason behaves differently...Specifications
Commit hash: 2d82362
OS: Debian12
Terminal: affects only foot!
The text was updated successfully, but these errors were encountered: