Discussion:
carriage returns and other characters in acme/rc
(too old to reply)
Christopher Hobbs
2012-09-10 08:48:36 UTC
Permalink
Some programs like git and zsh (when I ssh into other machines) will spew out carriage returns and other characters like this when run under 9term, acme, or rc:

http://cl.ly/image/2Q0F3v3Y1T28
http://cl.ly/image/2v313p1h1O3n

This is happening in p9p, vanilla plan9, and 9front. Is there a means of getting acme or rc to display these values "correctly"?

Thanks.
c***@gmx.de
2012-09-10 08:57:09 UTC
Permalink
i know that telnet, con and the old ssh have -r option that
supresses carriage return. not sure about the new ssh2 tho.

--
cinap
erik quanstrom
2012-09-10 13:56:25 UTC
Permalink
Post by c***@gmx.de
i know that telnet, con and the old ssh have -r option that
supresses carriage return. not sure about the new ssh2 tho.
it does.

- erik
Aram Hăvărneanu
2012-09-10 09:20:22 UTC
Permalink
What happens if you set TERM=dumb? Since I've set TERM=dumb I've never
seen this.
--
Aram Hăvărneanu
dexen deVries
2012-09-10 09:31:29 UTC
Permalink
Post by Aram Hăvărneanu
What happens if you set TERM=dumb? Since I've set TERM=dumb I've never
seen this.
thanks, works for me :D
--
dexen deVries

[[[↓][→]]]
Charles Forsyth
2012-09-10 09:42:12 UTC
Permalink
From GNU programs you will then get moans about the terminal:
%TERM=dumb
% man date
WARNING: terminal is not fully functional
- (press RETURN)

because it doesn't emulate a device that was last built decades ago.
At least they don't demand 3270s.
Post by Aram Hăvărneanu
What happens if you set TERM=dumb? Since I've set TERM=dumb I've never
seen this.
dexen deVries
2012-09-10 09:45:50 UTC
Permalink
Post by Charles Forsyth
%TERM=dumb
% man date
WARNING: terminal is not fully functional
- (press RETURN)
% TERM=dumb
% PAGER=cat
% man date
DATE(1)
User Commands
DATE(1)



NAME
date - print or set the system date and time
(...)




in slightly related news, here's mine:


$ cat ~/bin/acme
#!/usr/bin/env rc
TERM=dumb
exec $PLAN9/bin/acme -c1 -a $*
$
--
dexen deVries

[[[↓][→]]]
Charles Forsyth
2012-09-10 09:51:09 UTC
Permalink
I have a script "u" that does just that, allowing "u date", "u man", "u
./configure" and so on.

% cat bin/u
#!/bin/rc
SHELL=/bin/sh
path=(/usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin
/usr/bin/X11 /usr/games)
MANPAGER=/bin/cat
exec $*
Post by dexen deVries
Post by Charles Forsyth
%TERM=dumb
% man date
WARNING: terminal is not fully functional
- (press RETURN)
% TERM=dumb
% PAGER=cat
% man date
DATE(1)
User Commands
DATE(1)
NAME
date - print or set the system date and time
(...)
$ cat ~/bin/acme
#!/usr/bin/env rc
TERM=dumb
exec $PLAN9/bin/acme -c1 -a $*
$
--
dexen deVries
[[[↓][→]]]
erik quanstrom
2012-09-10 13:58:28 UTC
Permalink
Post by Charles Forsyth
because it doesn't emulate a device that was last built decades ago.
At least they don't demand 3270s.
true. but at least 3270 emulation makes sense. those programs
were written for that terminal decades ago, and never supported
a variety of terminals. the alternative is a layer of web goo, that
given the environment, probablly supports only ie6. :-)

git on the other hand really has no excuse.

- erik
Christopher Hobbs
2012-09-12 09:08:24 UTC
Permalink
Incoming double post... I didn't notice that my original message got posted and I reposted tonight. I apologize for the noise. I'll try the suggestions metioned. Thanks.
Post by Christopher Hobbs
http://cl.ly/image/2Q0F3v3Y1T28
http://cl.ly/image/2v313p1h1O3n
This is happening in p9p, vanilla plan9, and 9front. Is there a means of getting acme or rc to display these values "correctly"?
Thanks.
Loading...