NetBSD Problem Report #52359

From bjjl@hermes.lorenz.place  Sun Jul  2 11:14:34 2017
Return-Path: <bjjl@hermes.lorenz.place>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 247067A104
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  2 Jul 2017 11:14:34 +0000 (UTC)
Message-Id: <20170702084137.22EDE2523A@hermes.lorenz.place>
Date: Sun,  2 Jul 2017 10:41:36 +0200 (CEST)
From: ben@pocket.services
To: gnats-bugs@NetBSD.org
Subject: Command line editing broken in tmux
X-Send-Pr-Version: 3.95

>Number:         52359
>Category:       bin
>Synopsis:       Going back in history screws up terminal view in tmux
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bsiegert
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 02 11:15:00 +0000 2017
>Closed-Date:    Mon Apr 15 11:45:32 +0000 2019
>Last-Modified:  Mon Apr 15 11:45:32 +0000 2019
>Originator:     Benjamin Lorenz
>Release:        NetBSD 8.99.1
>Organization:

>Environment:


System: NetBSD hermes.lorenz.place 8.99.1 NetBSD 8.99.1 (RPI2) #1: Sat Jul 1 14:10:03 CEST 2017 bjjl@hermes.lorenz.place:/home/bjjl/obj/sys/arch/evbarm/compile/RPI2 evbarm
Architecture: earmv7hf
Machine: evbarm
>Description:
	When changing screen resolution, and then using the history function
	of the interactive shell, the view gets screwed up.
>How-To-Repeat:
	1. Start tmux. Enter one command, say, `uptime'.
	2. Enlarge or shrink the terminal window vertically
	   (change the number of lines the terminal window can display)
	3. Press `cursor-up' key to get back to the last command
	4. You will see the prompt being displayed twice; in my case
	   it looks like "hermes$ hermes$ uptime". 

	Especially for commands that span over two lines, this is highly
	confusing and annoying. Cross-checking with NetBSD 7.1, this
	problem does not exist yet.
>Fix:


>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: bin-bug-people->bsiegert
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Tue, 09 Apr 2019 12:38:39 +0000
Responsible-Changed-Why:
Is this issue still reproducible?
If so, please tell us which shell you are using interactively. sh? ksh?


State-Changed-From-To: open->feedback
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Tue, 09 Apr 2019 12:38:39 +0000
State-Changed-Why:


From: Patrick Welche <prlw1@cam.ac.uk>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: bin/52359 (Going back in history screws up terminal view in tmux)
Date: Thu, 11 Apr 2019 16:27:42 +0100

 On Tue, Apr 09, 2019 at 12:38:39PM +0000, bsiegert@NetBSD.org wrote:
 > Is this issue still reproducible?
 > If so, please tell us which shell you are using interactively. sh? ksh?

 I just reproduced it on yesterday's -current/amd64 (8.99.37) both in
 an xterm running on the machine, and sshing in. My shell is /bin/sh.

From: Valery Ushakov <uwe@stderr.spb.ru>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/52359: Command line editing broken in tmux
Date: Thu, 11 Apr 2019 20:00:21 +0300

 This is not specific to tmux.  You can see that with any window
 changing size, e.g. a local xterm or ssh'ing into a netbsd machine.

 -uwe

From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/52359 CVS commit: src/lib/libedit
Date: Fri, 12 Apr 2019 13:30:49 -0400

 Module Name:	src
 Committed By:	christos
 Date:		Fri Apr 12 17:30:49 UTC 2019

 Modified Files:
 	src/lib/libedit: terminal.c

 Log Message:
 PR/52359: Benjamin Lorenz: When resizing because of a signal save and restore
 the cursor position, since it does not change.


 To generate a diff of this commit:
 cvs rdiff -u -r1.35 -r1.36 src/lib/libedit/terminal.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: feedback->closed
State-Changed-By: prlw1@NetBSD.org
State-Changed-When: Mon, 15 Apr 2019 11:45:32 +0000
State-Changed-Why:
Fixed by christos - thanks!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.