help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to disable font-lock-mode in minibuffer?


From: Dan Espen
Subject: Re: How to disable font-lock-mode in minibuffer?
Date: Wed, 20 Mar 2013 11:43:26 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

"Alexandre Oberlin" <email_through@migo.info> writes:

> Hi Stefan,
>
> Only marginal items have slightly difficult to read faces. tool-bar is
> black on black but maybe this is not relevant.
>
> I have just upgraded from 24.2.1 to 24.3.1 without adjusting
> anything. I still seem to have 8 colors only but the red on black
> looks brighter. Am I dreaming ?

Yes.

If you are running in a terminal, the terminal program sets the colors.
There is no way Emacs can adjust those colors.

I think you are on Windows?  If you have bash (Cygwin) installed,
you should be able to run this:

#!/bin/bash
  function colorred     {  echo -e '\033[31m'; }
  function colorgreen   {  echo -e '\033[32m'; }
  function coloryellow  {  echo -e '\033[33m'; }
  function colorblue    {  echo -e '\033[34m'; }
  function colormagenta {  echo -e '\033[35m'; }
  function colorcyan    {  echo -e '\033[36m'; }
  function colorwhite   {  echo -e '\033[37m'; }
  function ulon         {  echo -e '\033[4m';  }
  function uloff        {  echo -e '\033[24m'; }
  function blinkon      {  echo -e '\033[5m';  }
  function blinkoff     {  echo -e '\033[25m'; }
  function boldon       {  echo -e '\033[1m';  }
  function boldoff      {  echo -e '\033[22m'; }
  
tput reset
tput clear
ul="`ulon`Underlined.`uloff`"
bo=`boldon`Bold.`boldoff`
bl=`blinkon`Blink.`blinkoff`

echo "Demo to show all the xterm colors"
echo ""
echo     "`colorred`Red     - not my favorite.          $ul $bo $bl"
echo    "`colorblue`Blue    - can be too dark.          $ul $bo $bl"
echo  "`coloryellow`Yellow  - The color of a chicken.   $ul $bo $bl"
echo   "`colorwhite`White   - Screen background not white.      $ul $bo $bl"
echo   "`colorgreen`Green   - With envy.                        $ul $bo $bl"
echo    "`colorcyan`Cyan    - a light blue.                     $ul $bo $bl"
echo "`colormagenta`Magenta - a light red.                      $ul $bo $bl"
echo ""
colorwhite
echo "And now in reverse image:"
tput smso
echo ""
echo     "`colorred`Red     - not my favorite.          $ul $bo $bl"
echo    "`colorblue`Blue    - can be too dark.          $ul $bo $bl"
echo  "`coloryellow`Yellow  - The color of a chicken.   $ul $bo $bl"
echo   "`colorwhite`White   - Screen background not white.      $ul $bo $bl"
echo   "`colorgreen`Green   - With envy.                        $ul $bo $bl"
echo    "`colorcyan`Cyan    - a light blue.                     $ul $bo $bl"
echo "`colormagenta`Magenta - a light red.                      $ul $bo $bl"
echo ""
tput rmso


I used this to make sure all 8 colors were readable on my chosen
background.  If any of them aren't use the terminal program to adjust.

You can convince Emacs not to use Red and Blue, but I think you really
want your terminal to produce readable red and blue.

With a little investigation you should be able to find a 256 color
terminal program but I'd still want to make sure I had a readable red
and blue.

-- 
Dan Espen


reply via email to

[Prev in Thread] Current Thread [Next in Thread]