My apologies, I wasn't clear about which term.setCursorPos() call to put it ahead of, however KingofGamesYami pointed out the correct place to put the background color change. You might also want to place the cursor blink command after the drawImage call - see if that fixes that problem as well. Like so…
-- Created By: GsL Inc. Version: 1.1.3
-- Coded By: Majere Date: [08/08/16]
-- ============================================
-- Variabels
-- Functions
local function Cl()
term.clear()
term.setCursorPos(1, 1)
end
-- Menue
Cl()
local image = paintutils.loadImage("GUIL")
paintutils.drawImage(image, 1, 1)
term.setBackgroundColor(colors.gray)
term.setCursorBlink(false)
term.setCursorPos(17, 7)
Also note i want the background to stay the same
If by background you mean the image, then that's what changing the terminal background color will do. It'll ensure when you put text on the screen that the 'image' is 'preserved' by writing over it with the same background color.
is there a way when i load the image i can then prevent the image from being edited but still allow text to be overlayed onto it?
Other than changing to the proper background color for each area of the image, there is no other way to prevent the image onscreen from being changed. Be aware with your input boxes that the standard read() provided in CC won't allow you to limit the number of characters entered; so people will be able to type further than the input box, which will mess up your image. You'll need to write your own read function or use someone else's custom function to prevent that from happening.