For years, I’ve been searching for a suitable terminal emulator for Cygwin, but nothing seemed as polished or had enough features to pull me away from the boring default.
I finally found the Holy Grail in a program I’ll call Java Terminator. The authors of this fine program just call it Terminator, but unfortunately a later Linux GNOME-based terminal emulator of the same name stole some of their thunder.
The best part of Java Terminator (and there are many excellent parts) is that, because it is written in Java, it runs on Cygwin, Linux, and MacOS. I’m able to use it at home on my Windows XP box and at work on Ubuntu, with no issues. Other terrific features are multiple tabs (liked tabbed web browsing, only with many terminals per window), unlimited scrollback, and automatic logging of everything.
As with any cross-platform program, there are a few configuration differences or issues to be aware of:
Redhat (RHEL5.2) and Centos
/usr/share/terminfo/t/terminatordoesn’t have any effect on the shell, vim, or less or man commands. After installing the terminfo, create a section for terminator in termcap.
$ sudo sh -c "infocmp -C >> /etc/termcap"
To do this locally (when you don’t have root access), you need to both create
~/.termcapand set the TERMCAP environmental variable. $ infocmp -C > ~/.termcap $ export TERMCAP=~/.termcap
I was never able to get color working with Redhat’s version of vim. Instead, I downloaded vim and built it from source. The built version uses ncurses instead of termcap, and it colors fine.
Debian (4.0) and Ubuntu
/usr/share/terminfo/t/terminator. These distributions don’t use termcap, so everything just works!
I first tried creating
/usr/share/terminfo/t/terminator(without a local
~/.terminfo). Vim worked fine, but the shell gave me a No entry for terminal type “terminator” error. The less and man commands both gave WARNING: terminal is not fully functional messages. Added a local
Adding a record to termcap solved the shell issue, but not less or man.
$ infocmp -C >> /etc/termcap
The infocmp command is part of the ncurses package.
It turns out, when I installed Cygwin, I set the default to Unix line feeds. But the infocmp command spits out DOS line feeds! So my termcap file had Unix line feeds except for the terminator section. Apparently, the shell could still read the file, but the less and man commands could not. The dos2unix command solved the problem!
$ dos2unix /etc/termcap
After that initial set-up, I’ve had no problems with emulator at all. The program has an active Google group and mailing list. The authors and enthusiasts there are more than helpful.
Last Updated: Fri, 05 Nov 2010