Bug 19811

Summary: i4b isdntel leaving the tty in a strange state when aborting
Product: Base System Reporter: Nimrod Mesika <nimrodm>
Component: binAssignee: hm
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-STABLE   
Hardware: Any   
OS: Any   

Description Nimrod Mesika 2000-07-09 22:20:04 UTC
	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.

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.
How-To-Repeat: 	Run isdntel in a small (less than 80x25) xterm.
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2000-07-10 14:37:12 UTC
Responsible Changed
From-To: freebsd-bugs->hm

Over to the i4b maintainer.
Comment 2 hm freebsd_committer freebsd_triage 2000-07-19 09:32:34 UTC
State Changed
From-To: open->analyzed


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.
Comment 3 hm freebsd_committer freebsd_triage 2000-10-09 21:05:35 UTC
State Changed
From-To: analyzed->closed

This problem is solved with the recent commit of i4b 0.95 to -current