*BSD News Article 20360


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!xlink.net!fauern!imp.ch!chsun!bernina!torda
From: torda@igc.ethz.ch (Andrew Torda)
Subject: pccons.c swallows a null character [NetBSD 0.9]
Message-ID: <CCrrFz.8Hz@bernina.ethz.ch>
Keywords: pccons.c null character sputc sgetc
Sender: news@bernina.ethz.ch (USENET News System)
Nntp-Posting-Host: hermitage
Organization: Computational Chemistry, ETH, Zuerich
Date: Fri, 3 Sep 1993 08:26:22 GMT
Lines: 31

I want to be able to generate a null \000 character from my
keyboard, but NetBSD doesn't seem to want to let me.
Emacs, for example, really wants a null character.

In usr/src/sys/arch/i386/isa/pccons.c there is a table
called
     static Scan_def	scan_codes[] =
and this seems to have a line
	ASCII,	"2",		"@",		"\000", /* 3 2 */
which wants to insert a null for ctrl-2.

I also inserted a null character in the table for ctrl-space
(which I think is where god meant it to be), but, after
recompiling the kernel, that didn't help either.

My kernel is compiled without XSERVER defined.

Who is swallowing up my null characters ?
sgetc(), sputc() ?

This is with NetBSD 0.9 and with the following version of
pccons.c
 *	from: @(#)pccons.c	5.11 (Berkeley) 5/21/91
 *	pccons.c,v 1.28 1993/07/12 11:37:17 mycroft Exp

I would be grateful for any suggestions (but please don't
tell me to rebind set-mark-command in emacs).
Thanks
-Andrew
-- 
Andrew Torda, Computational Chemistry, ETH, Zurich, torda@igc.ethz.ch