Print Screen SSH

0 votes
asked Dec 4, 2012 by ytheaudin (140 points)
edited Dec 4, 2012

HI you have an example to print the screen sshterminal?

Regards

1 Answer

0 votes
answered Dec 4, 2012 by Lukas Matyska (59,010 points)
edited Dec 4, 2012

You can use the Save method to print the terminal screen. There is various picture and text output formats (check the TerminalCaptureFormat enumeration).

An example:

SshTerminalControl terminal;
...
terminal.Save("filename.png", TerminalCaptureFormat.Png);
terminal.Save("filename.txt", TerminalCaptureFormat.Text);
...