[SOLVED]Bash prompt colors different in console as opposed in terminal

Hi
EDIT: I have solved the problem by copying /etc/skel/.bash_profile to my home directory.
Today i updated the system and the bash prompt is fine in my terminal (KDE Konsole or in Xterm) but not in consoles. For normal user (blue colors) i use this settings in the $HOME/.bashrc file:
PS1='[\e[0;36m\u\e[0m@\e[0;36m\h\e[0m]─[\e[0;33m\w\e[0m]\n└─\$ '
For root (red color) /root/.bashrc:
PS1='[\e[1;31m\u\e[0m@\e[1;31m\h\e[0m]─[\e[0;33m\w\e[0m]\n└─\$ '
Now, if i login in console as a normal user it doesn't display blue color but red as if i was root user. Like i said in xterm or KDE Konsole it looks just fine. The case is that consoles don't use my .bashrc file and use instead /etc/bash.bashrc file: Here is my /etc/bash.bashrc file:
# /etc/bash.bashrc
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
#PS1='[\u@\h \W]\$ '
PS1='[\e[1;31m\u\e[0m@\e[1;31m\h\e[0m]─[\e[0;33m\w\e[0m]\n└─\$ '
PS2='> '
PS3='> '
PS4='+ '
case ${TERM} in
xterm*|rxvt*|Eterm|aterm|kterm|gnome*)
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
screen)
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
esac
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
export EDITOR=/usr/bin/nano
Here is my today's update:
[2012-07-06 08:54] upgraded linux-api-headers (3.3.8-1 -> 3.4.4-1)
[2012-07-06 08:54] warning: /etc/locale.gen installed as /etc/locale.gen.pacnew
[2012-07-06 08:54] Generating locales...
[2012-07-06 08:54] en_GB.UTF-8... done
[2012-07-06 08:54] en_GB.ISO-8859-1... done
[2012-07-06 08:54] Generation complete.
[2012-07-06 08:54] upgraded glibc (2.15-12 -> 2.16.0-1)
[2012-07-06 08:54] upgraded binutils (2.22-7 -> 2.22-8)
[2012-07-06 08:54] upgraded dbus-core (1.6.0-5 -> 1.6.2-2)
[2012-07-06 08:54] upgraded dbus (1.6.0-1 -> 1.6.2-1)
[2012-07-06 08:54] upgraded device-mapper (2.02.96-2 -> 2.02.96-3)
[2012-07-06 08:54] upgraded gcc-libs (4.7.1-3 -> 4.7.1-4)
[2012-07-06 08:54] upgraded gcc (4.7.1-3 -> 4.7.1-4)
[2012-07-06 08:54] upgraded grep (2.12-1 -> 2.13-1)
[2012-07-06 08:54] upgraded initscripts (2012.06.3-1 -> 2012.06.3-2)
[2012-07-06 08:54] upgraded libpurple (2.10.4-2 -> 2.10.5-1)
[2012-07-06 08:54] upgraded libusb-compat (0.1.4-1 -> 0.1.4-2)
[2012-07-06 08:54] upgraded lvm2 (2.02.96-2 -> 2.02.96-3)
[2012-07-06 08:54] upgraded mpfr (3.1.0.p10-1 -> 3.1.1-1)
Is it a problem in yesterday's pam upgrade? Yesterday i have moved /etc/pam.d/login.pacnew to /etc/pam.d/login. I didn't backup the old file. My bad. Weird thing is also this that today my KDE session crashed (for the first time) when i have used dd to burn image on my USB.
Last edited by Shark (2012-07-06 08:40:31)

Procyon wrote:What you want is [ -n "$SSH_CONNECTION" ] (variable is set/nonzero length) or the opposite [ -z "$SSH_CONNECTION" ] (variable is not set/zero length)
Thanks-- that got it.  I was missing the quotes, so it was expanding at the spaces rather than interpreting the entire thing as a string.

Similar Messages

  • [SOLVED] zsh prompt colors misaligns the prompt

    Im using urxvt.
    For some reason, using colors in zsh somewhat screws up my prompt.
    In effect, the cursor ends up inside the left hand prompt (see screenhot).
    Also; the right hand prompt gets indented about 5 spaces to much from the right.
    This is my .zshrc:
    #open tmux on startup
    #[[ $TERM != "screen" ]] && tmux && exit
    autoload -Uz compinit
    compinit
    #zstyle ':completion*' menu select
    #setopt completealiases
    #autoload -U promptinit
    #promptinit
    autoload -U colors && colors
    function precmd () {
    local battp=$(ibam --percentbattery | grep % | awk '{print $3}')
    RPROMPT="[%~] [$battp]"
    PROMPT="[%n@%m:]$ "
    #keybindings
    bindkey "^[[7~" beginning-of-line # Home
    bindkey "^[[8~" end-of-line # End
    bindkey "^[[5~" history-beginning-search-backward # PageUp
    bindkey "^[[6~" history-beginning-search-forward # PageDown
    bindkey "^[[2~" quoted-insert # Ins
    bindkey "^[[3~" delete-char # Del
    bindkey "^[[1;5C" forward-word
    bindkey "\eOc" emacs-forward-word
    bindkey "^[[1;5D" backward-word
    bindkey "\eOd" emacs-backward-word
    bindkey "^[[Z" reverse-menu-complete # Shift+Tab
    HISTFILE=~/.histfile
    HISTSIZE=65536
    SAVEHIST=65000
    #aliases
    alias ls='ls --color=auto'
    alias df='df -hT'
    alias cl='clear'
    alias ll='ls -l'
    alias la='ls -A'
    alias free='free -m'
    alias wcu='wicd-curses'
    # The following lines were added by compinstall
    zstyle ':completion:*' completer _complete _ignored
    zstyle ':completion:*' file-sort name
    zstyle ':completion:*' format 'Completing %d'
    zstyle ':completion:*' list-colors ''
    zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|[. -]=** r:|=**'
    zstyle ':completion:*' menu select=0
    zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
    zstyle ':completion:*' use-compctl false
    zstyle ':completion:*' verbose true
    zstyle :compinstall filename '/home/bladt/.zshrc'
    autoload -Uz compinit
    compinit
    # End of lines added by compinstall
    # Lines configured by zsh-newuser-install
    HISTFILE=~/.histfile
    HISTSIZE=10000
    SAVEHIST=15000
    bindkey -e
    # End of lines configured by zsh-newuser-install
    It seems to have been messed up a little by compinit, lets pretend that didn't happen
    (note that "autoload -U promptinit" and "promptinit" are commented out. This doesnt seem to change anything though)
    Last edited by Bladtman242 (2012-02-17 17:59:34)

    Well, yeah actually. It's the colours
    Adding a color in the left-hand prompt moves the right-hand prompt to far to the left.
    Adding a color to the right-hand prompt misplaces the cursor
    Any suggestions?
    EDIT: If I come across seeming a bit smug, it is unintended. Promise
    Last edited by Bladtman242 (2012-02-15 23:18:54)

  • [SOLVED] Bash prompts and bell characters

    Hello
    This is kinda hard to explain, but I'll give a shot - with a couple of screenshots.
    Notice the terminal on the left, and also at the bottom.. whenever I type in a command (or paste from somewhere) that's longer than xx characters, and hit "END" to edit the command, it goes all the way to the start of the line - but visually it's leaving the character behind, so it's impossible to see where you're editing. I suppose it has something to do with my terminal size (even tho "fullscreen" in Xmonad).
    Other than that, I can't figure out why it does it, but it's really anoying.
    .Xdefaults
    http://codepad.org/U2VSyAUR
    Thanks for any help.
    Last edited by valvet (2010-11-07 18:30:05)

    linux-ka wrote:That's strange. I am using xmonad and rxvt-unicode-256color too, but there's no problem. I am running the current version of both of 'em. Have you upgraded xmonad/-contrib? or try to build your rxvt version on your own machine.
    Also, yes - my xmonad stuff should be up to date.
    Name : xmonad-darcs
    Version : 20101103-1
    URL : http://hackage.haskell.org/package/xmonad
    Licenses : custom:BSD3
    Groups : None
    Provides : None
    Depends On : gmp libxinerama ghc haskell-x11>=1.5.0.0 haskell-mtl
    Optional Deps : None
    Required By : xmonad-contrib-darcs
    Conflicts With : xmonad
    Replaces : None
    Installed Size : 4404.00 K
    Packager : Unknown Packager
    Architecture : i686
    Build Date : Wed 03 Nov 2010 11:13:51 PM CET
    Install Date : Wed 03 Nov 2010 11:14:03 PM CET
    Install Reason : Explicitly installed
    Install Script : Yes
    Description : A tiling window manager
    Name : xmonad-contrib-darcs
    Version : 20101103-1
    URL : http://hackage.haskell.org/package/xmonad-contrib
    Licenses : custom:BSD3
    Groups : None
    Provides : None
    Depends On : haskell-x11-xft xmonad-darcs
    Optional Deps : None
    Required By : None
    Conflicts With : xmonad-contrib
    Replaces : None
    Installed Size : 26100.00 K
    Packager : Unknown Packager
    Architecture : i686
    Build Date : Wed 03 Nov 2010 11:16:53 PM CET
    Install Date : Wed 03 Nov 2010 11:17:21 PM CET
    Install Reason : Explicitly installed
    Install Script : Yes
    Description : Third party extensions for xmonad
    Could you try with my Xdefaults file above, see if you can reproduce it? Also try using the font I am (Droid).
    Thanks
    Last edited by valvet (2010-11-07 02:04:57)

  • [SOLVED] Bash changes consolle's colors by itself

    Hi archers,
    I've wrote a little script which ask for the result of a given random moltiplication because I was exercising with $RANDOM and something strange's happend.
    No matter where I am (Tty, Tmux, Urxvt, Xterm...) Bash changes consolle's colors by itself if I do ^c to stop the script, instead of write a reply.
    i.e.'s:
    correct behaviour
    $ 8 * 9 = ?
    $ 72
    $ ls
    file in red file in yellow file in grey...
    Wrong behaviour
    $ 8 *9 = ?
    $ ^c
    $ ls
    file in blue file in green file in white...
    What the heck?
    Bash version is 4.2.39(2)-release.
    The script is the following:
    while :
    do
    min="3"
    max="7"
    fat1="$(($RANDOM%$max+$min))"
    fat2="$(($RANDOM%$max+$min))"
    prod="$(($fat1*$fat2))"
    echo "$fat1 * $fat2 = ?"
    read res
    while [ "$res" != "$prod" ]
    do
    echo "$prod"
    echo "Insert the correct result."
    tavPit
    done
    return 0
    done
    Everything is up to date.
    .bashrc
    [[ $- != *i* ]] && return
    complete -cf sudo
    [ -f /etc/bash_completion ] && ! shopt -oq posix && . /etc/bash_completion
    [ -f ~/.bash/include ] && . ~/.bash/include
    [ -e "$HOME"/.dircolors ] && eval $(dircolors -b "$HOME"/.dircolors)
    include
    #!/bin/bash
    [ -f ~/.bash/alias ] && . ~/.bash/alias
    [ -f ~/.bash/color ] && . ~/.bash/color
    [ -f ~/.bash/export ] && . ~/.bash/export
    [ -f ~/.bash/shopt ] && . ~/.bash/shopt
    [ -f ~/.bash/stty ] && . ~/.bash/stty
    [ -f ~/.bash/set ] && . ~/.bash/set
    color
    nc="\e[0m"
    nbk="\e[0;30m"
    nre="\e[0;31m"
    ngr="\e[0;32m"
    nye="\e[0;33m"
    nbl="\e[0;34m"
    nma="\e[0;35m"
    ncy="\e[0;36m"
    nwh="\e[0;37m"
    bbk="\e[1;30m"
    bre="\e[1;31m"
    bgr="\e[1;32m"
    bye="\e[1;33m"
    bbl="\e[1;34m"
    bma="\e[1;35m"
    bcy="\e[1;36m"
    bwh="\e[1;37m"
    end="\[\e[m\]"
    man() {
    env \
    LESS_TERMCAP_mb=$(printf "\e[0;32m") \
    LESS_TERMCAP_md=$(printf "\e[0;32m") \
    LESS_TERMCAP_me=$(printf "\e[0m") \
    LESS_TERMCAP_se=$(printf "\e[0m") \
    LESS_TERMCAP_so=$(printf "\e[1;31m") \
    LESS_TERMCAP_ue=$(printf "\e[0m") \
    LESS_TERMCAP_us=$(printf "\e[1;33m") \
    man "${@}"
    if [ "$TERM" = "linux" ]; then
    echo -en "\e]P0000000" # Black.
    echo -en "\e]P9ff0000" # Red.
    echo -en "\e]PA00ff00" # Green.
    echo -en "\e]PBffff00" # Yellow.
    echo -en "\e]PC2b4f98" # Blue.
    echo -en "\e]PDff00ff" # Magenta.
    echo -en "\e]PE00ffff" # Cyan.
    echo -en "\e]PFffffff" # White.
    clear
    fi
    .dircolors
    TERM linux
    TERM linux+utf8
    TERM rxvt-unicode
    TERM rxvt-unicode-256color
    TERM screen
    TERM screen-256color
    TERM xterm
    TERM putty
    EIGHTBIT 1
    NORMAL 01;30
    FILE 01;30
    DIR 31
    LINK 36
    FIFO 03;33
    SOCK 03;33
    DOOR 32
    BLK 32
    CHR 32
    ORPHAN 05;33
    EXEC 33
    .tar 31
    .tgz 31
    .arj 31
    .taz 31
    .lzh 31
    .zip 31
    .7z 31
    .z 31
    .Z 31
    .gz 31
    .bz2 31
    .deb 31
    .rpm 31
    .jar 31
    .rar 31
    .xz 31
    .jpg 35
    .jpeg 35
    .gif 35
    .bmp 35
    .pbm 35
    .pgm 35
    .ppm 35
    .tga 35
    .xbm 35
    .xpm 35
    .tif 35
    .tiff 35
    .png 35
    .fli 35
    .gl 35
    .dl 35
    .xcf 35
    .xwd 35
    .pdf 35
    .ogg 34
    .mp3 34
    .wav 34
    .mov 34
    .mpg 34
    .mpeg 34
    .asf 34
    .avi 34
    .mkv 34
    .wmv 34
    .ogm 34
    .C 37
    .H 37
    .c 37
    .h 37
    .cxx 37
    .hxx 37
    .cpp 37
    .hpp 37
    .py 37
    .sh 37
    .vim 37
    .o 37
    .so 37
    .a 37
    .ko 37
    .rc 36
    *rc 36
    Thanks a lot.
    Last edited by rix (2012-11-26 15:38:28)

    Bandit Bowman wrote:My colours are unaffected after running the function. [...]
    Here colors change when I send SIGINT to a running instance of my script; as said before.
    Bandit Bowman wrote:[...] What does $LS_COLORS look like before and after? [...]
    When everything is working right:
    $ echo $LS_COLORS
    $ no=01;30:fi=01;30:di=31:ln=36:pi=03;33:so=03;33:do=32:bd=32:cd=32:or=05;33:ex=33:
    *.tar=31:*.tgz=31:*.arj=31:*.taz=31:*.lzh=31:*.zip=31:*.7z=31:*.z=31:*.Z=31:*.gz=31:
    *.bz2=31:*.deb=31:*.rpm=31:*.jar=31:*.rar=31:*.xz=31:*.jpg=35:*.jpeg=35:*.gif=35:
    *.bmp=35:*.pbm=35:*.pgm=35:*.ppm=35:*.tga=35:*.xbm=35:*.xpm=35:*.tif=35:*.tiff=35:
    *.png=35:*.fli=35:*.gl=35:*.dl=35:*.xcf=35:*.xwd=35:*.pdf=35:*.ogg=34:*.mp3=34:
    *.wav=34:*.mov=34:*.mpg=34:*.mpeg=34:*.asf=34:*.avi=34:*.mkv=34:*.wmv=34:*.ogm=34:
    *.C=37:*.H=37:*.c=37:*.h=37:*.cxx=37:*.hxx=37:*.cpp=37:*.hpp=37:*.py=37:*.sh=37:
    *.vim=37:*.o=37:*.so=37:*.a=37:*.ko=37:*.rc=36:*rc=36:
    When texts change color (the strange behaviour):
    $ echo $LS_COLORS
    $
    Bandit Bowman wrote:[...] Is this the whole script or just a snippet [...]
    Whole.
    Bandit Bowman wrote:[...] because I don't see anything that should modify it. [...]
    That's why I'm asking.
    Bandit Bowman wrote:[...] here's a slightly more straightforward version [...]
    Thanks, I've learnt something.
    Bandit Bowman wrote:[...] although it won't help with the colours.
    Thanks for the reply anyway.
    Bandit Bowman wrote:[...] English: [...]
    Also, many thanks again.
    Edit: solved. "$LS_COLORS" must be set if you want colors.
    Last edited by rix (2012-11-26 15:38:06)

  • [SOLVED] Bash coloured prompt issues

    Hi, I'm having trouble with my bash prompt and after going through a sea of posts on prompts I can't seem to figure out why mine isn't giving the desired behaviour.
    YELLOW='\[\e[0;33m'
    WHITEBOLD='\[\e[1;37m'
    WHITE='\[\e[0;37m'
    ORANGE='\[\e[1;31m'
    PS1="${WHITE}[${ORANGE}\u\] ${YELLOW}\@\] ${WHITEBOLD}\$(parse_git_branch)\] ${ORANGE}>\] ${YELLOW}\w\]${WHITE}]\] \$"
    The desired output:
    [will 06:48 PM (master) > ~/.vim] $
    When I scroll through the history the prompt messes up and starts looking like this:
    [will vim ~/.bashrc
    Last edited by will.price94 (2012-02-27 21:02:26)

    The prompt counts your color sequences as characters which messes up the cursor position. Escape the ${WHITE} and ${YELLOW} etc. by putting them between \[  \] like this: \[${WHITE}\] . In your case, include the closing \] when you define the color variables, so
    YELLOW='\[\e[0;33m\]' so you don't have to worry about them in the PS1= sequence.
    Edit: try like this (maybe remove some spaces, haven't tried the prompt myself)
    YELLOW='\[\e[0;33m\]'
    WHITEBOLD='\[\e[1;37m\]'
    WHITE='\[\e[0;37m\]'
    ORANGE='\[\e[1;31m\]'
    PS1="${WHITE}[${ORANGE}\u ${YELLOW}\@ ${WHITEBOLD}\$(parse_git_branch) ${ORANGE}> ${YELLOW}\w${WHITE}] \$"
    Last edited by VCoolio (2012-02-27 20:26:34)

  • Elevate wrapper / auto prompt for different user credentials APP-V 5.0 for e.g SCCM / SCVMM Consoles

    Hi I have a couple of questions about running APP-V programs as a different user,
    1. What is the best way to get specific APP-V 5 package to automatically prompt for different (e.g. Admin ) credentials when it launches for E.g the Microsoft System Centre consoles? 
    2. If I publish an app via the APP-V server, when I do a shift right click run as different user/admin on an APP-V package it fails to launch. It's as if the other user does not have rights to the package?
    However, when I run the MSI that comes with an APP-V package on a test client, I can do Run as different user.
    Will I need to edit something in the DeploymentConfig / UserConfig xml files?
    Kind regards,
    Pete

    Thanks will use global publishing.
    To test elevated run as, I decided to try and create a Powershell script for launching Certificate Manager.
    This is what I had.
    A file called Test.PS1
    Start-Process powershell -Credential $ID -ArgumentList “Start-Process -FilePath $env:SystemRoot\System32\mmc.exe -WorkingDirectory $PSHOME -ArgumentList $env:SystemRoot\System32\certmgr.msc -Verb RunAs”
    A shortcut created to Test.ps1 on Desktop
    C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -executionpolicy bypass -NoProfile -WindowStyle Hidden -file C:\PS2\Test.ps1
    This worked but when I came to package it it didn't work
    The shortcut changed to  the below in the package and wouldn't launch.
    C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -executionpolicy bypass -NoProfile -WindowStyle Hidden -file %ALLUSERSPROFILE%\Microsoft\AppV\Client\Integration\4307428B-B418-4C08-B9CA-14DA9FCB1C8C\Root\Test.ps1 /appvve:4307428B-B418-4C08-B9CA-14DA9
    I can see instructions on how to embed a powershell script in deployment / user config, but no instructions on how to package a powershell script.

  • Tired of writing your own bash prompt?

    I realized a few days ago that I got tired of looking up arcane bash escape sequences just to customize my bash prompt. In the open source fashion, I wrote a gui in pyGTK that will automatically make one for you, if you just pick the things you want from a menu. It's not really done yet and there's still stuff that I need to add to it, but I thought i'd see if anyone around here had any comments, or would find it useful.
    Check it out: https://github.com/wisp558/promptool
    It's worth noting that I only implemented 3 of the most common bash variables, but I should fix that soon. (and the bold button is broken)
    Last edited by wisp558 (2011-08-19 09:31:46)

    Doomcide wrote:Nice! Good to see how this project develops . Another suggestion I have, is to add bright color (e.g.: \e[1;30m) support.
    Yeah, I plan to. Other things I'm looking at include a place to select the text color, (It'll use the last color in the prompt), background colors, underlined things and changing the whole textview background (I use a black urxvt, personally). I may even add a thing to save prompts or something. I might add an option to append the PS1 to one's ~/.bashrc, making the gui display the finished prompt rather than the terminal and more! I have plenty of ideas left!
    As a note, the escape you posted is just the bold option I already have. There is a high intensity option in bash, which I will look into, although it does nothing in my terminal. Those are things like '\e[0;90m' and its  friends.
    Thanks for your feedback, guys.

  • Lightroom displays colors differently than Photoshop

    Lightroom (and my image previewer - IfranView) display my image colors differently than photoshop.  This is very disturbing (why can't Adobe make this simple!)! 
    Image in question - see below.  Center image is Photoshop, left is Lr 4 and right is InfranView.
    Colorspace:  AdobeRGB 1998
    Image color (exported the TIFF file in Lr, what is shown below):  AdobeRGB 1998
    NOTE:  when I export out as sRGB, IfranView displays it correctly (I don't know why, it can't display ProPhoto correctly, but never had a problem with AdobeRGB).  Lightroom looks incorrect when viewing the TIFF, AdobeRGB JPEG and sRGB JPEG.
    What is going on??  I've tried this on two computers now and it is the same problem!

    The larger file is Adobe RGB and the smaller file is sRGB.  I see no difference in overall tone or color between the two files in LR 3, LR 4, LR 5, PS CS5, PS CS6, PS CC 2014, or Windows Photo Viewer which is color-managed, aside from an almost imperceptible change in the darkest blacks which I'd expect since you're converting AdobeRGB to sRGB at some point.
    I can make the Adobe RGB one look like it does at the left of your first screenshot if I Assign Profile: sRGB to it in PS.
    Since your monitor appears to be wide-gamut and therefore similar to Adobe RGB, I think the problem you're having is that LR thinks the monitor is sRGB for some reason, perhaps due to your switching the cables from one computer to the other without rebooting and recalibrating.  It's also possible that your profile is stored in the monitor rather than in the computer and one computer understands this and the other doesn't so you're getting double-profiling or no profiling occurring.
    It sounds the your only issue is having two computers attached alternatively to one monitor without having a valid profile on each computer for that monitor and aren't restarting each computer to load that profile.  At least that is my analysis given the limited information.
    I would conclude that nothing is wrong with LR or PS just the hardware connections and the color management confusion between the two computers, not your confusion, the computers'.

  • Setting Global Prompt Color

    I have setup my bashrc prompt colors exactly the way I want them. My issue is that some scripts and apps change the color back to the default gray. I would like to change this behaviour and have no idea where to procede.
    EDIT: What i need to change is the default system prompt color. Any ideas on how to do so?
    Last edited by orphius (2009-04-03 11:07:53)

    pacman is one and rkhunter is another. Also here is my PS1 entry in case it might help
    PS1='\[\033[1;36m\]\d\[\033[0m\]\[\033[1;36m\] \@ \[\033[0m\]\n\[\033[1;32m\]\u\[\033[0m\]\[\033[1;37m\] @ \[\033[0m\]\[\033[1;32m\]$PWD\[\033[0m\]\[\e[1;36m\] \$ '
    I know there is a way to change the system default font color in runlevel3 I think thats what I need to change. Its the font color not the background i want to change
    Last edited by orphius (2009-04-03 14:59:03)

  • Why are the colors in XTerm (x11) and Apple's terminal are different?

    Is there a way to fix this? I would like Apple's terminal to look like XTerm...
    the screenshot on the left is X11, and the screenshot on the right is Apple's terminal:

    Patrick Collins wrote:
    The "Pro" setting and the others are nothing more than settings for background and foreground text. Not the actual ANSI colors found when you do a colorized LS, or syntax highlighting in editors like vim.
    So, that is my question, why are these two terminals interpreting colors differently? Where can I FIX what it thinks "blue" is, etc?
    OK. I get it now. Apple's blue isn't blue enough I guess. Apparently people have been up in arms over this for years. I guess I missed it.
    This hack: http://ciaranwal.sh/2007/11/01/customising-colours-in-leopard-terminal
    is supposedly working in 10.6.4 now.

  • In Spry menu, can I make the dropdown colors different from the main one?

    In this menu at the link, I would like to keep "who we are" in the color it is, but make its submenu colors different. I can't see to find in the CSS where to do that without changing both the main and sub menu colors.
    Homepage

    Based on the default Spry menu code you are correct that it is all or nothing.  The only alternative you could do is create your own custom CSS class to use on all sub-menu items on the drop-down to override the colors.  This declaration would need to be after the Spry submenu one that you have found because the browsers will read CSS from start to finish so the later declarations will override the earlier ones.

  • Function to color Text in Console Program?

    Does anybody knows of a function to color Text in Console Program.
    Example textbackcolor(2);//c++
    system.out.println("Heres is a color text");
    And how do you clear the console window in java in c++
    it is clrscr().

    Java is not designed for producing fancy output at the console. If you want good-looking output you should consider using a graphical interface, like AWT or Swing.

  • Safari shows colors different than other browsers and GoLive

    Does anyone know why Safari shows colors differently than Firefox, Explorer and Opera, Mozilla and Golive?
    For example if I use "websafe" colors in photoshop with 2.2 gamma and sRGBie...2.1 and save, then import into Go Live with the working space the same, North America Web/ Internet, the colors are typically darker, although occasionally they are the same.
    I have tried embedded profiles and non embeded.
    The difference only happens when I view the page in Safari. By the way I use a mac, GoLive CS2
    This is a constant frustration. I have created several tests but have found no satisfactory results. I am in the process of creating a website for teachers who use powerbooks and safari. And this color change really restricts creative possibilities. If the same page is viewed in Firefox it looks like it does in GoLive.
    Thanks for any help,
    Kevin

    >> When no profile is in use.. Safari will assume sRGB becaus this is the web standart profile...
    True on Windows Safari and other Windows browsers.
    Safari on Mac and other Mac browsers 'assumes, assigns, applies' the Mac's default monitor profile to untagged color.
    This is easy to proof here in the sRGB rollover:
    http://www.gballard.net/psd/go_live_page_profile/embeddedJPEGprofiles.html
    If Mac Safari 'assumed' sRGB on untagged files, then the sRGB rollover will have zero change.
    +++++
    >> converting to sRGB before saving for the web ensure god color in all browseres, and JPG and PNG can be savde with color profile
    Except in Mac browsers that have 1.8 monitor gamma profiled.
    The Mac-specific problem with trying to match tagged graphics on matched-color background in Safari is:
    1) The color background is untagged and will Assume default Monior RGB.
    2) The tagged graphic will be Converted to Monitor RGB.
    In other words, if you fill a page with 4bb93c and place a tagged sRGB image, filled with 4bb93c, the two colors won't match up in color-managed Mac web browsers like Mac Safari...however, if you untag the sRGB file, it will disappear on the page, but it will be off color depending how close Monitor RGB is to sRGB profile in Mac browsers.
    Windows, on the other hand is a different beast, it Assigns sRGB to untagged color, so tagged/untagged sRGB will be good in all Windows browsers.
    At least that is what I have seen here on my Windows Vista Business box.

  • I keep getting a update notification for iMovie but when i click update it prompts a different apple id

    i keep getting a update notification for iMovie but when i click update it prompts a different apple id and it dose not allow me to change the apple id so I'm left with the old iMovie and no way to update ?? need help

    Deleting and redownloading will not fix it unless it shows as part of your purchases, which it likely doesn't.
    The resolution will depend on how you got the app in the first place.  Check my response here Lost iWorks apps after Yosemite clean install  different app, but same thing.
    If your Mac came with the dvd version, you never tied them to your Apple ID (assuming eligibility to do so), sometimes signing out/in from the App Store fixes it, allowing you to accept under purchases (see my other post).  Otherwise, you'll need to contact Apple.

  • [SOLVED]Color Bash Prompt help

    So I have been customizing my arch box and everything has been great except for one problem; the bash color prompt. I am kind of running a color screen where I am using the same shade of green, blues, grays, etc. I would like to continue that with my bash color prompt. However it seems to use some weird numbering system for its colors that I am not familiar with. I know that there is a way to use 256 colors, but I am not sure how.
    So for example I would like to have this shade of green from bash  0;32m' as this #87d75f  in html notation.
    Is there a way for this to be done? Thanks.
    Last edited by NoxSec (2011-07-15 20:52:08)

    The prompt inherits colours from those specified in .Xresources https://wiki.archlinux.org/index.php/Xresources

Maybe you are looking for

  • Unable to login in EP 6.0 after system refresh

    After performing the system refresh of EP 6.0, completed the post system copy steps. Imported the new certificated as well, when I try to login the page is getting refresh but remains on the same page. please help me what could be the reason.

  • Which do I have, 12" or 14" iBook?

    This may seem a simple question. But, how can I verify that I have either the 14" or 15" iBook G4? Iv searched everyone in my system, but it never refers to size. I need to buy a new battery, but all web site sell by 12", 14", 15" etc. can't get one

  • Jquery mobile Phonegap?

    Kind of confused, I have made an app in Dreamweaver cs6 with Jquery mobile, but now I want to export/publish so I can use the app. Is phonegap with eclipse the only software to do this? Is there any easier way directly out of dreamweaver to package i

  • ToolTip.Show() displays previous data - C# winforms

    Hi, I am facing a pblm while using ToolTip.Show(). I am working on a windows appl. On the form we hv multiple buttons, we can configure the buttons for some frequencies and that freq. will be shown in the tooltip when we move the mouse over the btn.

  • Partial Hard Drive failure??

    I turned my Envy13 on it gave my a black screen with a 3F0 missing boot device message.  I reseated the SSD hard drive.  The hard drive test says everything is OK, but only the "X" restore partition shows up and the "C" partition is completely missin