putty cygterm on windows

Putty is a reasonably good enough replacement for “cmd” and the out of the box terminal that comes with cygwin. If you follow these steps below, you’ll get a terminal with these features:

  • much like an xterm(pasting, extending selection) etc. all work
  • a resizable window(unlike cmd)
  • ability to run “screen” locally on windows.
  • better colorsFirst you’ll need the following:
  • cygwin, with gcc
  • a version of screen that is ported to work with cygwin, I’ve been using this version for the last few months: http://web.gccaz.edu/~medgar/screen.html
  • putty, ported to work against local cygwin http://web.gccaz.edu/~medgar/puttycyg/For screen, extract, configure, make, and make install it.

    Then run putty -cygterm – and you’ll get a bash shell(if that’s what’s in /etc/passwd) running against your local machine, without ssh.

    Now run “screen”
    You may notice that the title doesn’t reflect the current screen session. I have found that I had to add the following to /etc/screenrc

    termcapinfo xterm 'hs:ts=\E]2;:fs=07:ds=\E]2;screen07'hardstatus string "[screen %n%?: %t%?] %h"

    Be sure that if you use .screenrc, that your .screenrc uses unix line endings(dos2unix).

  • Advertisements

    About this entry