Invert mocha's diff colors output? - mocha.js

For example, by default, background colors is green or red. I'd like to have green/red as a foreground, and background to be my default color (which is white).
Because it's really hard to see anything on light terminal color scheme, since foreground is black and background changes to red or green.

In the mocha source there is a file called base.js under the reporters directory. There you can alter the colors according to the bash color guide. http://misc.flogisoft.com/bash/tip_colors_and_formatting

You can change the project.json entry for test to mocha -C to disable all coloring in the terminal output, for better readability.

Related

Dark Grey Background Color in ZSH using Autoload

I would like to create a dark grey background for my prompt in ZSH and am not using 256-color mode. I'm loading the colors with autoload and cannot get it to show any greys besides a single foreground grey.
I've tried every combination of greys that I could think of.
autoload colors && colors
PS1="%{$bg_no_bold[grey]%}%{$fg_no_bold[grey]%} NoBold %{$bg_bold[grey]%}%{$fg_bold[grey]%} Bold %{$bg[grey]%}%{$fg[grey]%} Normal"
I would expect the code below to show basically show two or three shades of grey, the words would obviously be unreadable because the foreground and the background are the same colors, but all I get as results are two dark grey words (no background colors at all): "Bold Nothing"
The solution I found was to set black as black, white as bold white, bold grey as non-bold white and non-bold grey I needed to specify the ANSI value for:
BlackFG="%{$fg[black]%}"
WhiteFG="%{$fg_bold[white]%}"
BoldGreyFG="%{$fg_no_bold[white]%}"
NonBoldGreyFG="%F{8}"
It seems like what I call non-bold grey is not included in the auto-load colors, though it would be nice for someone to chime in if they have any idea why this dark grey color appears to be missing.

Background color and console text color

I am using PowerShell and I have run into the issue that I cannot distinguish certain colored text from the background. I have tried to go with default PowerShell blue, black, white, grey... There is a problem with all colors. For example with white - vagrant is colored yellow. If I choose black or blue then I cannot see Laravel's artisan which is blue (inside vagrant box). On grey I think I didn't read yellow and the bring green from logging into vagrant.
It's not as if I can change the background on the go as it often retains the background color as text background color. Also switching constantly would be annoying. I have tried Googling said issue but I have not come across anything that corresponds to the issue I am having. Surely there is a solution for this somehow?
I am posting this as a separate post since the only response I got was missing a few details to make it complete.
If you ever run across this error, then you indeed go to Properties > Colors and not only change the background color but change all the other colors presets to match. They are not there to offer you some presets to choose from, which I mistakenly believed - they are actual color definitions used by the console. When you are done, make sure that the selected colors for background, text etc have not shifted.
For example: PowerShell is dark blue. As such you cannot use colors that are similar and the bright regular blue I will change to light blue, which stands out easily. And voilá.
You should be able to change the text color for specific syntax in the colors tab. In the properties tab when you right click on power shell. Go to colors tab and edit it according

Change VS2013 WorkFlow Background

I'm using the dark theme for VS2013. The workflow designer background for a SSIS package is quite the eyesore. It's a black background, which is fine, and has a white/creme colored lines. I'm assuming that the lines are meant to be there to distinguish that it is the background and not an element, but it makes horizontal lines a pain to look at. Also, the blue completion lines are barely visible. So is there a way to change the color and get rid of the lines?
Screenshot
NOTE:
The lines seem to only be there during debug, just noticed. So if there is no way of removing them, it's not that big of a deal.

How to show the vim theme in its original colors using iTerm

I have a Linux box,. I use "Konsole" application. Inside "Konsole" the original colorschemes for Vim always show up right. They are not limited by the color palettes defined by the Konsole. Anytime I change the Konsole colorscheme, the terminal Vim colors are left intact.
However, in iTerm I can never get the exact colors for the schemes. If I change the iTerm theme, the Vim colors get mixed up too.
Is there any way to show up the vim theme in its original colors using iTerm, the absolute colors?
:echo &t_Co
returns 256.
I recently asked a similar question which got migrated to superuser. My problem was that white actually gave me grey.
In my console there was a colour palette and X11 colour names were actually mapped to a position on the palette. Changing the palette changes the colour, the meaning of X11 White is rendered according to palette location 16 in my case.

Unexpected colors with solarized dark theme on emacs (blue background)

I have set my iterm2 to use the solarized color theme:
I would also like to have emacs use this theme. Here's what it looks like:
I have my terminal set to xterm-256color. I don't know what I've missed, but it makes me sad.
Help appreciated.
It turns out that the official (or officially endorsed) soliarized git repo has a version that is less good than this one.
I switched to the latter and it fixed the issue.
You want to use the default background color set in iTerm2 itself. The problem is, you also have emacs setting the default background color (which overrides iTerm's default)!
If you remove the command changing the background color, it should return to iTerm2's default.
You most likely have something like the following in your .emacs:
(custom-set-faces '(default ((t (:background "blue"))) t))
To use the Terminal's default background color, do not set the ":background" attribute at all. Note that setting it to black will NOT always work correctly (though in your case it probably will)!
I use gnome-terminal with transparency, and setting the default ":background: black" made the window completely opaque. I had to remove the ":background" setting in order to get my transparency back.
You can still set the default ":foreground" attribute and it will work; just don't set ":background" (did you get that? maybe I should repeat it again. :) ) so you keep your Terminal default background!
Use only the solarized theme in your iTerm configuration and not in your console emacs.
For me the problem was having a gaudy dark green background colour on terminal emacs:
I fixed it by changing the background colour from #272822 to #222222. For some reason iTerm2 and/or command line emacs/aquamacs changes the very mildly green background colour into gaudy dark green hue.
(custom-set-variables
'(default-frame-alist
'((background-color . "#272822")
(background-mode . dark))))

Resources