From owner-freebsd-arm@freebsd.org Thu Mar 7 14:47:07 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 0425115316B9 for ; Thu, 7 Mar 2019 14:47:07 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound2m.ore.mailhop.org (outbound2m.ore.mailhop.org [54.149.155.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 43620891B2 for ; Thu, 7 Mar 2019 14:47:06 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1551970019; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=inHLLmF04Xs+mNwO6wIvRniACBrU0ZkSZ+zD5GzoAZFdP7naMoWCd0Kb78ckQb0OluFJO7ewDxaTj EkamhYFdGfZ839YTeDh0hTatCqXGUpAyuens6DM8caDg1IyTAf8xE/Mp9dlmrV5sMsjEl249gbzt3P 41ypfRmjho+0CAVOWtPnf6cewbJo1trdE39vfMGb1R4yp/JbRAEEiJwS8kq52bByySl4hSl1nFEjmc uqMwQTr8yLLE/eVXTrjdwdZ3HNTIq9CMyLlaZfdIKXgi+eP4PHPABQ/HwTb3024fNSmKa3cigsiNck WmPgdbbWSOk33Bqu85ZdnW5wgWkTNkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:dkim-signature:from; bh=tXLHCzFmeyEWJ+7scTjiR+D+3atihX/2s9JaDekGYD0=; b=fOSTqsX+PEqTFaeYvotg5ibQd9DqEco9b6bU2VQjkaSQnjG1ib4ZsscewO3WYCgprWC/V14YOhBgx V3JvgFQb56l7h6kGyE2GTPLNH5F5FLbtQBpTpsVaGIfRjIkplVjx4/vTd5ORQhkDfwhDsxSNf4/zxA TILz6aBJE4n78ZluQEYLtJCMF+WbdVHsp/OVza6ecAhouvdvpIyCOCogkG9fKqCl5Ftvb+sx6aU9ID K1w2fY9Z/QrC2E1kD2u81iyL94Wq9ELPzuB/96eEN9M6cYbyXQ0kRPrVnH91nv8MLnIhREwx4XrKNB meXDKa5AKRevFkdSYPEQOcHzCka5J+g== ARC-Authentication-Results: i=1; outbound4.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=tXLHCzFmeyEWJ+7scTjiR+D+3atihX/2s9JaDekGYD0=; b=Q0UALet5SwBz7OFuM6BMM0uE0rcJKYYN33sUIuMusHw3KMShqzjRykMBrz7NHAamMo4aprVPlRx7j ndb0rtKh3yJtWaIwNL1bX9brGKZCg9KwOJpOfyBF2cDNcaDsv+bKomHsGq+oit+5MR7QqirXdziXXp 4lqgtmHgZr9Bq9wh0L5JsJKJ83qtc6SRpKk9YDn8wWMy1TyR4gm2eVstHRvtgMySZKNVQypN9GChtL eGx2q0bAYaEm0E33wkPeqyGRhWFlCQCOS21o+CeEKtcgQoVcWs+C43sBI1MlqvkQOEojYg5lGtpTdb SEuYVHBc59JPu20UBzSY4qWmm6XmuEg== X-MHO-RoutePath: aGlwcGll X-MHO-User: dba229e4-40e7-11e9-befd-af03bedce89f X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound4.ore.mailhop.org (Halon) with ESMTPSA id dba229e4-40e7-11e9-befd-af03bedce89f; Thu, 07 Mar 2019 14:46:58 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id x27Ekvsm030732; Thu, 7 Mar 2019 07:46:57 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <580addeeb90cc317cc65f69bdc39c549a5852806.camel@freebsd.org> Subject: Re: Editing on the serial console From: Ian Lepore To: bob prohaska , freebsd-arm@freebsd.org Date: Thu, 07 Mar 2019 07:46:57 -0700 In-Reply-To: <20190307035427.GA42903@www.zefox.net> References: <20190307035427.GA42903@www.zefox.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 43620891B2 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.92 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.92)[-0.921,0]; ASN(0.00)[asn:16509, ipnet:54.148.0.0/15, country:US] 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: Thu, 07 Mar 2019 14:47:07 -0000 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. -- Ian