From nimrodm@bezeqint.net  Sun Jul  9 14:11:57 2000
Return-Path: <nimrodm@bezeqint.net>
Received: from mail.bezeqint.net (mail-a.bezeqint.net [192.115.106.23])
	by hub.freebsd.org (Postfix) with ESMTP id 8AAAA37C0E5
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  9 Jul 2000 14:11:56 -0700 (PDT)
	(envelope-from nimrodm@bezeqint.net)
Received: from bsd.net.il ([212.179.170.16])
 by mail.bezeqint.net (Sun Internet Mail Server sims.3.5.2000.03.23.18.03.p10)
 with ESMTP id <0FXG002L4862BJ@mail.bezeqint.net> for
 FreeBSD-gnats-submit@freebsd.org; Mon, 10 Jul 2000 00:10:51 +0300 (IDT)
Received: (from nimrodm@localhost) by localhost.my.domain (8.9.3/8.9.3)
 id AAA08168; Fri, 23 Jun 2000 00:22:28 +0300 (IDT envelope-from nimrodm)
Message-Id: <200006222122.AAA08168@localhost.my.domain>
Date: Fri, 23 Jun 2000 00:22:28 +0300 (IDT)
From: Nimrod Mesika <nimrodm@bezeqint.net>
Reply-To: nimrodm@bezeqint.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: i4b isdntel leaving the tty in a strange state when aborting
X-Send-Pr-Version: 3.2

>Number:         19811
>Category:       bin
>Synopsis:       i4b isdntel leaving the tty in a strange state when aborting
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    hm
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 09 14:20:04 PDT 2000
>Closed-Date:    Mon Oct 9 13:05:35 PDT 2000
>Last-Modified:  Mon Oct 09 13:06:11 PDT 2000
>Originator:     Nimrod Mesika
>Release:        FreeBSD 4.0-STABLE i386
>Organization:
none
>Environment:

	i4b acting as an answering machine. isdntel being executed
	inside a small xterm.

>Description:

	If the terminal is too small isdntel aborts with a fatal error.
	Before aborting isdntel calls curses' initscr() which changes
	the state of the tty. endwin() should be called to restore
	terminal settings and is not in this particular scenario.
	The user has to 'reset' the terminal to work normally again.

>How-To-Repeat:
	Run isdntel in a small (less than 80x25) xterm.
	

>Fix:
	/usr/src/usr.sbin/i4b/isdntel/main.c from, lines 311-312:
	endwin();
	}
	should be switched:
	}
	endwin();
	i.e., call endwin() in all cases.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->hm 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Mon Jul 10 06:37:12 PDT 2000 
Responsible-Changed-Why:  
Over to the i4b maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19811 
State-Changed-From-To: open->analyzed 
State-Changed-By: hm 
State-Changed-When: Wed Jul 19 01:32:34 PDT 2000 
State-Changed-Why:  

the problem is fixed in the i4b development tree which 
will be committed to -current asap. 
however, the right fix is to set curses_ready to true as soon as 
initscr() has been called. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19811 
State-Changed-From-To: analyzed->closed 
State-Changed-By: hm 
State-Changed-When: Mon Oct 9 13:05:35 PDT 2000 
State-Changed-Why:  
This problem is solved with the recent commit of i4b 0.95 to -current 

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