From str@giganda.komkon.org  Sat Jul  7 16:39:52 2001
Return-Path: <str@giganda.komkon.org>
Received: from giganda.komkon.org (giganda.komkon.org [209.125.17.66])
	by hub.freebsd.org (Postfix) with ESMTP id 6968337B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  7 Jul 2001 16:39:52 -0700 (PDT)
	(envelope-from str@giganda.komkon.org)
Received: (from str@localhost)
	by giganda.komkon.org (8.11.3/8.11.3) id f67NdpO16657;
	Sat, 7 Jul 2001 19:39:51 -0400 (EDT)
	(envelope-from str)
Message-Id: <200107072339.f67NdpO16657@giganda.komkon.org>
Date: Sat, 7 Jul 2001 19:39:51 -0400 (EDT)
From: str@giganda.komkon.org
Reply-To: str@giganda.komkon.org
To: FreeBSD-gnats-submit@freebsd.org
Cc: str@giganda.komkon.org
Subject: mail(1) with a pager (more) requires fg/Ctrl-Z/fg to restore after suspension with Ctrl-Z
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         28798
>Category:       bin
>Synopsis:       mail(1) with a pager (more) requires fg/Ctrl-Z/fg to restore after suspension with Ctrl-Z
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 07 16:40:03 PDT 2001
>Closed-Date:    Mon Feb 21 21:47:04 EST 2011
>Last-Modified:  Mon Feb 21 21:47:04 EST 2011
>Originator:     Igor Roshchin
>Release:        FreeBSD 4.3-RELEASE i386
>Organization:
Komkon
>Environment:
System: FreeBSD HOST 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Sat Apr 21 10:
54:49 GMT 2001     jkh@narf.osd.bsdi.com:/usr/src/sys/compile/GENERIC  i386



>Description:
This happens on a vanila 4.3-RELEASE system.
/usr/bin/mail is used to view
a message that is longer then one screen and the pager (more) is used
If you suspend mail (via Ctrl-Z) in the middle of the paged message,
when you bring it to the foreground (fg) - the screen does not
get  restored, and  the program does not accept any commands.
The only way to bring mail back, is to repeat Ctrl-Z and fg.
I haven't seen this behavior before (4.0 and prior).
Is this somehow related to the new "more"  ?

>How-To-Repeat:
Use mail(1) to read a message that is longer than the screen length,
so the pager is used. Suspend the programs with Ctrl-Z.
Try "fg" to restore it.


>Fix:
None available.
Workaround:
Ctrl-Z again and fg again restores the program.



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->mikeh
Responsible-Changed-By: mikeh
Responsible-Changed-When: Sat Jul 28 17:56:01 PDT 2001
Responsible-Changed-Why:
I'll look into this at some point.

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28798
State-Changed-From-To: open->feedback
State-Changed-By: linimon
State-Changed-When: Thu May 25 21:11:56 UTC 2006
State-Changed-Why:
To submitter: is this still a problem with modern versions of FreeBSD?


Responsible-Changed-From-To: mikeh->freebsd-bugs
Responsible-Changed-By: linimon
Responsible-Changed-When: Thu May 25 21:11:56 UTC 2006
Responsible-Changed-Why:
mikeh has returned his src commit bit to core for safekeeping.

http://www.freebsd.org/cgi/query-pr.cgi?pr=28798
State-Changed-From-To: feedback->open
State-Changed-By: linimon
State-Changed-When: Thu May 25 21:32:27 UTC 2006
State-Changed-Why:
Apparently still a problem.

http://www.freebsd.org/cgi/query-pr.cgi?pr=28798

From: Mikolaj Golub <to.my.trociny@gmail.com>
To: bug-followup@FreeBSD.org
Cc: str@giganda.komkon.org
Subject: bin/28798: mail(1) with a pager (more) requires fg/Ctrl-Z/fg to restore after suspension with Ctrl-Z
Date: Sun, 07 Dec 2008 11:02:48 +0200

 The problem is reproducible under fbsd6.2 and fbsd6.3 in xterm, but I can't
 reproduce it in console.

 Under fbsd7.0 fg/Ctrl-Z/fg works ok for me in xterm too.

 --
 Mikolaj Golub
State-Changed-From-To: open->closed 
State-Changed-By: eadler 
State-Changed-When: Mon Feb 21 21:45:01 EST 2011 
State-Changed-Why:  
I am unable to reproduce under 8.x and Mikolaj Golub is unable to reproduce on 7.x  If you could reproduce this on a supported branch then please let us know. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=28798 
>Unformatted:
