From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Colin S. Miller" Newsgroups: gmane.emacs.help Subject: Re: Defining "\r" Behavior in SSH Window Date: Sat, 10 Mar 2007 10:35:27 +0000 Organization: SunSITE.dk - Supporting Open source Message-ID: <45f289f0$0$90271$14726298@news.sunsite.dk> References: <1173445045.120776.193280@n33g2000cwc.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1173523304 26361 80.91.229.12 (10 Mar 2007 10:41:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 10 Mar 2007 10:41:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 10 11:41:40 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HPz1A-0006dW-3A for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Mar 2007 11:41:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPz1W-0001hZ-TM for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Mar 2007 05:42:02 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.germany.com!news.banetele.no!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail User-Agent: Icedove 1.5.0.9 (X11/20061220) Original-Newsgroups: gnu.emacs.help In-Reply-To: <1173445045.120776.193280@n33g2000cwc.googlegroups.com> Original-Lines: 33 Original-NNTP-Posting-Host: 62.56.85.48 Original-X-Trace: news.sunsite.dk DXC=NQjBU=H\2T2N=S_a\VX>h; YSB=nbEKnk; ebg1>^?UCA:G1[Bg<0aH50\VT\m5_SIb6U_42Df:PaK8TcL2h5ahoT?kF_>m>CYcV?iN5`DEjM?V60TB:gK8=Y_7 Original-X-Complaints-To: staff@sunsite.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:146255 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41859 Archived-At: gamename wrote: > Hi, > > I have a C application that does "printf("\r"). The result in a > shell window is to produce a newline. But in an ssh window, a newline > is not created. So, the output in a shell window looks like this: > > yadda > yadda > yadda > > while the ssh window's output looks like this: > > yaddayaddayadda > > Now can I make the ssh window behave the same way as the shell buffer? > > Thanks, > -T > If the app doesn't print lines without cartridge returns/new lines, try running app | tr '\015' '\012' This should change CR to LF (tr uses octal to specify the characters). HTH, Colin S. Miller -- Replace the obvious in my email address with the first three letters of the hostname to reply.