taskWeeChat - Tasks: task #12026, /color should have colour pairs...


task #12026: /color should have colour pairs hidden by default and show extended info instead

Submitter:  Filip H.F. "FiXato" Slagter <fixato>
Submitted:  Sun 06 May 2012 03:46:33 AM UTC
Category:  None Should Start On:  Sun 06 May 2012 12:00:00 AM UTC
Should be Finished on:  Sun 06 May 2012 12:00:00 AM UTC Priority:  * 5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Percent Complete:  0%
Originator Name:  Open/Closed:  Open
Planned Release:  None IRC nick:  FiXato
* Mandatory Fields

Add a New Comment Rich Markup

Sun 06 May 2012 03:46:33 AM UTC, original submission:  

The colour pairs don't really seem to have a purpose to most people, and will actually confuse people because they might think those are the numbers they need to use to assign colours.
(See log below for an example of such person:)

 <derrida> What do the numbered colors in weechat correspond to? I'm baffled by /color.
<dominikh> they're the ncurses color pairs created by weechat
<dominikh> the numbers simply correspondent to the pair number. it's an internal thing, really
 <derrida> well, i guess i'm just having a hard time because it seems (by looking at /color) that this pairing changes constantly?
<dominikh> only 256 pairs can be assigned. if more are needed, weechat tries to purge old ones. of course this will not work if you have more than 256 pairs constantly visible; but then you really are using way too many different colors :)
but then you really are using way too many different colors :)
     <derrida> If I skip around between buffers, /color will show a changing set between calls. What I'm hoping/looking for is a meaningful way to *know* what colors correspond to
what numbers.
    <dominikh> what for?
    <dominikh> why would you need the number of the color pair, a thing internal to weechat and ncurses, something that shouldn't concern you in most cases?
      <FiXato> derrida, try pressing alt+c in /color
    <dominikh> you do *not* use those numbers for using them in settings
     <derrida> dominikh: seems like a pretty rudimentary request since a good portion of weechat configuration options are related to assigning colors
    <dominikh> unless you do what FiXato said
    <dominikh> derrida: yes, but they have nothing to do with the color pairs
     <derrida> alt+c is only more puzzling because it demonstrates how different the numbering is to the shell colors I'm used to
    <dominikh> but do as FiXato said
     <derrida> doing as Fixato said changes my colors for 10 seconds, how does that help?
      <FiXato> alt-c shows the colour numbers you can use to assign to elements
     <derrida> o O
      <FiXato> those are the numbers WeeChat uses to create its colour pairs
    <dominikh> those are the color numbers used by your terminal. be quick, or screenshot it, or use any of the available scripts that display those same numbers/colors
     <derrida> hmm
     <derrida> so, are the changing pairs at all useful for anything?
    <dominikh> derrida: no, the pairs are not useful for anything if you don't know the inner workings and are trying to debug something.

I think it would be more useful if it would show the extended info by default instead.

Filip H.F. "FiXato" Slagter <fixato>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by fixato (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code