Registered Member
|
is it possible to color output in konsole? i'd like certain phrases, e.g., warnings, to be colored to make them more conspicuous.
thanks. |
Registered Member
|
If you have power over the output generated (e.g. you can modify the script/application generating the output) then you can embed escape codes in their output which will tell konsole (or any other terminal emulator) to color the output in a certain colors. See http://en.wikipedia.org/wiki/ANSI_escape_code for details.
If you don't have direct power over the output, you can create a script which intercepts the output and inserts the appropriate color escape codes. Konsole per-se can't be configured to color text which matches certain patterns (except through the use of escape codes)
airdrik, proud to be a member of KDE forums since 2008-Dec.
|
Registered Member
|
thanks. i'm trying to color the output of the package manager (pacman). i'll look into escape sequences.
|
Administrator
|
Kind of OT, but since you mentioned pacman... Use pacman-color, which will work on all terminals.
"Violence is the last refuge of the incompetent."
Plasma FAQ maintainer - Plasma programming with Python |
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell