csh color codes

gobo@gobo-net.de gobo@gobo-net.de
Thu Jan 29 16:35:00 GMT 2004


Thanks a lot, this works perfectly!

Best regards,
Jochen =8-)
 
> Why not use printf and \033 for the escape character?  The
> following prints "xxx yyy zzz" where "yyy" is green:
> 
>     printf 'xxx \033[32myyy\033[m zzz'
> 
> Here is a list showing other escape sequences
> 
>     # foreground colours
>     printf '\033[30m black \033[m'
>     printf '\033[31m red \033[m'
>     printf '\033[32m green \033[m'
>     printf '\033[33m yellow \033[m'
>     printf '\033[34m blue \033[m'
>     printf '\033[35m magenta \033[m'
>     printf '\033[36m cyan \033[m'
>     printf '\033[37m white \033[m'
> 
>     # background colours
>     printf '\033[40m black \033[m'
>     printf '\033[41m red \033[m'
>     printf '\033[42m green \033[m'
>     printf '\033[43m yellow \033[m'
>     printf '\033[44m blue \033[m'
>     printf '\033[45m magenta \033[m'
>     printf '\033[46m cyan \033[m'
>     printf '\033[47m white \033[m'
> 
>     # other
>     printf '\033[0m default \033[m'
>     printf '\033[1m bold \033[m'
>     printf '\033[2m faint \033[m'
>     printf '\033[3m italic \033[m'
>     printf '\033[4m underlined \033[m'
>     printf '\033[5m slowblink \033[m'
>     printf '\033[6m rapidblink \033[m'
>     printf '\033[7m negative \033[m'
> 
> Peter
> 
> -- 
> Peter J. Acklam - pjacklam@online.no - http://home.online.no/~pjacklam
> 
> 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list