Quantcast
Channel: sshnet Source Code Rss Feed
Viewing all articles
Browse latest Browse all 291

Source code checked in, #22345

$
0
0
Add ability to specify terminal modes for Shell terminal Example: using (var ssh = new SshClient(connectionInfo)) { ssh.Connect(); var output = Console.OpenStandardOutput(); var input = Console.OpenStandardInput(); var terminalModes = new Dictionary<TerminalModes, uint>(); terminalModes.Add(TerminalModes.ECHO, 0); terminalModes.Add(TerminalModes.VERASE, 0x7F); terminalModes.Add(TerminalModes.TTY_OP_ISPEED, 0x9600); terminalModes.Add(TerminalModes.TTY_OP_OSPEED, 0x9600); var shell = ssh.CreateShell(input, output, output, "xterm", 80, 24, 0, 0, terminalModes); shell.Stopped += delegate { Console.WriteLine("\nDisconnected..."); }; shell.Start(); Thread.Sleep(1000 * 100); shell.Stop(); }

Viewing all articles
Browse latest Browse all 291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>