BigAdmin System Administration Portal
Community-Submitted Tech Tip
Print-friendly VersionPrint-friendly Version
This content is submitted by a BigAdmin user. It has not been reviewed for technical accuracy by Sun Microsystems, though it may have been lightly edited to improve readability. If you find an error or would like to comment on the article, please contact the submitter or use the comment field at the bottom of the article. Community submissions may not follow Sun trademark guidelines. For information on Sun trademarks, please see http://www.sun.com/suntrademarks/.
 
 

Using Cygwin's Color CMD Window on the Solaris OS

Alec Effrat, April 2007

Cygwin is a Linux-like environment for Windows. To use the color CMD window provided by Cygwin on a machine that runs the Solaris Operating System, here are two things to do:

1. Upload the Cygwin termcap file. (I uploaded the one from Cygwin and it worked perfectly.) To do this, copy the file from Cygwin's /usr/share/terminfo/c/cygwin directory to your Solaris machine's $HOME/.terminfo/c/cygwin directory.

2. Add the following to your .cshrc file:

tput longname
if ( $status == 3 ) then
  echo "Searching Home Directory for TERMINFO"
  setenv TERMINFO "$HOME/.terminfo"
  set term=$term
  tput longname
endif

Note: If you don't want the information about your current terminal name, you can just redirect the tput commands to /dev/null.


Unless otherwise licensed, code in all technical manuals herein (including articles, FAQs, samples) is provided under this License.


BigAdmin