# get_screen_char

Platform: | WINDOWS ONLY
Definition: | integer {ch,attr} = get_screen_char(integer line, integer column)
Description: | Return a 2-element sequence consisting of two integers, of the form {ascii-code, attributes} for the character on the screen at line, column. The first is the ASCII code for the character. The second is an integer that contains the foreground and background color of the character, and possibly other information describing the appearance of the character on the screen.
pwa/p2js: | Not supported
Comments: | With get_screen_char() and put_screen_char() you can save and restore a character on the screen along with its attributes.
Example: |
    -- read character and attributes at top left corner
    s = get_screen_char(1,1)
    -- store character and attributes at line 25, column 10
    put_screen_char(25, 10, {s})
Implementation: | See builtins\pscreen.e (an autoinclude) for details of the actual implementation.
See Also: | put_screen_char, save_text_image