Date: Mon, 8 Sep 1997 01:45:05 -0700 (PDT) From: "Bryan K. Ogawa" <bkogawa@primenet.com> To: mcglk@yang.cpac.washington.edu Cc: freebsd-questions@FreeBSD.ORG Subject: Re: tcsh, stty, and other oddities. Message-ID: <199709080845.BAA13441@foo.primenet.com> References: <199709070921.CAA16958@yang.cpac.washington.edu>
index | next in thread | previous in thread | raw e-mail
In localhost.freebsd.questions you write:
OK... round two. I diffed your stty and my stty, and here's what I got:
First, my stty (2.2-STABLE, 6.06):
speed 9600 baud; 24 rows; 80 columns;
lflags: icanon isig iexten echo echoe echok echoke -echonl echoctl
-echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
-extproc
iflags: -istrip icrnl -inlcr -igncr ixon -ixoff -ixany imaxbel -ignbrk
brkint -inpck ignpar -parmrk
oflags: opost onlcr -oxtabs
cflags: cread cs8 -parenb parodd -hupcl -clocal cstopb -crtscts -dsrflow
-dtrflow -mdmbuf
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
eol2 = <undef>; erase = ^H; intr = ^C; kill = ^U; lnext = ^V;
min = 1; quit = ^\; reprint = ^R; start = ^Q; status = <undef>;
stop = ^S; susp = ^Z; time = 0; werase = ^W;
>The FreeBSD 2.1.7.1-RELEASE system has (with stty -a):
>speed 9600 baud; 24 rows; 80 columns;
>lflags: icanon isig iexten echo echoe echok echoke -echonl echoctl
> -echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
> extproc
>iflags: -istrip icrnl -inlcr -igncr ixon -ixoff -ixany imaxbel -ignbrk
> brkint -inpck -ignpar -parmrk
>oflags: opost onlcr oxtabs
>cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow
> -dtrflow -mdmbuf
>cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
> eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = ^V;
> min = 1; quit = ^\; reprint = ^R; start = ^Q; status = <undef>;
> stop = ^S; susp = ^Z; time = 0; werase = ^W;
Here are the options which differ:
-extproc
ignpar
-oxtabs
parodd
-hupcl
cstopb
erase = ^H
Another thing I'm wondering about is what setty returns. Apparently
this can influence things, although I'm not entirely sure how. Here's
my setty:
{foo} ~ 1:44 ttyp4 > setty
iflag:-inlcr -igncr +icrnl
oflag:+opost +onlcr
cflag:
lflag:+isig +icanon +echo +echoe -echonl -noflsh +echoctl -flusho +iexten
-extproc
chars:
Another useful and interesting command may be echotc, settc, and
telltc. Here's what my terminal returns:
Tcsh thinks your terminal has the
following characteristics:
It has 80 columns and 24 lines
It has a meta key
It can use tabs
It has automatic margins
It has magic margins
add new blank line (al) == ^[[L
audible bell (bl) == ^G
clear to bottom (cd) == ^[[J
clear to end of line (ce) == ^[[K
cursor to horiz pos (ch) == (empty)
clear screen (cl) == ^[[H^[[J
delete a character (dc) == ^[[P
delete a line (dl) == ^[[M
start delete mode (dm) == (empty)
end delete mode (ed) == (empty)
end insert mode (ei) == ^[[4l
cursor from status line (fs) == ^[[?F
home cursor (ho) == ^[[H
insert character (ic) == (empty)
start insert mode (im) == ^[[4h
insert padding (ip) == (empty)
sends cursor down (kd) == ^[OB
sends cursor left (kl) == ^[OD
sends cursor right (kr) == ^[OC
sends cursor up (ku) == ^[OA
begin bold (md) == ^[[1m
end attributes (me) == ^[[m
non destructive space (nd) == ^[[C
end standout (se) == ^[[m
begin standout (so) == ^[[7m
cursor to status line (ts) == ^[[?E^[[?%i%dT
cursor up one (up) == ^[[A
begin underline (us) == ^[[4m
end underline (ue) == ^[[m
visible bell (vb) == (empty)
delete multiple chars (DC) == ^[[%dP
cursor down multiple (DO) == ^[[%dB
insert multiple chars (IC) == (empty)
cursor left multiple (LE) == ^[[%dD
cursor right multiple (RI) == ^[[%dC
cursor up multiple (UP) == ^[[%dA
I hope that this helps...
--
bryan k ogawa <bkogawa@primenet.com> http://www.primenet.com/~bkogawa/
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709080845.BAA13441>
