Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!spool.mu.edu!bloom-beacon.mit.edu!ai-lab!life.ai.mit.edu!mycroft From: mycroft@trinity.gnu.ai.mit.edu (Charles Hannum) Newsgroups: comp.os.386bsd.questions Subject: Re: pccons.c swallows a null character [NetBSD 0.9] Date: 06 Sep 1993 05:58:13 GMT Organization: MIT Artificial Intelligence Lab Lines: 42 Message-ID: <MYCROFT.93Sep6015813@trinity.gnu.ai.mit.edu> References: <CCrrFz.8Hz@bernina.ethz.ch> NNTP-Posting-Host: trinity.gnu.ai.mit.edu In-reply-to: torda@igc.ethz.ch's message of Fri, 3 Sep 1993 08:26:22 GMT In article <CCrrFz.8Hz@bernina.ethz.ch> torda@igc.ethz.ch (Andrew Torda) writes: I want to be able to generate a null \000 character from my keyboard, but NetBSD doesn't seem to want to let me. This change will be in the next release: =================================================================== RCS file: /b/source/CVS/src/sys/arch/i386/isa/pccons.c,v retrieving revision 1.30 retrieving revision 1.31 diff -c -r1.30 -r1.31 *** 1.30 1993/09/05 17:56:58 --- 1.31 1993/09/06 05:52:33 *************** *** 382,394 **** if (!openf) return; ! #ifdef XSERVER /* 15 Aug 92*/ ! /* send at least one character, because cntl-space is a null */ ! (*linesw[tp->t_line].l_rint)(*cp++ & 0xff, tp); ! #endif /* XSERVER */ ! ! while (*cp) (*linesw[tp->t_line].l_rint)(*cp++ & 0xff, tp); } #ifdef XSERVER /* 15 Aug 92*/ --- 382,390 ---- if (!openf) return; ! do { (*linesw[tp->t_line].l_rint)(*cp++ & 0xff, tp); + } while (*cp); } #ifdef XSERVER /* 15 Aug 92*/