[Gambas-user] TermnalView CSI t talking back
bsteers4 at gmail.com
Sat Dec 19 19:15:18 CET 2020
Never mind , I've figured it out.
Needed to use \e not \033
resize command is handling it fine now so i guess i've cracked it.
Will add more reporting values.
have almost done 11-19 now in the aforementioned app.
On Sat, 19 Dec 2020 at 13:12, Bruce Steers <bsteers4 at gmail.com> wrote:
> Hi all
> I'm trying to further update the TerminalView_VT100 filter
> The reason is i have added the 1-10 sequences that do stuff but not the
> 11-19 that report stuff.
> I have found using the command "resize" to resize the window issues a CSI
> 18 command.
> 18 asks for the terminalview size in characters.
> documentation says this..
> *Ps* = 1 8 ⇒ Report the size of the text area in characters.
> Result is CSI 8 ; *height* ; *width* t
> So the filter does this..
> Case 18 Dim iDims As Integer = [hView.Height / hView.LineHeight, hView.Width / hView.CharWidth] hView.Input("\033[8;" & Str(iDims) & ";" & Str(iDims) & "t")
> But I'm dong something wrong.
> Using hView.Input() was the only way i could not have resize command timeout but actually respond but it responds with "unknown sequence"
> I've tried with a terminating \n
> If I could figure out how the resize command is expecting the CSI return with 18 i could add all the others.
> I've added the changes to a terminal app here if anyone wants to test it. just run it and type "resize -s 20 100"
> Line 700 is the filter reply code.
> Any advice appreciated
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User