ZyX, I'm sorry for late reply.

2013/12/15 22:10、Nikolay Pavlov <[email protected]> :

> You meant there that sequence should be ESC [ 48 : 2 : R : G : B? 

Yes, I certainly feel xterm's colon separated style (ESC [ 48 : 2 : R : G : B 
m) is better than konsole-style (ESC [ 48 ; 2 ; R ; G ; B m).
But I think the best way for this is to propose yet another new control 
sequence.
(colon separated style is very hard to be implemented by some existing 
terminals.)

In any case, I belive Konsole-style is the worst way for the terminal world in 
the long view.

It lacks forward compatibility: 
"CSI 38/48 ; n ;" takes variable length arguments, so this sequence can not 
extend safely in future.
It will kill the flexibility of control sequence.

It lacks backward compatibility:
This sequence causes wrong Interpretation by many terminals, terminal 
multiplexers, and terminal filters.
Furthermore it breaks the design rule of SGR.
Consequently, we saw the following ugly patch for linux console:
http://www.spinics.net/lists/kernel/msg1598784.html?utm_medium=twitter&utm_source=twitterfeed&utm_term=%23kernel+%23Linux

To tell the truth, I used to agree with this feature.
I implemented 24bit SGR sequence experimentally on the terminal which I 
developed, in Oct. 2012, but dropped it on Sep. 2013,
because during this period I found out above compatibility problems and other 
performance problems.
I think it requires more arguments and improvements about this feature.

> > One more question,
> > Why do you use direct 3-byte color sequence, instead of
> > doing dynamic palette operation using initc("\e ] 4 ; r ; g ; b \e \”) 
> > which already defined by terminfo.
> > I think most of color schemas don't require more than 256 colors at once.
> 
> Powerline uses 100 colors per each gradient.

Oh.. I see.

> Also what colors will one see once he does :susp/CTRL-Z?

It can be theoretically possible to do this using "ESC ] 104 ; … ST”.
But for current vim, this way may cause another problems so vim’s suspend 
behavior is very sensitive.

Best regards,

— Hayaki Saito

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui