-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
vim.exe to 256 colors, too #2821
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2821 +/- ##
==========================================
- Coverage 75.4% 75.39% -0.01%
==========================================
Files 92 92
Lines 134598 134739 +141
==========================================
+ Hits 101490 101593 +103
- Misses 33108 33146 +38
Continue to review full report at Codecov.
|
Nobuhiro Takasaki wrote:
To switch to 256 colors, enter ":set t_Co=256" without the termguicolors.
To return to 16 colors, enter ":set t_Co=16".
It exists with vtp (vcon).
FEAT_TERMGUICOLORS is required.
After I wrote a 24-bit patch, I realized that I can not use the 256 color scheme https://github.com/KKPMW/moonshine-vim so I can use it.
enjoying.
Thanks for looking into this.
It looks like the color tables are the same as what is used in
terminal.c. They should be moved to a common place, probably globals.h.
It should be possible to use an enum for curr_mode.
Have some users tried this out?
…--
hundred-and-one symptoms of being an internet addict:
234. You started college as a chemistry major, and walk out four years
later as an Internet provider.
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|
src/globals.h
Outdated
#endif | ||
; | ||
|
||
extern int grey_ramp[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't be EXTERN
instead of extern
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh...
Only I did the test. |
I do not have any friends in the test... |
Is |
I just got to know ConEmu. I will look at ConEmu from now. |
I have seen ConEmu now. |
I check value of For |
Thank you for the example. |
Is |
With the above fix, |
I had issues using 256 colors (with or without |
256 colors cannot be used within |
This PR is to use 256 colors with "Vim.Win32" with cmd.exe. With vcon patch (8.0.1531), there was a possibility that I broke the operation before that. It rewrote with the previous commit. I would like to make it simple, too. It will be discussed again on another occasion. |
Note that, although I included the code change, it would still be nice to have an explanation in the help about how this all works. |
@ntak I cannot set
|
@k-takata Does |
The current |
PR: #2883 |
Problem: Cannot use 256 colors in a MS-Windows console. Solution: Add 256 color support. (Nobuhiro Takasaki, closes vim#2821)
Hello,
To switch to 256 colors, enter ":set t_Co=256" without the termguicolors.
To return to 16 colors, enter ":set t_Co=16".
It exists with vtp (vcon).
FEAT_TERMGUICOLORS is required.
After I wrote a 24-bit patch, I realized that I can not use the 256 color scheme https://github.com/KKPMW/moonshine-vim so I can use it.
enjoying.