0

When logging in to a Debian Sarge install from cygwin, if I run top the output is "double spaced" for lack of a better word. The end result is that I can see the last few lines for the last few processes, but its not really usable:

28849 root       9   0  1896 1884 1392 S  4.6  0.5   0:01.36 dump



28861 root      12   0  1104 1104  848 R  1.6  0.3   0:00.14 top

    5 root      10   0     0    0    0 D  0.3  0.0   0:00.01 bdflush

    1 root       8   0   444  444  396 S  0.0  0.1   0:15.48 init

    2 root       8   0     0    0    0 S  0.0  0.0   0:00.01 keventd

    3 root      19  19     0    0    0 S  0.0  0.0   0:00.12 ksoftirqd_CPU0

I'm pretty sure this might be a termcap issue. Am I missing something simple?

Kyle
  • 1,859
  • 2
  • 17
  • 23

3 Answers3

1

The www.cygwin.com mailing list seems to suggest the new "native rxvt" instead of bash in a cmd.exe Window. I have just installed it, and I must say its quite nice. Solved the top problem and it does feel much more like a proper UNIX terminal.

For reference: http://www.cygwin.com/ml/cygwin/2005-10/msg00470.html

Kyle
  • 1,859
  • 2
  • 17
  • 23
0

Works fine for me. I'd suggest running cygwin 1.7, its still beta but I've found it to be stable and has lots of improvements over the stable 1.5. Also, you will probably get better answers for this question on the cygwin mailing list.

Ian Kelling
  • 2,661
  • 6
  • 23
  • 21
0

It sounds like an issue with Cygwin. Do you have the same issue when using putty or another client?

MathewC
  • 6,957
  • 9
  • 39
  • 53
  • No, putty is fine. I suspect that cygwin is setting the TERM value to something like cygwin, while putty seems to set it to something more reasonable: dcr1:/usr/share/otrs# echo $TERM xterm I'm not sure how to get cygwin to do the same. – Kyle Jun 08 '09 at 16:50
  • Perhaps this can help: http://cygwin.com/1.7/cygwin-ug-net/using-cygwinenv.html (no)tty - if set, Cygwin enables extra support (i.e., termios) for UNIX-like ttys in the Windows console. It is not compatible with some Windows programs. Defaults to not set, in which case the tty is opened in text mode. Note that this has been changed such that ^D works as expected instead of ^Z, and is settable via stty. This option must be specified before starting a Cygwin shell and it cannot be changed in the shell. It should not be set when using other terminals (i.e., rxvt or xterm). – MathewC Jun 08 '09 at 17:56
  • Sorry MatthewC. Nice try though. I'm reading that it has to do with the COLUMNS environment variable, something about it miscounting. cygwin.com seems to recommend that I not use the cmd.exe window, trying something I found there. – Kyle Jun 09 '09 at 10:10
  • Sorry man. I don't have cygwin here to try and I was using your question to learn more about it myself. – MathewC Jun 09 '09 at 13:40