same problem, reported 5 Sep 2024

Brian Inglis Brian.Inglis@SystematicSW.ab.ca
Mon Nov 11 17:28:30 GMT 2024


On 2024-11-11 09:26, Lester Ingber via Cygwin wrote:
> Hi.  I still would appreciate some help with Mintty.
> 
> I recall there is a command for getting the info for a Mintty window, e.g.,
> title, coordinates, etc.  What is that command?

There are many control sequences which may be used, but you have to be aware of 
the orders of the arguments, the punctuation in the sequences and responses, and 
the units implied in the responses:

	https://invisible-island.net/xterm/ctlseqs/ctlseqs.html

I have a 250 line shell script which shows the following (sequences and 
responses [cat -A] are in the 3rd and 4th columns [unwrapped]):

$ xterm-info
type features	VT420wpSeNThcrl	^[[c	^[[?64;1;2;4;6;9;11;15;21;22;28;29c$
type version	mintty v3.7.6-0	^[[>c		^[[>77;30706;0c$
window position	3 px 210+120	^[[13t		^[[3;210;120t$
window size	4 px 875x881	^[[14;2t	^[[4;881;875t$
text position	3 px 219+152	^[[13;2t	^[[3;219;152t$
text size	4 px 840x840	^[[14t		^[[4;840;840t$
text chars	8 ch 120x60	^[[18t		^[[8;60;120t$
char size	6 px 7x14	^[[16t		^[[6;14;7t$
screen chars	9 ch 274x77	^[[19t		^[[9;77;274t$
screen size	5 px 1920x1080	^[[15t		^[[5;1080;1920t$
window status	1 open	 	^[[11t		^[[1t$

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
                                 -- Antoine de Saint-Exupéry



More information about the Cygwin mailing list