1. ed background colour

I use ed and would prefer the background to be BRIGHT_WHITE for better contrast
with the default syntax colours, but after changing it remains WHITE. Is this a
limitation of ed?
thanks.

new topic     » topic index » view message » categorize

2. Re: ed background colour

Jules Davy wrote:
> 
> I use ed and would prefer the background to be BRIGHT_WHITE for better
> contrast
> with the default syntax colours, but after changing it remains WHITE. Is this
> a limitation of ed?
> thanks.

I myself have never used ed.ex. As far as I know it is an antiquated editor.

I believe most people are using Edita now in which changing the background 
color is very easy.

Don Cole

new topic     » goto parent     » topic index » view message » categorize

3. Re: ed background colour

don cole wrote:

> I myself have never used ed.ex. As far as I know it is an antiquated editor.
> 
> I believe most people are using Edita now in which changing the background 
> color is very easy.
> 
> Don Cole

I'm using Linux so can't use Edita.  Having got used to ed I find it much more
efficient than the usual gui editors, no constant switching between mouse and
keyboard. It's also fast and light with large files loading in a fraction of the
time taken by heavier editors, and the code completion and error finding are also
nice features. Ed may be simple, but it does what it was designed to do very well
IMO.

new topic     » goto parent     » topic index » view message » categorize

4. Re: ed background colour

Jules Davy wrote:
> I use ed and would prefer the background to be BRIGHT_WHITE for better
> contrast
> with the default syntax colours, but after changing it remains WHITE. Is this
> a limitation of ed?

I think it may be a limitation of the PC hardware,
or DOS, or the Linux text console.
I don't think the BRIGHT *background* colors are fully supported. 
Anyway, my impression was that a dull white
or gray background made the foreground colors look better.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

5. Re: ed background colour

> I think it may be a limitation of the PC hardware,
> or DOS, or the Linux text console.
> I don't think the BRIGHT *background* colors are fully supported. 
> Anyway, my impression was that a dull white
> or gray background made the foreground colors look better.

Ok thanks Rob, guess I'll learn to live with white. :)

new topic     » goto parent     » topic index » view message » categorize

6. Re: ed background colour

Robert Craig wrote:
> 
> Jules Davy wrote:
> > I use ed and would prefer the background to be BRIGHT_WHITE for better
> > contrast
> > with the default syntax colours, but after changing it remains WHITE. Is
> > this
> > a limitation of ed?
> 
> I think it may be a limitation of the PC hardware,
> or DOS, or the Linux text console.
> I don't think the BRIGHT *background* colors are fully supported. 
> Anyway, my impression was that a dull white
> or gray background made the foreground colors look better.
> 
> Regards,
>    Rob Craig
>    Rapid Deployment Software
>    <a href="http://www.RapidEuphoria.com">http://www.RapidEuphoria.com</a>


Rob, I think the Euphoria documentation should reflect this
problem somewhere.




Ken Rhodes
Folding at Home: http://folding.stanford.edu/
100% MicroSoft Free
SuSE Linux 10.0
No AdWare, SpyWare, or Viruses!
Life is Good,  smile

new topic     » goto parent     » topic index » view message » categorize

7. Re: ed background colour

Robert Craig wrote:
> 
> Anyway, my impression was that a dull white
> or gray background made the foreground colors look better.
> 
These are the colors I use.  I've found them to be quite easy on the eyes.
-- colors
constant TOP_LINE_TEXT_COLOR = YELLOW,
	 TOP_LINE_BACK_COLOR = RED, 
	 TOP_LINE_DIM_COLOR = BLUE,
	 BACKGROUND_COLOR = BLUE

-- colors needed by syncolor.e:
-- Adjust to suit your monitor and your taste.
global constant NORMAL_COLOR = BRIGHT_WHITE,   -- GRAY might look better
		COMMENT_COLOR = BRIGHT_GREEN,
		KEYWORD_COLOR = YELLOW,
		BUILTIN_COLOR = BRIGHT_RED,
		STRING_COLOR = BRIGHT_CYAN,   -- BROWN might look better
		BRACKET_COLOR = {NORMAL_COLOR, YELLOW, BRIGHT_WHITE, 
				 BRIGHT_BLUE, BRIGHT_RED, BRIGHT_CYAN, 
				 BRIGHT_GREEN}

Mike Sabal

new topic     » goto parent     » topic index » view message » categorize

8. Re: ed background colour

