CTRL(x)

Joseph S. D. Yao jsdy at hadron.UUCP
Mon Nov 24 07:59:32 AEST 1986


In article <170 at haddock.UUCP> karl at haddock.UUCP (Karl Heuer) writes:
>In article <614 at hadron.UUCP> jsdy at hadron.UUCP (Joseph S. D. Yao) writes:
>>The XOR, (x^0100), will not generally work.  Use (x&037).
>True if you want the domain of the function to include lowercase.  I never
>do; e.g. I claim that the proper name for EOT is "^D" rather than "^d".

Your privilege.  My definition of control char, umpteen years ago,
just said that no bits not in the lower five were clear.  Said
nothing about "proper" names for them (othere than NUL, EOT, etc.).
Most people make a control-d without hitting the shift key.

Further, Control-ESC is ESC, not '['; and Control-TAB is TAB, not
'I'.  Yes, people are unlikely to do this in C code.  But that's
part of the reason I reacted as I did.

>allowing the use of CTRL('?') for DEL, which is a widely (though by no means
>universally) accepted notation.

My surprise.  I'd thought that Berkeley introduced this notation.
At any rate I'd never heard or seen it before 2BSD.  (My experience
before that had covered a variety of hardware, software, and
documentation.)  If anyone has a VERIFIABLE pre-BSD reference for
use of ^?, I'd appreciate your MAILing to me.  Summary will be
posted.  (I can't remember any non-BSD-derived version of the Unix(R)
operating systems that use this, just to stick my neck out further.)
This cute (x^0100) trick is the first reason I'd ever seen for '^?'
to mean DEL; so I have learned something new today.  (I guess I'd
assumed that with someone's screwy keyboard you could generate DEL
as a Control-?.)
-- 

	Joe Yao		hadron!jsdy at seismo.{CSS.GOV,ARPA,UUCP}
			jsdy at hadron.COM (not yet domainised)



More information about the Comp.lang.c mailing list