From owner-freebsd-questions Mon Sep 8 01:41:26 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA18649 for questions-outgoing; Mon, 8 Sep 1997 01:41:26 -0700 (PDT) Received: from foo.primenet.com (ip200.sjc.primenet.com [206.165.96.200]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id BAA18619 for ; Mon, 8 Sep 1997 01:40:48 -0700 (PDT) Received: (from bkogawa@localhost) by foo.primenet.com (8.8.6/8.6.12) id BAA13441; Mon, 8 Sep 1997 01:45:05 -0700 (PDT) Date: Mon, 8 Sep 1997 01:45:05 -0700 (PDT) Message-Id: <199709080845.BAA13441@foo.primenet.com> To: mcglk@yang.cpac.washington.edu Subject: Re: tcsh, stty, and other oddities. Newsgroups: localhost.freebsd.questions References: <199709070921.CAA16958@yang.cpac.washington.edu> From: "Bryan K. Ogawa" Cc: freebsd-questions@FreeBSD.ORG X-Newsreader: NN version 6.5.0 #1 (NOV) Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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 = ; eol2 = ; erase = ^H; intr = ^C; kill = ^U; lnext = ^V; min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ; 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 = ; > eol2 = ; erase = ^?; intr = ^C; kill = ^U; lnext = ^V; > min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ; > 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 http://www.primenet.com/~bkogawa/