|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
|
|||
Default message coloration
Hello everyone,
I would like to modify the default OpenBSD text message color. Customized text color in terminal in FreeBSD can be done with: Code:
options SC_NORM_ATTR=_attribute_ options SC_NORM_REV_ATTR=_attribute_ options SC_KERNEL_CONS_ATTR=_attribute_ options SC_KERNEL_CONS_REV_ATTR=_attribute_ Code:
option WS_KERNEL_FG=WSCOL_RED option WS_KERNEL_BG=WSCOL_BLACK Cyril |
|
|||
There isn't any way to do what you ask without either modifying wscons yourself, or playing around with raw ANSI colours in the terminal.. TERM will have to be set to wsvt25 or something.
Why do you want to add colour to the console text? classic white not pleasing enough for you? |
|
|||
Classic coloration is optimal in any general use. However, having some with exotic colors is friendly for easily distinguish which one is which. And is there are nicely attributed, it can be cool.
Thank you, I am going to read wscons options... |
|
|||
Not everyone would agree with that assessment, but if you personally like colours.. improperly spelt ports like sysutils/colorls exist, and you could modify your PS1 environment variable to escape some things with colours.
As I said, you would have to modify wscons... that console terminal framework.. there are no settings or options that can do what you want, you will need to be able to read/write & comprehend the C language to accomplish your goal. |
|
||||
or settle for whatever reaches a log file or can be dumped to your terminal, and write a pretty printer... (Not quite what you want, but less bugger then mucking with the console)
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
|||
The method you're using in FreeBSD requires too much effort for a quick fix that might be temporory. I suggest using "vidcontrol green black" in your shell config file. you can set the cursor to destructive with "vidcontrol -c destructive" or make it blink as a box. you can also use vidcontrol from the command line to achieve these effects. "man vidcontrol" and play with it. otherwise, change the /etc/rc.conf in FreeBSD to include allscreens_flags="green black" to init the whole thing in those colors.
I'm playing around with OpenBSD, which I just installed last night on my HP_Pavillion and seeing what damage I can do before I learn something useful. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Last message repeated x times | delboy | FreeBSD General | 6 | 25th June 2009 10:08 AM |
shutdown message | Mr-Biscuit | FreeBSD General | 1 | 16th November 2008 11:59 PM |
(ttyv0) message. | delboy | FreeBSD Security | 10 | 29th May 2008 08:25 PM |
Message alerts? | ocicat | Feedback and Suggestions | 2 | 2nd May 2008 03:25 PM |