Michael J. Sabal wrote:
> 
> Robert Craig wrote:
> > 
> > Anyway, my impression was that a dull white
> > or gray background made the foreground colors look better.
> > 
> These are the colors I use.  I've found them to be quite easy on the eyes.
> }}}
<eucode>
> -- colors
> constant TOP_LINE_TEXT_COLOR = YELLOW,
> 	 TOP_LINE_BACK_COLOR = RED, 
> 	 TOP_LINE_DIM_COLOR = BLUE,
> 	 BACKGROUND_COLOR = BLUE

??? TOP_LINE_DIM_COLOR and BACKGROUND_COLOR are the same?




> -- colors needed by syncolor.e:
> -- Adjust to suit your monitor and your taste.
> global constant NORMAL_COLOR = BRIGHT_WHITE,   -- GRAY might look better
> 		COMMENT_COLOR = BRIGHT_GREEN,
> 		KEYWORD_COLOR = YELLOW,
> 		BUILTIN_COLOR = BRIGHT_RED,
> 		STRING_COLOR = BRIGHT_CYAN,   -- BROWN might look better
> 		BRACKET_COLOR = {NORMAL_COLOR, YELLOW, BRIGHT_WHITE, 
> 				 BRIGHT_BLUE, BRIGHT_RED, BRIGHT_CYAN, 
> 				 BRIGHT_GREEN}
> </eucode>
{{{

> Mike Sabal

Here's my take:

-- colors

integer TOP_LINE_TEXT_COLOR, TOP_LINE_BACK_COLOR, 
	TOP_LINE_DIM_COLOR, BACKGROUND_COLOR

constant BACKGROUND_GREEN = FALSE
constant ED_EX_CLASSIC = FALSE

if ED_EX_CLASSIC then
    TOP_LINE_TEXT_COLOR = BLACK
    TOP_LINE_BACK_COLOR = BROWN
    TOP_LINE_DIM_COLOR = BLUE
    BACKGROUND_COLOR = WHITE

elsif BACKGROUND_GREEN then
    TOP_LINE_TEXT_COLOR = BLACK
    TOP_LINE_BACK_COLOR = GREEN
    TOP_LINE_DIM_COLOR = BRIGHT_CYAN
    BACKGROUND_COLOR = WHITE

else   -- blue back ground, yellow text 
       -- edx.ex default colors
    TOP_LINE_TEXT_COLOR = YELLOW
    TOP_LINE_BACK_COLOR = BLUE
    TOP_LINE_DIM_COLOR = BRIGHT_CYAN
    BACKGROUND_COLOR = WHITE
end if


-- colors needed by syncolor.edx:
-- Adjust to suit your monitor and your taste.
global constant NORMAL_COLOR  =  BLACK,   -- GRAY might look better
		COMMENT_COLOR = RED,
		KEYWORD_COLOR = BLUE,
		BUILTIN_COLOR = MAGENTA,
		STRING_COLOR  =  BRIGHT_GREEN,   -- BROWN might look better
		LIBRARY_COLOR = BROWN,
		BRACKET_COLOR = {NORMAL_COLOR, YELLOW, BRIGHT_WHITE, 
				 BRIGHT_BLUE, BRIGHT_RED, BRIGHT_CYAN, 
				 BRIGHT_GREEN}





Ken Rhodes
Folding at Home: http://folding.stanford.edu/
100% MicroSoft Free
SuSE Linux 10.0
No AdWare, SpyWare, or Viruses!
Life is Good,  smile

new topic     » goto parent     » topic index » view message » categorize

9. Re: ed background colour

Kenneth Rhodes wrote:
> 
> Robert Craig wrote:
> > 
> > Jules Davy wrote:
> > > I use ed and would prefer the background to be BRIGHT_WHITE for better
> > > contrast
> > > with the default syntax colours, but after changing it remains WHITE. Is
> > > this
> > > a limitation of ed?
> > 
> > I think it may be a limitation of the PC hardware,
> > or DOS, or the Linux text console.
> > I don't think the BRIGHT *background* colors are fully supported. 
> > Anyway, my impression was that a dull white
> > or gray background made the foreground colors look better.
> 
> Rob, I think the Euphoria documentation should reflect this
> problem somewhere.

Yes, it should. 
I just added a note to bk_color().

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

10. Re: ed background colour

Robert Craig wrote:

> I think it may be a limitation of the PC hardware,
> or DOS, or the Linux text console.
> I don't think the BRIGHT *background* colors are fully supported. 
> Anyway, my impression was that a dull white
> or gray background made the foreground colors look better.

It seems highly dependant on which text console you're using. 'white' in the
gnome terminal is darker than 'white' in xterm, and in rxvt it's a pale pink
which gives a better contrast. Unfortunately xterm is the only terminal which
gives the correct key mappings, at least on my system. (Ubuntu Dapper Drake).

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu