|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
TTY background color?
Hello everyone,
I was unsatisfied with the resolution of my TTY, so I followed the instructions here: on the OpenBSD FAQ Chapter 7 Section 5 titled "How do I use a console resolution of 80x50? (some amd64, i386, Alpha)" (sorry, can't post links in the first 5 posts, let me know if you need help finding it) to get a better resolution, but now all of the ttys have this funky brown/red background color, even the ones that should not have been affected by the change. Is it possible to change the background color of one or all ttys without installing any additional packages? Like using a config file, or environment variable? Also, I should not that I did a TTY-only installation (no x-server or other gui-ness), so the solution should be cli only. Thanks in advance, Misha EDIT: Did a little digging, and it looks like wsdisplay has some color map configuration available? Still trying to figure it out though. Last edited by mishaparem; 28th March 2014 at 08:28 PM. Reason: more information |
|
|||
wsconscfg(8) has an example how to set a vt100 terminal emulation
Code:
EXAMPLES Configure screen 1 (i.e., the second) for type ``80x50'' and VT100 terminal emulation. (Note: ``80x50'' is a screen type offered by the vga(4) display driver. In this particular case, an 8x8-font must be loaded beforehand to make the screen useful. See wsfontload(8).) # wsconscfg -t 80x50 -e vt100 1 So you would have to edit /etc/termcap of the terminal type used by the OpenBSD console terminal. IIRC that is vt220. But this all seems to be very difficult. Before attempting to change the background and/or foreground color with this method, you could try to create a file with the ANSI escape sequence to set the foreground to say green and simply use /bin/cat to display the file and see whether that is sufficient to change the foreground or text color. See https://en.wikipedia.org/wiki/ANSI_escape_code for info about these codes. Of course that would require a change to one of the ANSI terminal types mentioned in /etc/termcap I have to file my income tax return before April 1st, so I don't have time to investigate this any further. It is a pity, checking this color thing out is more fun, than filling a tax return
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump Last edited by J65nko; 28th March 2014 at 09:51 PM. Reason: Added need of ANSI terminal type |
|
|||
I was just looking at /etc/termcap, and I found some pretty interesting options.
But only Code:
wsconscfg -t 80x50 -e vt100 1 Code:
wsconscfg: WSDISPLAYIO_ADDSCREEN: Device not configured Code:
-e emul Specify the terminal emulation to use for the virtual terminal. The set of available terminal emulations is determined at kernel compile time. See wscons(4) for details. What I found most interesting now, is that type dumb gives the same error as all the types from /etc/termcap. Unfortunately Mr. Google only has only 6 pages of results for the error, and as I'm looking through them, I can't find a solution. |
|
|||
Looking at the .profile of root you will find
Code:
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
X window on KDE background? | maxrussell | FreeBSD General | 14 | 13th October 2011 06:50 PM |
More background on the US security firm break-in | J65nko | News | 0 | 17th February 2011 04:43 PM |
Grey checkered background before kdm | jewsofeast | OpenBSD General | 5 | 10th January 2011 02:37 PM |
Terminal background goes red | stobbard | OpenBSD General | 5 | 11th May 2010 09:42 AM |
Want to get rid of ugly color of rox | rex | FreeBSD General | 6 | 12th May 2008 12:02 AM |