Hello computercrafters,
I have worked hard on a Function helper!
Everyone is allowed to use this program in all the programs.
Download: pastebin get VtcBYLB7
Problem: if i wil type a topic then sometimes wil it not write.
Example:
If i use space on my keyboard on the topic then sometimes it works.
And sometimes not. Thats on all the keys i press.
[First program of DubbelINC] Dubbel Functions Helper
Started by DubbelSoftware, Apr 24 2016 11:41 AM
3 replies to this topic
#1
Posted 24 April 2016 - 11:41 AM
#2
Posted 24 April 2016 - 06:30 PM
Maybe add some more details on what the code does and one/ a few examples.
#3
Posted 25 April 2016 - 08:46 AM
If i try to type in a topic, then sometimes i press a key, and then its not works. It dont let it see in the topic.
#4
Posted 25 April 2016 - 11:55 AM
From what I can see, his api allows for a clear function, that just is term.clear, a reboot function that is os.reboot, a shutdown function that is os.shutdown, a diskeject function that tries to eject in every face by doing each one individually, 16 different set background functions labeled bcolor, 16 different set text functions labeled tcolor. A shell function that all it does it put "CraftOS Shell" on the top line in yellow, a startup function that runs startup, a programs function that runs programs, and a dir function that runs dir.
Not to be too terribly mean, but these functions aren't helpful in any way.
Most of the time when people clear the screen, they also want to set the cursor, usually to 1,1.
Not to be too terribly mean, but these functions aren't helpful in any way.
function setBGround(clr)
if (colors[clr]) then --#If the color passed is a valid color in the colors table
term.setBackgroundColor(colors[clr]) --#Set the background to it
end
end
This is one function that easily sets the background color just by passing "black" "blue" or whatever to it. Most of the time when people clear the screen, they also want to set the cursor, usually to 1,1.
function clearCursor(x,y) x = type(x) == "number" and x or 1 --#If x is not a number, x = 1, if it is, then x stays the same y = type(y) == "number" and y or 1 term.clear() term.setCursorPos(x,y) end
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











