|
|
Subscribe / Log in / New account

Moving on from net-tools

Moving on from net-tools

Posted Jan 6, 2017 11:29 UTC (Fri) by Yenya (subscriber, #52846)
In reply to: Moving on from net-tools by xav
Parent article: Moving on from net-tools

Interesting, thanks!

How can I adjust the colors to terminals with black background? (I.e. something similar to what echo 'set bg=dark' >> ~/.vimrc does for vim).


to post comments

Moving on from net-tools

Posted Jan 6, 2017 11:58 UTC (Fri) by xav (guest, #18536) [Link]

Really I have no idea. But if you do please tell !

Moving on from net-tools

Posted Jan 10, 2017 16:53 UTC (Tue) by nix (subscriber, #2304) [Link]

As far as I can see, you hack lib/color.c in the iproute2 source code :(

Moving on from net-tools

Posted Mar 6, 2017 8:49 UTC (Mon) by pevik (subscriber, #112535) [Link]

See recently merged patch https://git.kernel.org/cgit/linux/kernel/git/shemminger/iproute2.git/commit/?id=54eab4c79a6086f4d1e15ce228163514d2d2415b. Try it:
COLORFGBG='15;0' ip -c a
Konsole, rxvt and rxvt-unicode set environment variable COLORFGBG out of box. For others (gnome-terminal, xterm) you have to set it manually or with a help with xtermcontrol.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds