From: "Colin S. Miller" <no-spam-thank-you@csmiller.demon.co.uk>
To: help-gnu-emacs@gnu.org
Subject: Re: Defining "\r" Behavior in SSH Window
Date: Sat, 10 Mar 2007 10:35:27 +0000 [thread overview]
Message-ID: <45f289f0$0$90271$14726298@news.sunsite.dk> (raw)
In-Reply-To: <1173445045.120776.193280@n33g2000cwc.googlegroups.com>
gamename wrote:
> Hi,
>
> I have a C application that does "printf("<text>\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.
prev parent reply other threads:[~2007-03-10 10:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-09 12:57 Defining "\r" Behavior in SSH Window gamename
2007-03-09 13:50 ` Matthew Flaschen
[not found] ` <mailman.716.1173448288.7795.help-gnu-emacs@gnu.org>
2007-03-09 18:20 ` gamename
2007-03-10 10:35 ` Colin S. Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='45f289f0$0$90271$14726298@news.sunsite.dk' \
--to=no-spam-thank-you@csmiller.demon.co.uk \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).