51 posts
Location
Germany
Posted 08 September 2015 - 01:04 PM
I want to read the term table.
Example:
Term contains: picture + text.
Want to do: draw and remove things above it.
Way: Draw BG & Text –> Draw thing -| (loop)
|| |
/-\—————————————|
anyway to read the term?
This woud be nice for an implementation
Edited on 08 September 2015 - 11:05 AM
1140 posts
Location
Kaunas, Lithuania
Posted 08 September 2015 - 01:10 PM
You cannot "read" what was already written on the computer's screen. But you can redirect to a custom buffer or window object, in which you'd then be able to get what's written on the screen. But the use cases of where you actually would need to read the screen are very little, and you're probably thinking about a bad solution. If you'd tell us why you need to do that, then we may suggest an easier and better way of solving your problem.
51 posts
Location
Germany
Posted 08 September 2015 - 01:13 PM
You cannot "read" what was already written on the computer's screen. But you can redirect to a custom buffer or window object, in which you'd then be able to get what's written on the screen. But the use cases of where you actually would need to read the screen are very little, and you're probably thinking about a bad solution. If you'd tell us why you need to do that, then we may suggest an easier and better way of solving your problem.
If i overwrite term.write() function 1 time in 1 script,
will be that change effect other script too?
3057 posts
Location
United States of America
Posted 08 September 2015 - 01:15 PM
If i overwrite term.write() function 1 time in 1 script,
will be that change effect other script too?
Yes. Keep in mind you'd probably want to do this for all the term functions - setBackgroundColor, setTextColor, setCursorPos, clear, clearLine, etc.
1140 posts
Location
Kaunas, Lithuania
Posted 08 September 2015 - 01:16 PM
Don't overwrite any of the term functions, or you'll simply break the computer. Like I said, you could redirect (term.redirect) to a window or buffer object. To "read" the screen. I'm still interested to hear why you need this. I'm almost 100% certain that you're thinking about this the wrong way, and you'll only create more problems by doing it this way.