* Defining "\r" Behavior in SSH Window
@ 2007-03-09 12:57 gamename
2007-03-09 13:50 ` Matthew Flaschen
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: gamename @ 2007-03-09 12:57 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Defining "\r" Behavior in SSH Window
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-10 10:35 ` Colin S. Miller
2 siblings, 0 replies; 4+ messages in thread
From: Matthew Flaschen @ 2007-03-09 13:50 UTC (permalink / raw)
To: emacs
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?
Fix your program. :) Use:
printf("<text>\n");
I verified that it works over ssh (and in a local, normal, shell).
Not sure what this has to do with emacs, though...
Matthew Flaschen
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Defining "\r" Behavior in SSH Window
[not found] ` <mailman.716.1173448288.7795.help-gnu-emacs@gnu.org>
@ 2007-03-09 18:20 ` gamename
0 siblings, 0 replies; 4+ messages in thread
From: gamename @ 2007-03-09 18:20 UTC (permalink / raw)
To: help-gnu-emacs
On Mar 9, 5:50 am, Matthew Flaschen <matthew.flasc...@gatech.edu>
wrote:
> 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?
>
> Fix your program. :) Use:
Can't. :) I would if I could. The app is outside my control.
>
> printf("<text>\n");
>
> I verified that it works over ssh (and in a local, normal, shell).
>
> Not sure what this has to do with emacs, though...
>
> Matthew Flaschen
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Defining "\r" Behavior in SSH Window
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-10 10:35 ` Colin S. Miller
2 siblings, 0 replies; 4+ messages in thread
From: Colin S. Miller @ 2007-03-10 10:35 UTC (permalink / raw)
To: help-gnu-emacs
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-03-10 10:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.