Posted 09 May 2014 - 02:08 AM
Hi everyone, first I want to apologize for any mistake made with my English because I'm French.
So want I want to do is a to do list on my computer which can be displayed on a monitor above it. Here is my code:
When I type something in, it works well but when i type another thing it clear the screen and write the new sentence like if it was the old sentence but invisible. Example:
The second thing is that the program doesn't make auto line breaks (my monitor is 3X6)
So can you at least help me with this, even better would be to add a button next to the computer (left) that can clear the screen so that we can enter multiple times something in the computer and that will not erase the previous sentence.
Thanks you, Desslink
So want I want to do is a to do list on my computer which can be displayed on a monitor above it. Here is my code:
while true do
term.clear()
term.setCursorPos(1, 1)
print("Type your sentence")
input = read()
paripheral.call("top", "clear")
sleep(1)
peripheral.call("top", "write", input)
end
end
When I type something in, it works well but when i type another thing it clear the screen and write the new sentence like if it was the old sentence but invisible. Example:
1st: just a test
2nd: another one
The second thing is that the program doesn't make auto line breaks (my monitor is 3X6)
So can you at least help me with this, even better would be to add a button next to the computer (left) that can clear the screen so that we can enter multiple times something in the computer and that will not erase the previous sentence.
Thanks you, Desslink
Edited on 09 May 2014 - 12:09 AM