public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* terminal-colors.d changes
@ 2014-05-13 11:38 Karel Zak
  2014-05-13 18:16 ` Mantas Mikulėnas
  0 siblings, 1 reply; 3+ messages in thread
From: Karel Zak @ 2014-05-13 11:38 UTC (permalink / raw)
  To: util-linux


 I have merged some improvements:

  * $XDG_CONFIG_HOME/terminal-colors.d and $HOME/.config/terminal-colors.d 
    are supported now

  * @termname suffix is possible to use to restrict the setting to
    specified terminal, for example

       touch /etc/terminal-colors.d/@vt100.disable

    to disable colors for all utils with TERM=vt100 

  * "scheme" files to customize colors are supported now, for example

       echo 'alert 37;41' >> /etc/terminal-colors.d/dmesg.scheme

    sets red background color for alert messages.
    
    The scheme files supports color names (e.g. "red"), ANSI color
    sequences (e.g. 37;41) and escape sequences (e.g. \a for bell).

  * all this is optional and with almost zero overhead for systems
    without terminal-colors.d/


    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-05-14  8:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-13 11:38 terminal-colors.d changes Karel Zak
2014-05-13 18:16 ` Mantas Mikulėnas
2014-05-14  8:19   ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox