On 15/02/09 14:19, Stahlman Family wrote:
>
>
> Stahlman Family wrote:
>>
>> Matt Wozniski wrote:
>>> On Sat, Feb 14, 2009 at 9:00 AM, Brett Stahlman wrote:
>>>> Note that both evening and morning colorschemes hide Ignore characters
>>>> completely with the following settings...
>>>> evening:
>>>>     Ignore ctermfg=242
>>>> morning:
>>>>     Ignore ctermfg=7
>>>> ...which set ctermfg to the same number used for ctermbg in the Normal
>>>> group. I suppose I can use the brute-force approach: i.e., parse the
>>>> output of ":hi Normal" and extract the ctermfg value...
>>> Like I said, that isn't enough.  Most terminals (Konsole being the
>>> only exception I know of) only allow you to set the foreground or
>>> background color for some text to one of, at most, 256 specific
>>> colors.  They allow you to set the *default* foreground or background
>>> color to one of 16777216 colors.  So, the odds are against the user's
>>> choice of background color even being able to be set with a
>>> ctermbg=[0-255].
>> I'm not sure I understand the distinction between a terminal's "default"
>> background, and the background colors to which text can be set. Are you
>> saying that the terminal could have a certain background color where no
>> text appears, but that a program such as vim wouldn't be able to output
>> text with that color to the terminal?
>
> Or perhaps you are simply saying that the format of the default color
> setting (e.g., in an Xresource file) supports greater resolution than
> what is supported by the terminal itself, in which case, Vim could not
> use the X resource database to determine the actual background color of
> the terminal.
>
> Thanks,
> Brett Stahlman
>
>> Thanks,
>> Brett Stahlman
>>> ~Matt
>>>

I think the meaning is as follows:

Some programs output only plain text, with no action on the fg/bg color. 
Such programs use the default background and the default foreground set 
for that terminal. The user can, once and for all, choose one of 
16777216 colors for that background and another one of the same number 
of colours for the foreground.

Programs which have some control over colour will, in those terminals, 
be able to display these two user- (or theme-)selected colours and 
(usually) 6, 14 or 254 additional colours (for a total of 8, 16 or 256 
respectively).


Best regards,
Tony.
-- 
George Orwell was an optimist.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to