Hot answers tagged color-management
There are many color schemes which are usually distributed together with vim. You can select them with the :color command. You can see the available color schemes in vim's colors folder, for example in my case: $ ls /usr/share/vim/vim73/colors/ blue.vim darkblue.vim default.vim delek.vim desert.vim elflord.vim evening.vim koehler.vim morning.vim ...
You can do it manually with this command: :hi Comment guifg=#ABCDEF Where ABCDEF is an appropriate color hex code. To make it permanent, you will need to add these lines to your ~/.vimrc file (using green as an example): syntax on :highlight Comment ctermfg=green
As you are using a dark background in your terminal, you simply need to set :set background=dark instead of the default :set background=light The colors are then automatically correctly set. If you want to have this permanently, add the line set background=dark to your $HOME/.vimrc file.
The important part of that wikia link is: :set t_Co=256 Entering this in normal mode (or putting it in your ~/.vimrc) will force vim to try to use 256 colors, which should override gnome-terminal's color scheme. Apparently, while gnome-terminal is capable to 256 colors, it doesn't advertise that fact in a way that vim can detect, which is why setting ...
One option I found was in terminal preferences (top menu, not the window). This has profile preferences and then a color tab, e.g. Changing the Palette entry 5 from Dark blue to Light Lilac helped. I finally chose xterm as the color scheme and lightened up the comment color e.g.
The gs example The gs command you're running above has a trailing $1 which is typically meant for passing command line arguments into a script. So I'm not sure what you actually tried but I'm guessing that you tried to put that command into a script, script.sh: #!/bin/bash gs -sOutputFile=output.pdf \ -q -dNOPAUSE -dBATCH -dSAFER \ ...
I found a script here that can do this. It requires gs which you seem to have but also pdftk. You have not mentioned your distribution but on Debian-based systems, you should be able to install it with apt-get pdftk You can find RPMs for it here. Once you have installed pdftk, save the script as graypdf.sh and run like so: ./greypdf.sh input.pdf It ...
I had precisely this problem a little while ago, the solution is to place the following line in your vimrc file: set t_Co=256 And then you might have to put the following at the end of your your ~/.profile: #set vim terminal to 256 colors. if [ -e /usr/share/terminfo/x/xterm-256color ]; then export TERM='xterm-256color' else export ...
No, if it's connecting directly to the printer, you cannot set "defaults" unless the program that is making the connection has some way to do so. (This is not OS-dependent.) You would need to do something much more complex, such as using iptables to intercept the connection and redirect it to a program which filtered the data.
Save a python script like this: #!/usr/bin/python from PIL import Image, ImageFont, ImageDraw import sys im = Image.new('CMYK', (1000,1000), (0, 0, 0, 255)) f = ImageFont.load_default() d = ImageDraw.Draw(im) d.text((500, 500), sys.argv, font = f, fill = (0, 0, 0, 0)) del d im.save(sys.argv) Dependencies are python and the python imaging library. ...
Only top voted, non community-wiki answers of a minimum length are eligible