Posted 23 August 2015 - 04:26 PM
Hey yall CC people out there, it's been quite a while since i last played with CC. So decided to boot it up on my private server running a private modpack
Which includes the newest version of CC
So i loaded my old homemade OS. Had to change a few lines of code:
Now my problem is, when i try write text to the monitor with and above monitor h-7 it simply doesn't print the text. Which seems a bit weird, because it's not even in the buttom of the block that has the monitor in it. But it's the middle of the block. So any of the text i have in my OS does not show up if it's written above line h-7 (7 lines above bottom).
I tested this out by doing a blank file with just
Edit: Also tried setting the curser from top, same problem:
but
Which includes the newest version of CC
So i loaded my old homemade OS. Had to change a few lines of code:
function drawDesktop()
mon.setBackgroundColor(backgroundC)
mon.clear()
background = paintutils.loadImage("/disk/background")
-- term.redirect(mon)
-- paintutils.drawImage(background,-4,1)
-- term.restore()
menuBar()
end
As you can see i had to comment out term redirect, since this apparently doens't work anymore.Now my problem is, when i try write text to the monitor with and above monitor h-7 it simply doesn't print the text. Which seems a bit weird, because it's not even in the buttom of the block that has the monitor in it. But it's the middle of the block. So any of the text i have in my OS does not show up if it's written above line h-7 (7 lines above bottom).
I tested this out by doing a blank file with just
mon = peripheral..wrap("top")
mon.setTextColor(32768)
mon.setBackgroundColor(1)
mon.setCursorPos(1,h-1)
mon.write(">Programs")
mon.setCursorPos(1,h-2)
mon.write(" ")
mon.setCursorPos(1,h-3)
mon.write(" ")
mon.setCursorPos(1,h-4)
mon.write(" ")
mon.setCursorPos(1,h-5)
mon.write(" ")
mon.setCursorPos(1,h-6)
mon.write("Restart ")
mon.setCursorPos(1,h-7)
mon.write("Shutdown ")
It writes everything up to shutdown, i even tried adding h-8 h-9 etc. same problem.Edit: Also tried setting the curser from top, same problem:
mon.setCursorPos(1,13)
This works finebut
mon.setCursorPos(1,12)
This doesn't work.Edited on 23 August 2015 - 02:51 PM