Main Menu

rednetspy

Started by Lucasx150, Aug 28, 2020, 07:16 PM

Previous topic - Next topic

Lucasx150


rednetspy

Code: https://pastebin.com/s5wXb5fD
Install:
pastebin get s5wXb5fD rednetspy

QuickMuffin8782

#1
That utility is great to do to spy on other rednet messages. However you can as well change colors by doing this code below.
There is a possibility for custom colors on some emulators, but in game is supported.
You can also change it to writeColor(txt, color) and change the print(txt) to write(txt) if you want to have a write sys as well.

function printColor(txt, color)
    local oldColor = term.getTextColor()
    if term.isColor()
        term.setTextColor(color)
        print(txt)
        term.setTextColor(oldColor)
    end
end

Here is a example color function. I will later post a color utility api, when I get the chance.

printColor("Hello, World!", 0xFF7400) --Everyone didn't know this can be possible until I found out about it. (Except some coders)
With that way of doing colors by hex code (0xRRGGBB) you can also tinker around with it using a colorutils functions I can work on. This can be useful since CCEmuX supports it, IDK if other emulators can support it. But, since Mimic can only support straight up color given variables in the color api, it is not supported for the custom color hex code.
"The Blue Blur" - Working on Net Star OS, a new frontier for Red Star OS 3.0
linktr.ee/quickmuffin8782