From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16131 invoked by alias); 7 Jan 2010 23:30:25 -0000 Received: (qmail 16123 invoked by uid 22791); 7 Jan 2010 23:30:24 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-fx0-f223.google.com (HELO mail-fx0-f223.google.com) (209.85.220.223) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 07 Jan 2010 23:30:15 +0000 Received: by fxm23 with SMTP id 23so15499324fxm.18 for ; Thu, 07 Jan 2010 15:30:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.239.186.199 with SMTP id i7mr116765hbh.44.1262907012648; Thu, 07 Jan 2010 15:30:12 -0800 (PST) In-Reply-To: <3ca7721c1001071337m409cc09ag77d5ca492839022b@mail.gmail.com> References: <3ca7721c1001071332p365365eeo80461caaf001c9ab@mail.gmail.com> <3ca7721c1001071337m409cc09ag77d5ca492839022b@mail.gmail.com> Date: Thu, 07 Jan 2010 23:30:00 -0000 Message-ID: <416096c61001071530s7195410v47dab82ed8d707ff@mail.gmail.com> Subject: Re: xterm + mc problem: messed up output when running commands From: Andy Koppe To: cygwin-xfree@cygwin.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com X-SW-Source: 2010-01/txt/msg00043.txt.bz2 2010/1/7 Andrew Zhezherun: > I have a weird problem with the latest Cygwin 1.7. It happens with > both a fresh install on a Windows 7 machine and with an upgraded > install of Cygwin on a Windows XP machine. When I execute various > commands from Midnight Commander when it is running under Cygwin/X > xterm, e.g. cat, the lines are printed with an offset. For example, > when I run > > cat /etc/X11/app-defaults/XTerm > > I get the following output on the screen: > > ----------------------------------------------------------------- > =C2=A0=C2=A0 =C2=A0 =C2=A0 ! VT100s and similar terminals recognize escap= e sequences > and control > =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ! characters to which they reply= to the host with othe > r escape sequences, > =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ! to= provide information. =C2=A0The "resize" progra > m uses this feature. > [...] I find that mc immediately switches back to the folder view. How do you keep it on the screen? If I add a 'sleep 3' after the cat, I see that the lines are arranged as intended, without the staircase effect. The carriage return after the newline is normally added by the pseudo terminal driver. This is controlled by the stty onlcr setting. Andy -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/