mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-10-28 22:49:59 +08:00
Flush StreamWriter for Shell shortcut operation
This commit is contained in:
@@ -262,7 +262,9 @@ namespace Renci.SshNet
|
||||
this.EnsureConnection();
|
||||
|
||||
var inputStream = new MemoryStream();
|
||||
new StreamWriter(inputStream, encoding).Write(input);
|
||||
var writer = new StreamWriter(inputStream, encoding);
|
||||
writer.Write(input);
|
||||
writer.Flush();
|
||||
inputStream.Seek(0, SeekOrigin.Begin);
|
||||
|
||||
return this.CreateShell(inputStream, output, extendedOutput, terminalName, columns, rows, width, height, terminalMode, bufferSize);
|
||||
|
||||
Reference in New Issue
Block a user