def displayMousePosition(xOffset=<NUM_LIT:0>, yOffset=<NUM_LIT:0>):
print('<STR_LIT>')<EOL>if xOffset != <NUM_LIT:0> or yOffset != <NUM_LIT:0>:<EOL><INDENT>print('<STR_LIT>' % (xOffset, yOffset))<EOL><DEDENT>resolution = size()<EOL>try:<EOL><INDENT>while True:<EOL><INDENT>x, y = position()<EOL>positionStr = '<STR_LIT>' + str(x - xOffset).rjust(<NUM_LIT:4>) + '<STR_LIT>' + str(y - yOffset).rjust(<NUM_LIT:4>)<EOL>if (x - xOffset) < <NUM_LIT:0> or (y - yOffset) < <NUM_LIT:0> or (x - xOffset) >= resolution[<NUM_LIT:0>] or (y - yOffset) >= resolution[<NUM_LIT:1>]:<EOL><INDENT>pixelColor = ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>pixelColor = pyscreeze.screenshot().getpixel((x, y))<EOL><DEDENT>positionStr += '<STR_LIT>' + str(pixelColor[<NUM_LIT:0>]).rjust(<NUM_LIT:3>)<EOL>positionStr += '<STR_LIT:U+002CU+0020>' + str(pixelColor[<NUM_LIT:1>]).rjust(<NUM_LIT:3>)<EOL>positionStr += '<STR_LIT:U+002CU+0020>' + str(pixelColor[<NUM_LIT:2>]).rjust(<NUM_LIT:3>) + '<STR_LIT:)>'<EOL>sys.stdout.write(positionStr)<EOL>sys.stdout.write('<STR_LIT>' * len(positionStr))<EOL>sys.stdout.flush()<EOL><DEDENT><DEDENT>except KeyboardInterrupt:<EOL><INDENT>sys.stdout.write('<STR_LIT:\n>')<EOL>sys.stdout.flush()<EOL><DEDENT>
This function is meant to be run from the command line. It will
    automatically display the location and RGB of the mouse cursor.