Posted 10 March 2012 - 04:31 AM
Hi, I'm trying to make a GUI for a 'sort of' operating system I'm working on but I need to be able to find what character is in a a specific place in the console. Say I have the coordinates 5, 4 and I need to find what letter/number/symbol is at that point.
function drawFullBorder()
for y = 0, sizeY do
for x = 0, sizeX do
term.setCursorPos(x, y)
if (x == 1 and y == 1) or (x == 1 and y == sizeY) or (x == sizeX - 1 and y == 1) or (x == sizeX - 1 and y == sizeY) then
write("*")
elseif x == 1 or x == sizeX - 1 then
write("|")
elseif (y == 1 or y == sizeY) and x < sizeX then
write("-")
else
write([b]**Here's where I need to find what it's going to replace if I draw here.**[/b])
end
end
end
term.setCursorPos(1, sizeY)
end