From: bruce@ais.com (Bruce C. Wright)
Newsgroups: comp.os.vms
Subject: Re: How to obtain X button press info from character cell appli
Date: 26 Aug 92 23:20:04 GMT
Organization: Applied Information Systems, Chapel Hill, NC

In article <920825110913.24e00a47@FNAL.FNAL.GOV>, WARNER::DAMBIK@FNALF.FNAL.GOV (Ed Dambik) writes:
>  
> The mouse escape sequences were documented at some point in the VWS
> manuals. I believe it was found in the VT220 Terminal Emulator
> section in the User's Guide. The escape squences, however, seem to
> work the same for DECWindows and Motif. Some of these sequences are:
> 
> 	CSI 1;2'z	-- enables locator reports
> 	CSI 2;2'z	-- enables one-shot locator report
> 	CSI 0;0'z	-- disables locator reports
> 
> where CSI is equivalent to "<ESC>[". The return reports are in the
> following format:
> 
> 	CSI event_code ; button_code ; row ; column; page ; & w
> 
> where event_code, button_code, row, column and page are ASCII
> representations of integer values. The only difference I've noticed
> between VWS and DECWindows is that VWS will add leading zeros to the
> integer values to keep the number of digits fixed...
> 
> P.S. - These sequences will not work kfor VT300 series mice!

The VWS manual set.  Wonderful.  Nothing like an obvious, readily-
available manual set :-).  Isn't VWS just a tad, um, obsolete?

I've been trying to find out a number of odds and ends about various
DEC terminals and terminal emulators;  there are a number of things
that the various DECwindows/Motif/Pathworks/VWS emulators do that the
real terminals do not.  So far I've been unable to come up with any
definitive lists of supported reports and escape sequences for these
emulators (I have the documentation on essentially all of the DEC
terminals, including the VT100, VT125, VT220, VT320, VT330, VT340,
VT420, etc;  but finding documentation on the quirks of the various
emulators seems to be much harder).

For example, the response to the "What are you?" sequence (ESC [ c)
can have quite a number of flags set in the response (which is in
the format CSI ? Ps1 ; Ps2 ; ... c), including:

	1 = 132 columns
	2 = Printer port
	3 = ReGIS graphics
	4 = Sixel graphics
	5 = No advanced video option
	6 = Selective erase
	7 = Soft character set
	8 = User-defined keys
	9 = National replacement characters
	...
	61 = VT100 mode
	62 = VT200 mode
	63 = VT300 mode
	64 = VT400 mode

etc (There are quite a few more I know about).

But there are some sequences which are generated by some of the
emulators but which I have not been able to find in any of the
documentation, including (but not necessarily limited to, these
are just sequences I've observed at one time or another):

	10, 11, 14, 17, 20, and 22 through 29

I suspect that at least some of these are things like the above
(text-mode mouse support) and so forth.  But I'd like to find
some place that documents all of them.  (It would also be useful to
get the documentation on escape sequences like the mouse sequences
above that don't correspond to anything on real terminals).  I'd be
more than happy to order a manual, but I don't have a part number!
Anyone have any ideas, or better still, a part number for a manual
that gives a _comprehensive_ list of escape sequences?  Even if it
just has text mode, that would be more than sufficient (I don't need
ReGIS graphics commands), but none of the numerous manuals that I
have has any of the workstation escape codes.

Thanks for any ideas -

Bruce C. Wright