[comp.windows.x] Caps lock on a per-xterm basis?

thakur@zerkalo.harvard.EDU ("Manavendra K. Thakur") (04/19/91)

Hi there,

One of our users asked the following question:

	In SunView I could toggle Caps Lock just for the window
	I was in by hitting the F1 key.  All other windows
	were not affected.  Can I do this in X-windows?
	
Can anyone answer this question?  (We're using X11R4, patch level 18,
twm, sun3 and sun4, sunos 4.1.1.)

I looked through mit/clients/xterm/ctlseqs.ms and ctlseq2.txt but
didn't see anything that related to upper/lower case.  I also looked
through mit/clients/xterm/charproc.c and didn't see anything obvious,
nor was there any info in the xterm man page.

I looked in mit/server/ddx/sun/sunKbd.c, and while there were some
references to caps-lock and shifting to upper case, it wasn't clear
how this code could be used to selectively turn caps-lock on or off on
a per-xterm basis.

If anyone has any ideas on how to accomplish this, or any suggestions
on where else I should look for information, I'd be most grateful.

Manavendra K. Thakur			 Internet: thakur@zerkalo.harvard.edu
Systems Programmer, High Energy Division BITNET:   thakur@cfa.BITNET
Harvard-Smithsonian Center for		 DECNET:   CFA::thakur
Astrophysics				 UUCP:	   ...!uunet!mit-eddie!thakur