◄QuickSCREEN► ◄Details► ◄Example► ◄Contents► ◄Index► ────────────────────────────────────────────────────────────────────────────── PEN - a device I/O function that reads the lightpen coordinates Syntax PEN(n) ■ n, a numeric expression that has an integer value between 0 and 9, indicates what type of information you want returned by the function: ────────────────────────────────────────────────────────────────────────────── 0 whether pen was down since last │ 4 last-known valid x-coordinate function call (-1 = yes, 0 = no) │ 5 last-known valid y-coordinate 1 x-coordinate of last pen press │ 6 character row of last pen press 2 y-coordinate of last pen press │ 7 character column of last pen press 3 current pen switch status │ 8 character row of last pen position (-1 = down, 0 = up) │ 9 character column of last position ────────────────────────────────────────────────────────────────────────────── See Also ◄PEN statement►