From owner-freebsd-arm@freebsd.org Mon Mar 11 04:49:48 2019 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B893B152F293 for ; Mon, 11 Mar 2019 04:49:48 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [195.149.99.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "raven.bwct.de", Issuer "raven.bwct.de" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2DC138164D; Mon, 11 Mar 2019 04:49:46 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.15.2/8.15.2) with ESMTPS id x2B4ngZW099017 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 11 Mar 2019 05:49:43 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cicely.de; s=default; t=1552279784; bh=QlGKOkIX3V8l2v3laKSuh+Go+OZq8UFH5vBk7TgiWGE=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To; b=mACnLzqIvWdDl8d8aTizvxjwLlm6Td5R/BXtEo6XNovQPSXuxbiU5A3ZqlmrUg75W ffZwdFqrISnZDbdELFxThRe7waYr1gWQFDtf+4oYcE6ykr1OuXPy4bolbmkPgI64pt s9xsYWp2/IKkZtfA51bNxJdUTPqfH5BhOonTDAwU= Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id x2B4nc7P016461 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 11 Mar 2019 05:49:38 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.15.2/8.15.2) with ESMTP id x2B4ncXR054066; Mon, 11 Mar 2019 05:49:38 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.15.2/8.15.2/Submit) id x2B4ncNl054065; Mon, 11 Mar 2019 05:49:38 +0100 (CET) (envelope-from ticso) Date: Mon, 11 Mar 2019 05:49:38 +0100 From: Bernd Walter To: Ian Lepore Cc: bob prohaska , freebsd-arm@freebsd.org Subject: Re: Editing on the serial console Message-ID: <20190311044937.GB51206@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <20190307035427.GA42903@www.zefox.net> <580addeeb90cc317cc65f69bdc39c549a5852806.camel@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <580addeeb90cc317cc65f69bdc39c549a5852806.camel@freebsd.org> X-Operating-System: FreeBSD cicely7.cicely.de 12.0-STABLE amd64 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=4.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de X-Rspamd-Queue-Id: 2DC138164D X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cicely.de header.s=default header.b=mACnLzqI X-Spamd-Result: default: False [-0.99 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[ticso@cicely.de]; R_DKIM_ALLOW(-0.20)[cicely.de:s=default]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-0.98)[-0.981,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[cicely.de]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cicely.de:+]; MX_GOOD(-0.01)[mx1.bwct.de]; RCVD_IN_DNSWL_NONE(0.00)[3.99.149.195.list.dnswl.org : 127.0.20.0]; NEURAL_HAM_SHORT(-0.15)[-0.145,0]; NEURAL_HAM_MEDIUM(-0.05)[-0.055,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:21461, ipnet:195.149.99.0/24, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.00)[country: DE(-0.01)] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Mar 2019 04:49:49 -0000 On Thu, Mar 07, 2019 at 07:46:57AM -0700, Ian Lepore wrote: > On Wed, 2019-03-06 at 19:54 -0800, bob prohaska wrote: > > Editing files in single-user mode on the serial console > > is non-trivial. Both vi and ee have problems displaying > > the file, ed doesn't really try so it works but isn't > > much fun. Is there a better option? When the machine > > boots single-user it reports "can't read /etc/termcap", > > is something misconfigured? > > > > I'm dealing with Raspberry Pi, but am not sure if that's > > the source of the difficulty. > > > > Thanks for reading, > > > > bob prohaska > > > > > > A lot of things work together (or fail to) to cause trouble for apps > that do full-screen terminal stuff. A big part of it is what you're > using as a terminal program. Using cu(1) from an xterm window works > well if you set TERM=xterm in the env (of course you need a termcap > file as you noted). > > Another thing that causes problems is when your terminal window size > isn't known to vi or whatever app is running. You can fix that by > manually doing 'stty rows NN cols NN' to set the right values. I usually don't waste time to setup all that stuff and just use ed(1). It only makes sense to do so if you have to spend more time on the serial console. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.