Vim Open Terminal
Brighten the default blue in Terminal.app | 12 comments | Create New Account
Click here to return to the 'Brighten the default blue in Terminal.app' hint |
Aug 11, 2017 Last week we announced the exciting news that Windows Console has a new default color scheme, and also promised you that we would release a tool to make it easier to change the console to your desired scheme.The Windows Console team is proud to present the ‘Colortool‘ which you can use to apply the new default color scheme, and several alternate pre-defined color schemes or even schemes. 对于Terminal ,在 solarized/osx-terminal.app-colors-solarized 下双击 Solarized Dark ansi.terminal 和 Solarized Light ansi.terminal 就会自动导入两种配色方案 Dark 和 Light 到 Terminal.app 里. Vim itself runs, and the plugin itself runs, but the colorscheme comes out wrong. I am using jackpal.androidterm app (usually the first one you see if you search 'terminal' on google play). I have tried exporting nearly every terminal type, both through the app and throught a script and I have the app's colorscheme set to 'solarized dark.
![Terminal.app Terminal.app](/uploads/1/2/7/2/127253367/569242147.png)
Mac Vim Color
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Syntax highlighting is working, but I'm finding that regardless of the scheme I choose, the only colors displayed are the basic Red, Blue, Cyan, Gray, etc. Is there a way to get the Terminal app to display a larger collection of colors to allow some more subtle schemes?
hmmmm haven't tried this under osx yet, but (at least with bash) should be possible to modify over the $LS_COLORS environment variable.
type 'set' or 'echo $LS_COLORS' to check your values, and modify them accordingly.
-monotoy
type 'set' or 'echo $LS_COLORS' to check your values, and modify them accordingly.
-monotoy
That was my initial take on it as well, but I figured perhaps someone out there might get something out of this much more low-level modification ;-).
Does the low-level hack accomplish anything you couldn't do with $LS_COLORS?
-rob.
Does the low-level hack accomplish anything you couldn't do with $LS_COLORS?
-rob.
Mac Terminal Vim
I don't mean to sound like I'm flaming, but this is going to cause a lot of novice users grief, for something that's in the documentation.
I ask that when you submit tips, that you research thoroughly, especially when you're submitting hacks (don't get me wrong, hacks are cool).
Hex editing stuff is bad. Especially when the GNU ls documention plainly points to the dircolors stuff.
Just read the documentation (man ls & man dircolors, for those with the GNU ls installed).
RTFM, people.
Some links to check out:
http://www.hollenback.net/index.php?DirColors
http://www.resexcellence.com/terminal/05-11-01.shtml
I ask that when you submit tips, that you research thoroughly, especially when you're submitting hacks (don't get me wrong, hacks are cool).
Hex editing stuff is bad. Especially when the GNU ls documention plainly points to the dircolors stuff.
Just read the documentation (man ls & man dircolors, for those with the GNU ls installed).
RTFM, people.
Some links to check out:
http://www.hollenback.net/index.php?DirColors
http://www.resexcellence.com/terminal/05-11-01.shtml
As the author of this hack I have a few words to say in my defense:
1 - I purposely submitted this hack with no step-by-step directions: I hoped to scare away anyone who wasn't very comfortable with hex-editing and/or PowerPC assembly language.
2 - This hack is *not* the same as changing the dir colours, or modifying the colour map for vim, or wherever else colours are defined.
You see, there are 8 basic colours command line tools can display: black, white, red, green, blue, cyan, yellow and magenta. However, the terminal program (in this case 'Terminal') gets to decide what precise shade to use for those colours. By changing the dir colours, or other user-accessible preferences, the best you can do is tell all your software to never use the blue colour, leaving you with only 7 colours to pick from. I didn't want that!
So, I hacked Terminal to change its definition of 'blue'. It's only slightly brighter (0.2, 0.2, 1) vs. (0, 0, 0.8), but it allows me to use all 8 colours on my terminal (transparent black).
In deference to greygent: It *is* stupid, and it is dangerous. But I had fun tracking it down and I was pleased with the result. I hoped that at least one other 'hacker' out there might appreciate the info, so I submitted it here.
I'd be interested in hearing if anyone else out there was crazy enough to try it..
:-)
1 - I purposely submitted this hack with no step-by-step directions: I hoped to scare away anyone who wasn't very comfortable with hex-editing and/or PowerPC assembly language.
2 - This hack is *not* the same as changing the dir colours, or modifying the colour map for vim, or wherever else colours are defined.
You see, there are 8 basic colours command line tools can display: black, white, red, green, blue, cyan, yellow and magenta. However, the terminal program (in this case 'Terminal') gets to decide what precise shade to use for those colours. By changing the dir colours, or other user-accessible preferences, the best you can do is tell all your software to never use the blue colour, leaving you with only 7 colours to pick from. I didn't want that!
So, I hacked Terminal to change its definition of 'blue'. It's only slightly brighter (0.2, 0.2, 1) vs. (0, 0, 0.8), but it allows me to use all 8 colours on my terminal (transparent black).
In deference to greygent: It *is* stupid, and it is dangerous. But I had fun tracking it down and I was pleased with the result. I hoped that at least one other 'hacker' out there might appreciate the info, so I submitted it here.
I'd be interested in hearing if anyone else out there was crazy enough to try it..
:-)
Could you please clarify one some tidbit for me.. your using the GNU version of 'ls' from fileutils.. and not the apple version of 'ls' correct? …. Since (from what I know) only the GNU file utilities version of ‘ls' has color…. Correct me if I'm wrong please.
Yup. I got GNU ls using Fink, but there are other sources (follow the links above)..
I guess I don't see the point. All you need to do is go Terminal->Preferences.
Guess what? The background color is an option in the 'Text & Colors' screen.
Here is a step by step guide to changing colors..
1. Change the color in Terminal. Make sure to hit 'apply'
2. Quit terminal
3. Change the transparency in TinkerTool.
4. Open Teminal to the baby-blue goodness(?) of your transparent terminal.
Now, on the other hand, if you tracked down the bugs in Entourage..
Guess what? The background color is an option in the 'Text & Colors' screen.
Here is a step by step guide to changing colors..
1. Change the color in Terminal. Make sure to hit 'apply'
2. Quit terminal
3. Change the transparency in TinkerTool.
4. Open Teminal to the baby-blue goodness(?) of your transparent terminal.
Now, on the other hand, if you tracked down the bugs in Entourage..
<me> Insert foot in mouth. </me>I see what you did, you changed the text color of dark blue, as your terminal screen is black.
Man, he sure is getting a lot of flak for his hint! Why do i have so many helper apps in macbook pro. I, for one, understand the value of this. IF you install the fileutils with Fink, and IF you enable colors in the ls command, THEN you will find that the blue colored text in the ls output is worthless on anything other than a white background. The blue text is too dark. Unfortunately, you can't specify RGB values or anything similar in the LS_COLOR variable. If you can't change the color assignment, then change how the terminal presents 'blue.' For us geeks who want the perfect system, this is a good hint. A bit daunting to implement, though. Nice work.
I've tried it and it worked fine. One problem tough it didn't get as bright as I wanted, no real improvement. Would it not be possible to change the color to something like [0 1 1 1] to get a cyan color instead? I don't have all the stuff to figure out exactly how to change this, but shouldn't something like:
lfs f4,21784(r9)
fmr f3,f4
fmr f2,f3
fsubs f1,f2,f3
do this? Also would it not be nice if someone sat down and wrote a patch that did this 'automaticly'?
lfs f4,21784(r9)
fmr f3,f4
fmr f2,f3
fsubs f1,f2,f3
do this? Also would it not be nice if someone sat down and wrote a patch that did this 'automaticly'?
Sending starbucks gift card using message app on mac. All digital gifts purchased through Starbucks’ iMessage app are charged to your credit or debit card registered with Apple Pay.
I don't know if going with cyan would really be an 'improvement', if you just want cyan text, then you can simply remap the colours the way that greygent suggested.
It's true that the 'lighter' blue that I was able to achieve is still a little darker that is ideal. In my testing I found (0.3, 0.3, 1) to be better, but I couldn't find a way to calculate 0.3 in just 4 instructions (you can't increase the number of instructions without breaking the whole application.)
I also thought that it would be nice to be able to work out different colours for bold vs. normal text. It turns out that Terminal stores two colour objects, one for bold text, one for normal text, but then initializes them to the same value. You could use slightly different shades to indicate bold colours..
As for building a patch tool, I would only consider it if I could figure out a way to specify all colours explicitly. Anything less is just 'much ado about nothing'.. (Plus the patch would only work on one version of Terminal.app.)
Cheers,
-dete
It's true that the 'lighter' blue that I was able to achieve is still a little darker that is ideal. In my testing I found (0.3, 0.3, 1) to be better, but I couldn't find a way to calculate 0.3 in just 4 instructions (you can't increase the number of instructions without breaking the whole application.)
I also thought that it would be nice to be able to work out different colours for bold vs. normal text. It turns out that Terminal stores two colour objects, one for bold text, one for normal text, but then initializes them to the same value. You could use slightly different shades to indicate bold colours..
As for building a patch tool, I would only consider it if I could figure out a way to specify all colours explicitly. Anything less is just 'much ado about nothing'.. (Plus the patch would only work on one version of Terminal.app.)
Cheers,
-dete
I just finished a hack that adds a full color picker for all the ANSI colors in the Terminal.app. It solves this problem and lets you arbitrarily set any of the colors in the prefs file, or a .term file.
http://culater.net/TerminalColors/TerminalColors.html
http://culater.net/TerminalColors/TerminalColors.html