*BSD News Article 28136


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!foxhound.dsto.gov.au!fang.dsto.gov.au!yoyo.aarnet.edu.au!news.adelaide.edu.au!news.cs.su.oz.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!pipex!uunet!nwnexus!halcyon!sandy
From: sandy@halcyon.halcyon.com (Sandy Fifer)
Newsgroups: comp.os.386bsd.development
Subject: Re: vi (elvis) and more dont work on com ports
Date: 10 Mar 1994 06:13:16 GMT
Organization: A World of Information at Your Fingertips
Lines: 17
Message-ID: <2lmdps$347@nwfocus.wa.com>
References: <2ljo9e$2qv@news.iastate.edu> <1994Mar9.081306.505@news.csuohio.edu>
NNTP-Posting-Host: halcyon.com

In article <1994Mar9.081306.505@news.csuohio.edu>, Steve Ratliff 
    <stever@csuohio.edu> wrote:

>	Vi and more usually end up setting the line to 7E1.  You can
> check this by doing a stty -f /dev/com1.  The quick and dirty solution
> is to set your modem/terminal at 7E1.  The more involved solution is
> to modify /etc/gettytab using :np and to modify ttydefaults.h and
> possibly other files to make 8N1 the default.  Then recompile.

These solutions will probably work, but there's a simpler solution:
just put
    stty cs8 -parenb
in your .profile (or .login).  I've added it to our system-wide
/etc/csh.login and /etc/profile files, and nobody's having this problem
anymore.

Sandy Fifer