14

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?

migrated from stackoverflow.com Jan 25 '10 at 12:46

This question came from our site for professional and enthusiast programmers.

  • well, which terminal on linux? xterm has a different method of configuration from gnome-terminal from konsole, etc etc etc... – Babu Jan 25 '10 at 14:15
27

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.

1

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.

1

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 corresponding text 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.

In my case preferences look like this: Terminal Preferences / Profile

And the final result looks like this: Terminal window with Tmux (htop and git log output)

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").

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy