Posted 17 March 2013 - 06:53 PM
I searched but couldn't find anything except this http://www.computercraft.info/forums2/index.php?/topic/2090-14-mouse-api-and-text-highlighting/page__fromsearch__1 which is a suggestion made before mouse support was added. Plus there was no real conclusion whether this suggestion was accepted or not.
My suggestion is that there should be a new function added to the term API. This function would be: term.getMousePos() which will return x, y respective to where the mouse currently is. This will be useful for GUIs. One use that I can think of right now is to change the text/background colour of a button to show that it is clickable.
My suggestion is that there should be a new function added to the term API. This function would be: term.getMousePos() which will return x, y respective to where the mouse currently is. This will be useful for GUIs. One use that I can think of right now is to change the text/background colour of a button to show that it is clickable.