#80991 - 2002-06-25 05:46 AM
Re: @CursorX, @CursorY, @ModeX, @ModeY, GetScr()
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
Hmmm. Lots of good thoughts on this. After lots of thinking, I'm still not sure whether I'd prefer an array returned for the color attributes or not.
GetScr($x,$y,$numchars) would be okay as is.
I suppose there are things to be said against the color mask being returned in HEX, but I actually would prefer it that way.
GetScrAttr($x,$y,$numchars)
Could return a string in HEX where every two hex numbers would represent foreground and background like:
White on black text - GetScrAttr(1,1,5) would return a string "0F0F0F0F0F" or something similar to that. Alternately it could return:
0,15,0,15,0,15,0,15,0,15
(this could be reversed if you assume the foreground comes first)
How do other programming languages do this?
Brian
{p.s. some programming would be simplified if the first character in a SUBSTR was numbered 0 instead of 1... although some other programming would be more difficult.. lol)
|
|
Top
|
|
|
|
@CursorX, @CursorY, @ModeX, @ModeY, GetScr()
|
BrianTX
|
2002-06-20 08:41 PM
|
Re: @CursorX, @CursorY, @ModeX, @ModeY, GetScr()
|
Radimus
|
2002-06-20 08:44 PM
|
Re: @CursorX, @CursorY, @ModeX, @ModeY, GetScr()
|
BrianTX
|
2002-06-21 05:23 PM
|
Re: @CursorX, @CursorY, @ModeX, @ModeY, GetScr()
|
Shawn
|
2002-06-21 05:32 PM
|
Re: @CursorX, @CursorY, @ModeX, @ModeY, GetScr()
|
BrianTX
|
2002-06-21 05:54 PM
|
Re: @CursorX, @CursorY, @ModeX, @ModeY, GetScr()
|
Shawn
|
2002-06-21 06:01 PM
|
Re: @CursorX, @CursorY, @ModeX, @ModeY, GetScr()
|
Shawn
|
2002-06-21 06:05 PM
|
Re: @CursorX, @CursorY, @ModeX, @ModeY, GetScr()
|
Richard H.
|
2002-06-24 10:00 AM
|
Re: @CursorX, @CursorY, @ModeX, @ModeY, GetScr()
|
BrianTX
|
2002-06-25 05:46 AM
|
Re: @CursorX, @CursorY, @ModeX, @ModeY, GetScr()
|
Richard H.
|
2002-06-25 10:05 AM
|
Re: @CursorX, @CursorY, @ModeX, @ModeY, GetScr()
|
BrianTX
|
2002-06-25 06:46 PM
|
|
Moderator: Lonkero, ShaneEP, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart
|
0 registered
and 764 anonymous users online.
|
|
|