Make the background black, not white on Linux/Mac OS X Terminal?
All I want to do is make the background for Mac OS X's Terminal Black so that I can run a Perl script with Terminal and have the background black for that.
How would I do this for Mac OS X?
How would I do this for an average Linux?
Solution 1:
I'm not sure about Linux but on Mac OS X you can change the theme in the preferences. Open Terminal, then go to the Terminal menu -> Preferences, choose the Settings tab and set the Pro theme as the default.
If you don't need it as the default you can choose Shell -> New Window/Tab -> Pro and you'll get a one off terminal with that theme.
I'm sure something similar is possible on Linux also.
Solution 2:
Terminal application in macOS
- Pull down the Terminal menu and choose “Preferences”, then click the “Profiles” tab.
- Select profile with name "Pro". You can make it default using the button with text "Default" right under the list.
- Click "Color & Effects" to customize the background and opacity. (e.g. I don't like transparency).
- Then under the “Text” tab check the boxes for "Use bold fonts" "Display ANSI colors" and "Use bright colors for bold text". This makes things like directories and executables be bold and brighter, making them easier to spot in listings.
- Under "Font", click "Change..." and select SF Mono and size 11pt.
In my case preferences look like this:
And the final result looks like this:
You can find more on page Simple Tricks to Improve the Terminal Appearance in Mac OS X (section "Enable Bold Fonts, ANSI Colors, & Bright Colors").
Solution 3:
Assuming that you want to change the colours of the screen from your Perl script, then you could look at using ANSI Color from CPAN. For example code, look here.