[Coco] Get the current window width

Bill Nobel b_nobel at hotmail.com
Thu Feb 22 21:08:35 EST 2018


Ah,ok here:

TYPE r=cc,a,b,dp:BYTE;x,y,u:INTEGER
DIM regs:r
DIM sizeX,sizeY:INTEGER

regs.a=0       <-std input
regs.b=$26   <-SS.ScSiz
run syscall($8d,regs)   <- I$GetStt

sizeX=regs.x
sizeY=regs.y

That should do it

Bill Nobel
b_nobel at hotmail.com<mailto:b_nobel at hotmail.com>



On Feb 22, 2018, at 8:03 PM, Bill Nobel <b_nobel at hotmail.com<mailto:b_nobel at hotmail.com>> wrote:

Are you using Syscall?  if so setup up the regs as A=path, B=$26 and callcode $8d.

Bill Nobel
b_nobel at hotmail.com<mailto:b_nobel at hotmail.com><mailto:b_nobel at hotmail.com>



On Feb 22, 2018, at 7:56 PM, phil pt <ptaylor2446 at gmail.com<mailto:ptaylor2446 at gmail.com><mailto:ptaylor2446 at gmail.com>> wrote:

I am doing in basic09

On Thu, Feb 22, 2018 at 8:55 PM, Bill Nobel <b_nobel at hotmail.com<mailto:b_nobel at hotmail.com><mailto:b_nobel at hotmail.com>> wrote:

Specifically:

lda <Path
ldb #SS.ScSiz
os9 I$GetStt


Bill Nobel
b_nobel at hotmail.com<mailto:b_nobel at hotmail.com><mailto:b_nobel at hotmail.com><mailto:b_nobel at hotmail.com>



On Feb 22, 2018, at 7:49 PM, phil pt <ptaylor2446 at gmail.com<mailto:ptaylor2446 at gmail.com><mailto:ptaylor2446 at gmail.com><mailto:
ptaylor2446 at gmail.com<mailto:ptaylor2446 at gmail.com><mailto:ptaylor2446 at gmail.com>>> wrote:

I know there is getstat and does anyone know or can give me a example of
how to do a call routine to find out what width the current window is
using?

Thanks

--
Coco mailing list
Coco at maltedmedia.com<mailto:Coco at maltedmedia.com><mailto:Coco at maltedmedia.com><mailto:Coco at maltedmedia.com>
https://pairlist5.pair.net/mailman/listinfo/coco


--
Coco mailing list
Coco at maltedmedia.com
https://pairlist5.pair.net/mailman/listinfo/coco


--
Coco mailing list
Coco at maltedmedia.com<mailto:Coco at maltedmedia.com>
https://pairlist5.pair.net/mailman/listinfo/coco


--
Coco mailing list
Coco at maltedmedia.com
https://pairlist5.pair.net/mailman/listinfo/coco



More information about the Coco mailing list