DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th May 2009
cyril cyril is offline
Real Name: Cyril
New User
 
Join Date: May 2009
Posts: 3
Default 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_
But I don't see how to customize OpenBSD messages... Only its kernel's messages are done with:
Code:
option     WS_KERNEL_FG=WSCOL_RED
option     WS_KERNEL_BG=WSCOL_BLACK
Thanks for any help.

Cyril
Reply With Quote
  #2   (View Single Post)  
Old 25th May 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

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?
Reply With Quote
  #3   (View Single Post)  
Old 27th May 2009
cyril cyril is offline
Real Name: Cyril
New User
 
Join Date: May 2009
Posts: 3
Default

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...
Reply With Quote
  #4   (View Single Post)  
Old 27th May 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

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.
Reply With Quote
  #5   (View Single Post)  
Old 28th May 2009
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

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''.
Reply With Quote
  #6   (View Single Post)  
Old 6th June 2009
blslusser blslusser is offline
New User
 
Join Date: Mar 2009
Posts: 1
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 05:44 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick