Customizing ANSI Colors in Terminal.app

Has anyone figured out a way to customize the ANSI colors in the Leopard Terminal? The TCColorArray plist setting seems to be ignored.
I've even gone so far as to copy the Terminal.app from Tiger onto Leopard. Still no go, even Tiger's terminal is ignoring TCColorArray when running on Leopard (which I find very strange).
Could this be a termcap issue?

You might want to ask in the Unix forum:
http://discussions.apple.com/forum.jspa?forumID=735

Similar Messages

  • How can I permanently change a text color in Terminal.app?

    According to Terminal's help file:
    "To change the color of the Terminal window or text, drag a color from the Colors window to the Terminal window. If you drop the color on an empty part of the window, the window background changes to the color. If you drop it on text, the text changes to the new color."
    This works like a charm; I drag a lighter blue color onto the dark blue that some distributions of linux display by default when showing a directory in ls and the color changes for the rest of my terminal session in any ls.
    The question is how do I make this change permanent? I tried saving my terminal session into a .term file and opening it, but this change wasn't saved. Everything else was, of course, but not this one.
    Any ideas how to make this sort of change permanent?

    Sorry, but that doesn't address the actual question. I probably was unclear when I asked, so it's my own fault.
    I am not trying to change the color of the cursor, normal text, bold text, or selection. I am attempting to change which color blue shows up when an ansi code for blue is displayed. This can be done by opening the Show Colors interface from the Font menu then dragging the new color to the existing one (so if I have text displayed in Blue that reads "foobar" and I drag aqua onto that text, all Blue text now appears aqua in that Terminal session). The question is how do I make this change permanent?

  • ANSI Colors in Leopard's Terminal.app

    Has anyone figured out a way to customize the ANSI colors in the Leopard Terminal? The TCColorArray plist setting seems to be ignored.
    I've even gone so far as to copy the Terminal.app from Tiger onto Leopard. Still no go, even Tiger's terminal is ignoring TCColorArray when running on Leopard (which I find very strange).
    Could this be a termcap issue?

    The following will rid your Terminal of blue directory listings:
    1. Add the following to ~/.profile :
    alias ls='/bin/ls -G'
    export LSCOLORS=exfxcxdxbxegedabagacad
    2. Change the color(s) displayed by `ls` considering the following:
    For each pair of characters in the string 'exfxcxdxbxegedabagacad', the first character in the pair represents the foreground color, the second character in the pair represents the background color. Changing the character changes the color; see the following chart:
    a black
    b red
    c green
    d brown
    e blue
    f magenta
    g cyan
    h light grey
    A bold black, usually shows up as dark grey
    B bold red
    C bold green
    D bold brown, usually shows up as yellow
    E bold blue
    F bold magenta
    G bold cyan
    H bold light grey; looks like bright white
    x default foreground or background
    Each character pair in the string 'exfxcxdxbxegedabagacad' represents a type of file displayed by `ls`. The breakdown of character pairs follows:
    Pair 1 (ex) - directories
    Pair 2 (fx) - symbolic links
    Pair 3 (cx) - sockets
    Pair 4 (dx) - pipes
    Pair 5 (bx) - executable files
    Pair 6 (eg) - block special
    Pair 7 (ed) - character special
    Pair 8 (ab) - executable with setuid bit set
    Pair 9 (ag) - executable with setgid bit set
    Pair 10 (ac) - directory writable to others, with sticky bit
    Pair 11 (ad) - directory writable to others, without sticky bit
    So, following this through to conclusion, the following is the list of default color pairs:
    ex - blue/default - directories
    fx - magenta/default - symbolic links
    cx - green/default - sockets
    dx - brown/default - pipes
    bx - red/default - executable files
    eg - blue/cyan - block special
    ed - blue/brown - character special
    ab - black/red - executable with setuid bit set
    ag - black/cyan - executable with setgid bit set
    ac - black/green - directory writable to others, with sticky bit
    ad - black/brown - directory writable to others, without sticky bit
    Finally, to change the listing of directories from blue to cyan, change the first character pair (ex) to (gx) in .profile :
    export LSCOLORS=gxfxcxdxbxegedabagacad
    3. To have the color change take effect, quit and restart Terminal, or run the following command:
    . ~/.profile
    Message was edited by: Apple Scruffs

  • Leopard Terminal.app no longer supports ANSI print escape sequences?!!

    I print my email using pine's "attached-to-ansi" option, which used to work great in Tiger with Terminal.app. It no longer works in Leopard. It also breaks things like the "ansiprt" Unix command.
    This is a start/stop escape sequence that diverts text between the start/stop sequences to the printer. See http://www.termsys.demon.co.uk/vtansi.htm as a reference.
    Is there some Terminal.app setting I need to use to enable this? Some specific terminal type perhaps?
    Suggesting that I use enscript or other techniques don't work, as I use the Terminal to ssh into my mail server, then run pine on the mail server.
    Anyway, any idea how to get this very desirable feature back?
    Thanks,
    -John

    HI,
    I tried to set "Escape non-ASCII input" without any change. I didn't see an option to change "Escape non-ASCII output". I tried a few other things without success either using a different terminal type and so forth. I looked in the .term file and didn't see anything text related to ANSI or ASCII or escape.
    If I change a Terminal preference do I need to quit and restart Terminal to test the change, or does the change take place as soon as I change it in the menu? I tried quitting and restarting after checking "Escape non-ASCII input" and when I restart the box was unchecked. I couldn't find a "save preferences option either.
    In Tiger, my terminal type was xterm-color- same in Leopard. I had checked off "Escape non-ASCII characters" under Tiger.
    Here's exactly what I do, *which used to work in Leopard*.
    I run Terminal.app on my MacBook, and ssh to a mail server. On the mail server, I run the pine command to read my mail. Pine has an option to print email using ASCII escape sequences. Terminal.app sees these escape sequences and diverts the text to the default printer on my MacBook.
    Under Leopard, the Terminal doesn't catch the ANSI escape code, and just spews the text to the terminal window. Nothing has changed on the mail server side. I;m using the sane ssh command.
    Enscript won't work, as the printer connected to the mail server is often as not in a different state than my MacBook.
    Not all terminal emulators support the ANSI print escape sequences. Terminal didn't before Tiger, if I remember correctly. I used to use a very nice terminal emulator called Data Comet which did it.
    ANSI printing used to be a fairly common way to print to a local printer connected to via a parallel cable. Besides pine, the Unix command ansiprt http://kb.iu.edu/data/abye.html could be used to print remote files on the local printer. Some terminal emulator programs used the idea to hook the ANSI escape sequence to the printing system, extending the functionality to use any printer accessible by the local system.
    Thanks again for all your help. I hope I've clarified what I'm trying to do.
    -John

  • How to permanently save the color settings in terminal.app

    Hi,
    I have configured the "ls" command in the terminal.app to give colored outputs. However, I realised that for some reason the color-set used is designed for a light-colored background. When I use "white on black", the default blue color of the directories is almost invisible.
    Of course, I can change this to another color, but this problem is true for all "blue" fonts, so for example, the default color for comments in vim is also blue and thus unreadable with black background.
    This is not a problem when I use the xterm in X11. The color set there is much lighter and is perfect for a black backgound.
    By drag-and-drop method (drag the chosen color on top of the directory texts in terminal), I am able to alter the blue color to a much lighter version. This apparently changes all fonts that is blue (this includes for example vim comments), and is exactly what I wanted. But I cannot figure out a way to save this as default. Clicking "Save setting as default" button in the inspector does nothing, the new terminal window still gives you this dark blue.
    Anyone know how do I do this?
    Cheers,
    Lianheng

    Hi Nils,
    Thanks for the replies.
    I think I see what the problem is: basically the colors in the terminal are darker than that of the xterm in X11. This can be clearly seen from the vim. May be this is to do with the fact that apple terminal.app has a "better" color support?
    I quite like the default LSCOLORS settings, which is:
    LSCOLORS=exfxcxdxcxegedabagacad
    The color settings in X11 is just perfect for me at the moment. It would be so much nicer if I can make the color scheme in terminal.app look like that of the X11. If say, I change LSCOLORS to
    LSCOLORS=gxfxcxdxcxegedabagacad
    and change the color schemes in vim to a lighter theme, but this will effect the colors in X11 too, which is perfect now. Cyan will look too light in X11.
    At the first I thought by drag and dropping the colors into terminal it will alter its color map. So my question was actually how can one (if it is possible) change the color map of the terminal.app, so that it inteprets the ANSI "blue" slightly differently.
    By the way, the way that you can see all colors in vim is really neat! Thanks for that tip.
    Cheers,
    Lianheng

  • Terminal.app, emacs, and colors.

    newbie here.
    i'm playing around with customizing the (darwinports) emacs' font lock mode in the terminal. i've noticed that not all of the colors display exactly as i expect them. for example, i type "brown" and the result looks just like what i would get if i had typed "red." i assume that the closest match is being displayed from a limited palette.
    is this a problem with Terminal.app or is this a problem with the version of emacs i chose to use? is this a limitation i can correct?
    macbook   Mac OS X (10.4.6)  

    xterm-frobs.el and xterm-256color.el look like possible solutions.
    according to the comment for xterm-256color.el, 21.3 and later should support 256 color terminals. i'm running 21.4.1 but i'm unaware of whether the port is configured to allow this or not. i'll have to check into it.
    thanks again.

  • Leopard Terminal - No ANSI Colors at all?

    I've done a lot of searching on Terminal colors in Leopard (updated to latest.) I keep coming across fixes to change your colors, but my issue is that my Terminal doesn't display any ANSI colors at all. The terminal configuration works fine, but colors for everything (folders, executables, etc.) are always the same.
    I've tried changing a number of setting, installing the TerminalColors SIMBL plugin, and anything else I could think of, but my color scheme is always monotone.
    infocmp's first few lines:
    # Reconstructed via infocmp from file: /usr/share/terminfo/78/xterm-color
    xterm-color|nxterm|generic color xterm,
    am, km, mir, msgr, xenl,
    colors#8, cols#80, it#8, lines#24, ncv@, pairs#64,
    Please let me know if you have any ideas. Thanks!

    Figured it out.
    "ls -G" does it (duh)
    Don't remember doing this in Tiger, but perhaps I did.
    Added
    alias ls="ls -G"
    to ~/.profile
    to make this automatic.

  • Customizing Terminal.app hot-keys?

    Hey all,
    Does anyone know a way to re-assign hotkeys within Terminal.app?
    Since Leopard's Terminal supports tabs, I use Command-Shift-\[ and Command-Shift-\] hotkeys extensively to switch between tabs, and almost never use Command-Left and Command-Right hot-keys (which switches between Terminal windows).
    I've been taking measures against RSI/TCS, and have noticed that the Command-Arrow combination is much easier on my hands.
    Cheers!
    Galen
    Message was edited by: gohanlon
    Message was edited by: gohanlon

    Thanks for the tip. Here's the new post:
    http://discussions.apple.com/thread.jspa?threadID=1482285&stqc=true

  • Can't open .term Terminal.app files from command line

    Howdy. I use Terminal.app constantly for ssh'ing into numerous remote machines. On my G4 Powerbook I have simply created .term files with customized colors, titlebars, and an appropriate ssh execution string for each machine/userid combination, which I am able to open with "open ~/bin/foo.term". Life is no longer so joyously simple on my new Intel iMac. I create a .term file (via Cmd-s while in a terminal window), but the above command to open foo.term now simply doesn't work on my iMac once a single terminal window has been opened (even after it's been closed) -- I can start one such file only from the finder or via Launchbar or Quicksilver. The only way I can use my .term files is by switching to Terminal and selecting File...Open and clicking on the .term file -- which, being a command line (and Launchbar) junkie, I hate, of course. Applescripts don't work either.
    I would be forever grateful if someone could tell me how to fix this problem!
    txlogic
    Intel iMac Mac OS X (10.4.6)
    iMac   Mac OS X (10.4.6)  

    TXLogic
    I cannot do it either.
    Ah, interesting -- thanks for the input. I had thought the problem might have something to do with the fact that I was using an Intel iMac, but you are using a PPC iBook. The problem isn't with 10.4.6 either, as that is what I'm running on my G4 Powerbook, and the .term files work as expected on that machine.
    Initially I thought it was a
    problem with permissions, i.e the term file hadn't
    the execute bit set (which it did not). Setting the x
    bit though did not help at all.
    Right, the .term files aren't executable.
    A work around was to
    save the command(s) into a plain text document in
    text edit (not rtf) as a .command file (no txt
    extension in this case) and set its execute bit in
    terminal (sudo chmod u+x ...).
    I don't quite understand the workaround -- what command(s) exactly did you put into the .command file? Could you paste the contents of such a file here?
    I have not dealt with term files extensively but I
    noticed that .term files are xml ones. Could anyone
    shed some light in possible changes in the way
    terminal handles them?
    Since the .term files work as desired on my Powerbook, it now doesn't appear that Terminal.app has changed its processing of the files. Something else is going on here.
    txlogic

  • Keyboard trouble in Terminal.app

    Hello there.
    After using UNIX-like operating systems for many years I finally got a Mac. I use Terminal.app a lot for administrating remote servers over SSH.
    Now I have two problems:
    1. For going to the beginning/end of the line I always have to press "Apple+Home" or "Apple+End". Is there a way to do this just with "Home"/"End"? I figured xterm does it that way an OSX too, but is pretty limited and does not support tabs.
    2. When using an application like vim (locally or on a remote server, does not matter) I cannot use "Apple+Home" or "Apple+End" at all to go to the beginning of the line in the editor window, which is far more annoying and frustrating than the first problem.
    It would be nice if anyone could help me there.
    For now I solved these issues by installing Linux/KDE for administrating/programming on my iMac but it would be nice if I could also get this job done on Leopard.
    Thanks,
    direx

    First, I would point out that there are other terminal emulators available for Mac OS X. I personally use iTerm <http://iterm.sf.net>.
    1. For going to the beginning/end of the line I always have to press "Apple+Home" or "Apple+End". Is there a way to do this just with "Home"/"End"? I figured xterm does it that way an OSX too, but is pretty limited and does not support tabs.
    I guess it all depends on which line you are trying to get to the beginning or end of. For me, it is the bash shell, and for that I just use the supported command line editing commands (which I set to vi mode). The other is the vi/Vim editor and I just use the main keyboard commands for moving to beginning or end of a line.
    But my preference is not yours. I do not have a solution for your desires. Maybe a hotkey mapping utility that translates Home/End into some Terminal key sequences, bypassing the Terminal's grabbing of those keys for scroll back/forward.
    2. When using an application like vim (locally or on a remote server, does not matter) I cannot use "Apple+Home" or "Apple+End" at all to go to the beginning of the line in the editor window, which is far more annoying and frustrating than the first problem.
    Unless Apple+Home or Apple+End send a standard ANSI escape sequence, Vim can not see the key combo.
    If you want to use gvim you might be able to see meta keys that do not have normal ANSI escape sequences.
    If you want to test that a key combo is sending an escape sequence, then run the following command and type away to see what escape sequences are sent
    cat -vte
    If you do not see anything, then the key combo is not sending anything that Vim can see.
    This trick does not apply to gvim.
    NOTE: xterm is an X11 based terminal emulator (on any Unix you care to name). That means it can decide to do additional things with meta keys. Also some xterm implementations even pass mouse position information. Terminal.app more closely resembles a terminal (I'm playing fast and loose with my analogy).
    Message was edited by: BobHarris

  • How to emulate INSert  key (in Terminal.app)

    iBook keyboard have no INSert key. I am using it very often on PC because I like working in Terminal and using Midnight Commander (insert key is used there to selecting files).
    How to emulate this key in Terminal.app (like you can emulate other keys for example page down/up and so on with fnshitfarrows), or maybe you now how to define custom emulation rule of some key shortcut to get this key.
    I don't need INS key outside Terminal.app.

    Just found answer here: http://hints.macworld.com/article.php?story=20080122065954390
    In Terminal.app's Preferences, go to Settings and select Keyboard. Find the Key you want to replace -- in my case, F12 -- and change the default Action value to:
    \033[2~

  • Emacs problem in Terminal.app

    When I edit a text file in the (text-only version) of emacs running in Terminal.app, what happens all the time is that characters in my file get overwritten by spaces (on the terminal only). Pressing Ctrl-L recentres and refreshes the display and it's OK - until it happens again, which is usually right away.
    E.g. if I open the file and press down rightarrow, and hold it for autorepeat, the cursor will gradually move through the file, but as I scroll over certain characters, they will be overwritten by spaces on the screen.
    The problem only happens in Terminal.app, not also in xterm.
    It doesn't matter whether $(TERM) is set to xterm, xterm-color, vt100 etc. in Terminal.app.
    I remember this working in previous versions of Mac OS X, but not in 10.4.5 (and as I recall it's not worked for me for a while).
    Is this a bug? Does anybody else see this? Or is there some setting I might have inadvertently changed.

    The problem was traced to a
    stty -tabs
    line in my .login file. It appears that emacs outputs tabs to move around the screen, and those were being expanded to spaces which overwrote my text. Vi apparently does not use tabs in the same way, which is why the problem was limited to emacs.
    The reason the problem manifested itself in Terminal.app but not in xterm is that tcsh executed inside a new Terminal.app window executes .login, whereas one executed inside a new xterm window does not.

  • Anyone seeing horizontal-scroll-mode issues with Terminal.app?

    This is more a broadcast of findings than a question, but:
    Related to things here (that is closed/archived):
    https://discussions.apple.com/message/10061606#10061606
    It looks like the version supported locally of bash/readline are working for Terminal.app's default TERM=xterm-256color; however, when sshing to RedHat Enterprise Linux, something goes "sidewasy."
    If I'm seeing things correctly, it looks like the default TERM of xterm-256color isn't well supported by... bash?  readline?  If I leave TERM as default (?) of xterm-256color, then the readline/inputrc config for `set horizontal-scroll-mode Off' is ignored, and I get the hated (by me) horizontal scrolling.  If I:
    export TERM=xterm-color
    in the same session, changing nothing else, and then arrow back "up" into history, I get (my) preferred "vertical" scrolling of my long input command.  Are others seeing this?
    So, it really looks like earlier versions of bash (before 4.x?) and/or readline (before 6.x?) don't properly support xterm-256color as a valid TERM, and must fall down and assume that the terminal doesn't support things like.. uhh... horizontal-scroll-mode Off.  Seems to be fixed by RHEL-6, but a problem in RHEL-4 and RHEL-6.
    I'd originally, mistakenly assumed it was a bug in Terminal.app.
    Again, this doesn't have to do with a Terminal.app session *local* to the Mac itself; but rather if you've ssh'd to a different operating system.

    It is possible that the problem is in the terminfo terminal feature description file for xterm-256color on your Linux systems.
    /usr/share/terminfo/x/xterm-256color
    You can examine the contents of the Mac and the Linux xterm-256color terminfo files using:
    From Mac:     infocmp xterm-256color >tmp.mac
    From Linux:   infocmp xterm-256color >tmp.linux
    ...copy the files to the same system...
    Compare:      gvimdiff tmp.mac tmp.linux     # or just use diff if your prefer
    Actually you may be able to do the compare with infocmp, but I have not experimented with that, and I know how to do the above already, so I went with what I know :-)
    You can modify the infocmp generated output, and then compile a new terminfo file using 'tic' (man tic).  Then again for all I know, the binary format for a terminfo file is identical on Macs and Linux boxes, so you might be able to tranfer the Mac version to your Linux system(s).
    You can use the TERMINFO environment variable to point to a different terminfo database.  See 'man 5 terminfo' for more information.
    Again, all of this assumes that maybe it is the terminfo term-256color file that is different between the 2 systems.

  • Password Terminal.app

    Hi, when I use the Terminal.app (for example: followed the discussion for the Lexmark X4650 printer problem inherent in the message "Missing component: /Library/Printers/Lexmark/Drivers/.Resources/3600-4600 2.lut Series Color") at the time when it asks me the password does not take keyboard commands and does not write.
    Second thing: I do not know what password I enter.
    Can you help me?
    thanks

    You use your admin password; you will not see anything on the screen. Hit return after typing your password.

  • Alternate Terminal App

    I would like to access some old BBS sites via telnet but the problem is Apple's Terminal app is very basic and doesn't handle ANSI graphics well. Can anyone recommend a program that is easy to use and would allow me to access BBS's via telnet?

    Hi Marc--
    You could look at iTerm. I've used it a bit and like it. I don't know if it would be any better for BBS sites, though.
    Also, look at these postings and read through the suggestions there. Something there might work.
    charlie

Maybe you are looking for

  • Two users on iMac, one iTunes library

    My husband and I set up ourselves as separate users on our iMac.  We use the same Apple ID (his) for iTunes. I was able to transfer our iTunes library from our old PC onto our iMac and into my user side, but my husband cannot see our iTunes library o

  • Whats the easiest way to share iTunes library between two accounts

    Hi all I have my account in leopard that has my entire music collection. I have just created a new account for my wife and would like her to have access to my library, having said that, I like my play lists and it would be ideal for her to have her o

  • I want Macbook on when I close display.

    I used to be able to have a choice of settings when I had my Sony Vaio. You had the option to select these actions when you closed the display, 1)Shut Down,,2)Sleep,,,,3)Stay On. This was cool , because I could have a program running and processing s

  • Slow runtime loading

    Hi. I'm using air 2.6 sdk I'm making a game and I have a png atlas for each lvl that is around 2.5 Mb each. Every time i have lo load one, it takes around 8 seconds to load on my Samsung Galaxy Tab On the desktop it just takes .200 s. Is this differe

  • I find no normal Wireless-Networks but the Hotspot of an other Iphone. Why?

    Hey Guys. I have a Problem. I bought a second Iphone. It is an Iphone 4. The first thing i did, was to reset the Iphone to factory settings. After this i updatet the Ios to 6.1. Everything works fine except the Wireless Network. I couldn't find any N