#80987 - 2002-06-21 05:54 PM
Re: @CursorX, @CursorY, @ModeX, @ModeY, GetScr()
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
Hmm. that makes sense, Shawn. I'm not sure that adding the color doesn't dilute the function. I suppose it could return an array in the form:
$ok = GetScr(0,0,10)
$string = $ok[0] $stringforeground = $ok[1] $stringbackground = $ok[2]
; LEN($ok[0])=LEN($ok[1])=LEN($ok[2])
For $N = 1 to LEN($ok[0]) $character = SUBSTR($ok[0],$N,1) $foreground = SUBSTR($ok[1],$N,1) $foreground = VAL("&$foreground") $background = SUBSTR($ok[2],$N,1) $foreground = VAL("&$foreground") Next
Something like this... using HEX to identify the color... although I'm not sure... it might be nice to specify in the function that you actually want the color attributes:
$ok = GetScr($x,$y,$numchars,Optional $color)
$color would be set to 1 if you want to return the background and 2 if you want to return the foreground color.... just a thought.
Brian
|
|
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.
|
|
|