![]() Other functions that affect the cursor Ĭalling cls() effectively also calls cursor(0, 0).Ĭalling print(str), without explicit coordinate arguments, will adjust the cursor's Y value when required for newlines and scrolling.Ĭalling print(str, x, y), with explicit coordinate arguments, effectively also calls cursor(x, y) after the entire string is printed. See print() for a more detailed explanation of the text cursor's behavior. The coordinates passed in set the starting location of the next print() call as well as setting the left margin for all subsequent calls. PICO-8 uses this to maintain a scrolling display, especially for the command prompt. It doesn't have to be a vertical line it can also be an underscore or a solid rectangle. The draw state maintains a cursor location (and a pen color) for printing text with the print() function. According to Wikipedia, it has several names: caret text cursor text insertion cursor text selection cursor blinking text cursor Its purpose is to show the user where text will be placed when entered. ![]() ![]() Return-value An x,y,c tuple representing the previous cursor position and color. The default is 0.Ĭol (Optional) The palette index to set the pen color to. Y The y coordinate of the upper left corner of the line. The black flashing line is called the cursor. Position the cursor in the text that is wrapping in the wrong place and from. When you are typing on the computer, you get a (a black flashing line that shows you where you are typing). x The x coordinate of the upper left corner of the line. This happens if you accidentally change the paragraph indentation for the document. Cursor( ) Sets the left-margin cursor position for print().
0 Comments
Leave a Reply. |