Subject: port-i386/399: pcvt should do meta-return correctly in META_ESC mode.
To: None <gnats-admin>
From: Bill Sommerfeld <sommerfeld@orchard.medford.ma.us>
List: netbsd-bugs
Date: 08/07/1994 14:35:07
>Number:         399
>Category:       port-i386
>Synopsis:       pcvt should support 8-bit-friendly meta key.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug  7 14:35:05 1994
>Originator:     Bill Sommerfeld
>Organization:
"	"
>Release:        1.0Beta
>Environment:
	
System: NetBSD orchard.medford.ma.us 1.0_BETA NetBSD 1.0_BETA (ORCHARD) #6: Sun Aug 7 13:54:11 EDT 1994 sommerfeld@orchard.medford.ma.us:/u1/nsys/sys/arch/i386/compile/ORCHARD i386


>Description:
	If you define PCVT_META_ESC when builting PCVT, Meta-Return
	sends 0x8d instead of ESC RET.

>How-To-Repeat:
>Fix:
	
*** /u1/nsup/src/sys/arch/i386/isa/pcvt/pcvt_kbd.c	Mon Mar 28 21:40:01 1994
--- pcvt_kbd.c	Tue May 17 17:43:48 1994
***************
*** 1027,1032 ****
--- 1027,1041 ----
  			{
  				more_chars = (u_char *)"\r\n"; /* CR LF */
  			}
+ 			if(meta_down)
+ 			{
+ #if PCVT_META_ESC
+ 				metachar[1] = *more_chars;
+ #else
+ 				metachar[0] = *more_chars | 0x80;
+ #endif
+ 				more_chars = metachar;
+ 			}
  			return(more_chars);
  			
  		case KBD_META:		/* these keys are	*/
>Audit-Trail:
>Unformatted:


------------------------------------------------------------------------------