Character windows - functionsΒΆ
printscreen() |
Print the current screen to a text file |
SYNTAX
printscreen(filename)
Prints a snapshot of the current screen to the specified text file. If the file does not exist, it is created. If it does exist, the screen is appended to the existing file.
Graphics characters on the screen are replaced by spaces.
The function returns zero if successful, non-zero if any error occurs.
EXAMPLE
printscreen("screen.txt")
printscreen("$DUMPDIR/tmpfile")
printscreen(tempname("TK"))
RELATED TOPICS |