In VIM one can easily change colours with ":set backgorund=dark". This doesn't actually change the background, but rather uses a colour scheme that is designed for a dark background. Is there any quick command like this for bash? I don't want to edit the whole config file if there is a quick way to get a better colour scheme.
Thanks.
On 17/08/2011 23:51, Dotan Cohen wrote:
In VIM one can easily change colours with ":set backgorund=dark". This doesn't actually change the background, but rather uses a colour scheme that is designed for a dark background. Is there any quick command like this for bash? I don't want to edit the whole config file if there is a quick way to get a better colour scheme.
Thanks.
No, there is not such option in bash.
There are some terminal applications that allow to change the colourscheme though (like konsole)
Regards
On Thu, 18 Aug 2011, Marc Deop i Argemí wrote:
To: CentOS mailing list centos@centos.org From: Marc Deop i Argemí damnshock@gmail.com Subject: Re: [CentOS] Change bash colours like in VIM
On 17/08/2011 23:51, Dotan Cohen wrote:
In VIM one can easily change colours with ":set backgorund=dark". This doesn't actually change the background, but rather uses a colour scheme that is designed for a dark background. Is there any quick command like this for bash? I don't want to edit the whole config file if there is a quick way to get a better colour scheme.
Thanks.
No, there is not such option in bash.
There are some terminal applications that allow to change the colourscheme though (like konsole)
In a konsole terminal window look under Settings->Schema for some preset colour schemes. Also take a look under Settings->Configure Konsole->Schema for more advanced options :)
Personally I like white text on a black background.
Kind Regards,
Keith Roberts
----------------------------------------------------------------- Websites: http://www.karsites.net http://www.php-debuggers.net http://www.raised-from-the-dead.org.uk
All email addresses are challenge-response protected with TMDA [http://tmda.net] -----------------------------------------------------------------
On 18/08/2011 12:26, Keith Roberts wrote:
On Thu, 18 Aug 2011, Marc Deop i Argemí wrote:
To: CentOS mailing list centos@centos.org From: Marc Deop i Argemí damnshock@gmail.com Subject: Re: [CentOS] Change bash colours like in VIM
On 17/08/2011 23:51, Dotan Cohen wrote:
In VIM one can easily change colours with ":set backgorund=dark". This doesn't actually change the background, but rather uses a colour scheme that is designed for a dark background. Is there any quick command like this for bash? I don't want to edit the whole config file if there is a quick way to get a better colour scheme.
Thanks.
No, there is not such option in bash.
There are some terminal applications that allow to change the colourscheme though (like konsole)
In a konsole terminal window look under Settings->Schema for some preset colour schemes. Also take a look under Settings->Configure Konsole->Schema for more advanced options :)
Personally I like white text on a black background.
Kind Regards,
Keith Roberts
Websites: http://www.karsites.net http://www.php-debuggers.net http://www.raised-from-the-dead.org.uk
All email addresses are challenge-response protected with TMDA [http://tmda.net]
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
The best colourscheme for the eyes is a dark background with an even darker text color.
And the worst would be dark background with light color for the text (although many "geeks" use that combination...)
Regards
On Thu, 18 Aug 2011, Marc Deop i Argemí wrote:
*snip*
The best colourscheme for the eyes is a dark background with an even darker text color.
And the worst would be dark background with light color for the text (although many "geeks" use that combination...)
I find the white background on some html manuals, like php and mysql give me a headache and eye strain after a while.
So for my local downloaded copy of php docs, Smarty docs, and MySQL docs I use these scripts to change the background colour for those html manuals:
#!/bin/bash
# bash script to change BGCOLOR on all mysql document # files in CWD # this file needs to be in and run from the # mysql html document directory
for file in *.html do # display a listing of all files in CWD #ls -l "$file"
# show progress of script echo "Processing $file";
# -i sed option writes changes to current file being processed # # this changes BGCOLOR from white to a purple color # - choose your background color by editing #BC88FF # - to the hex color value of your choice sed -i s/bgcolor="white"/bgcolor="#C7E2FF"/g "$file" done exit 0
and for the PHP manual I use a PHING project script to add a stylesheet declaration to each html page:
<?xml version="1.0" ?>
<project name="adding stylesheet tag" default="main" basedir=".">
<target name="main">
<echo msg="adding stylesheet tag..." />
<reflexive> <fileset dir="."> <include name="*.html" />
<!-- <include name="**/*" />
<exclude name="tmp-backups/**" /> <exclude name="*.xml" /> <exclude name="*.xml.bak" /> <exclude name="**/*.xml" /> <exclude name="**/*.xml.bak" /> -->
</fileset>
<filterchain> <replaceregexp> <regexp pattern="<head>" replace="<head> <link rel="stylesheet" type="text/css" href="MY-style.css" />" />
</replaceregexp> </filterchain>
</reflexive>
</target>
</project>
Plus you will need the stylesheet for the php manual in the /php-chunked-xhtml *.html docs directory:
# MY-style.css
body { background-color: #66CC33; }
.phpcode { background-color: #CCFFFF; padding-top: 10px; padding-bottom: 10px; padding-left: 12px; width: auto; }
and for the Smarty 2.6 html manual I use:
#!/bin/bash
# bash script to change BGCOLOR on all smarty document files in CWD # this file needs to be in and run from the smarty document html directory
for file in *.html do # display a listing of all files in CWD #ls -l "$file"
# show progress of script echo "Processing $file";
# -i sed option writes changes to current file being processed # # this changes BGCOLOR from white to a purple color # - choose your background color by editing #BC88FF # - to the hex color value of your choice sed -i s/bgcolor="white"/bgcolor="#C7E2FF"/g "$file" done exit 0
Kind Regards,
Keith Roberts
----------------------------------------------------------------- Websites: http://www.karsites.net http://www.php-debuggers.net http://www.raised-from-the-dead.org.uk
All email addresses are challenge-response protected with TMDA [http://tmda.net] -----------------------------------------------------------------
On Thu, Aug 18, 2011 at 11:45 AM, Marc Deop i Argemí damnshock@gmail.com wrote:
The best colourscheme for the eyes is a dark background with an even darker text color.
And the worst would be dark background with light color for the text (although many "geeks" use that combination...)
This is an interesting little article on the subject: http://www.searo.who.int/en/Section7/Section22/Section1105/Section1106_4272....
On Fri, 2011-08-19 at 03:17 +0100, Lucian wrote:
This is an interesting little article on the subject: http://www.searo.who.int/en/Section7/Section22/Section1105/Section1106_4272....
" Choose a contrasted display, with dark characters on a light background."
Always my personal preferred choice :-)
On Thu, Aug 18, 2011 at 13:26, Keith Roberts keith@karsites.net wrote:
In a konsole terminal window look under Settings->Schema for some preset colour schemes. Also take a look under Settings->Configure Konsole->Schema for more advanced options :)
Thanks. Keith.
On Thu, Aug 18, 2011 at 12:34, Marc Deop i Argemí damnshock@gmail.com wrote:
On 17/08/2011 23:51, Dotan Cohen wrote:
In VIM one can easily change colours with ":set backgorund=dark". This doesn't actually change the background, but rather uses a colour scheme that is designed for a dark background. Is there any quick command like this for bash? I don't want to edit the whole config file if there is a quick way to get a better colour scheme.
Thanks.
No, there is not such option in bash.
There are some terminal applications that allow to change the colourscheme though (like konsole)
Thanks. Most of the time when I'm in a terminal it is through an emulator such as Konsole.