From owner-freebsd-hackers@freebsd.org Mon May 29 18:23:31 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 37217D7D1C7 for ; Mon, 29 May 2017 18:23:31 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 112FF84B8F for ; Mon, 29 May 2017 18:23:31 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 0D77ED7D1C6; Mon, 29 May 2017 18:23:31 +0000 (UTC) Delivered-To: hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0D0C2D7D1C5 for ; Mon, 29 May 2017 18:23:31 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mail-wm0-x22c.google.com (mail-wm0-x22c.google.com [IPv6:2a00:1450:400c:c09::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A32FA84B8E; Mon, 29 May 2017 18:23:30 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: by mail-wm0-x22c.google.com with SMTP id 7so64782508wmo.1; Mon, 29 May 2017 11:23:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3RyIMqaAXC37svXPdON64cN4U82qb39ZOuLJBvD510o=; b=AKBVhAB6MGvYUWnjFU7bZda3PiEbrXhjZeZTe1O+BuIZ1pJidaAwRWHg2k+KJZbeVk VkU6IlQ4BapLB3G12ScCGXTm87wISzt3zv/RjBB8nKiQJcqxzh96BnKc2yw6vlHDYzJx uHSGCsqEgkXif29KMYD46jzMppPWLsEf1pTBjS7hklMIi46XxD4RTt6SUlWEebk+HDyx pMeXYykuXzjr4IRYy6nyEDRfJ5dRrOkhcpbY+82UVyVFANaioRXkDiMuTsu7pVBzL+1O jKdoj4pn/OPBC0zBl4FZInZxuhpVdJ5Rq55ePCz9WL30v7JFIwtb6wt4awv/HpEmYzpN EhjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=3RyIMqaAXC37svXPdON64cN4U82qb39ZOuLJBvD510o=; b=qyVPp8W3ZO09FFl31BDgxYZ6sWalrSzTAUdrFFj88++H6yDdhI98VIaFNACyFJZOzg XJfycfnxAlQMUMZgk7C0gHnpnpOwh2Hke9l+thI7QyslB0Wzh8/oyhmZoitI6im0Ekbw D75ROVdJTZKN6+in9cHn9YcPcIcBbnrUk4JO1CQOjwQHSl1OJvAAdO0oNHGI+kaIrHVC CdCFhW7rmuX64/kLyjILzFuNH/RO0f7VW2n3U7rUy+piwprmvelZlthyb6trJkyf9+Pz EUV8OmbKcWJST3ZmusYO507xR91mqXnn2mMsPbZ9/oKMGGfBmM5Lvjw8VY6Ef33yOPxJ nyvg== X-Gm-Message-State: AODbwcCQ/ATuoNsz7nLw8yN/gFWzP3h9MCfkZABev3omsIrRdA9iK1sZ +OtET7nhtSzrpw== X-Received: by 10.223.170.195 with SMTP id i3mr13816110wrc.49.1496082209158; Mon, 29 May 2017 11:23:29 -0700 (PDT) Received: from brick (cpc92310-cmbg19-2-0-cust934.5-4.cable.virginm.net. [82.9.227.167]) by smtp.gmail.com with ESMTPSA id m17sm12318824wmi.6.2017.05.29.11.23.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 May 2017 11:23:28 -0700 (PDT) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Date: Mon, 29 May 2017 19:23:26 +0100 From: Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= To: "Rodney W. Grimes" Cc: Ian Lepore , Ed Schouten , hackers@freebsd.org Subject: Re: Serial line terminal size. Message-ID: <20170529182326.GB25108@brick> References: <1496067535.95269.1.camel@freebsd.org> <201705291810.v4TIATJx023275@pdx.rh.CN85.dnsmgr.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201705291810.v4TIATJx023275@pdx.rh.CN85.dnsmgr.net> User-Agent: Mutt/1.8.2 (2017-04-18) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 May 2017 18:23:31 -0000 On 0529T1110, Rodney W. Grimes wrote: > [ Charset ISO-8859-2 unsupported, converting... ] > > On Mon, 2017-05-29 at 13:22 +0200, Ed Schouten wrote: > > > Hi Edward, > > > > > > 2017-05-24 10:55 GMT+02:00 Edward Tomasz Napiera?a > > >: > > > > > > > > There's a problem with serial consoles - after logging in, the > > > > terminal > > > > size is not set, ie it looks like this (notice the "0 rows; 0 > > > > columns;"): > > > Wouldn't it make more sense for getty to set this up properly, as > > > opposed to putting it in all of the shell rc files? > > > > > > > I was thinking exactly the same thing a few days ago, but then I looked > > at the source code to getty and kinda backed away slowly and quietly, > > as one might do with any sleeping monster. > > Now that I can agree with. Getty has never been a friendly place. > > I also think this belongs in Getty despite Warners concern that you > can not turn it off, as Getty alread does Termios stuff, which > you control via /etc/ttys, so there is a place to make a knob should > it be implemented in getty. It's still something that the _user_ - as opposed to the system administrator - couldn't turn off. Not sure it's actually important, though. > This is a specific issue to hardwired terminals, which is what > getty was written for. > > It could also fixes the issues that I have pointed out in > https://reviews.freebsd.org/D10642 with col/row not being > reset between logins which yields the propose patch ineffective. If getty did reset the terminal size upon logoff, that would unbreak the mechanism. Now, why doesn't it do that? Isn't it expected to do so - to revert the terminal and serial port to some predefined initial state? If it does - why doesn't this include the terminal size?