Now escapes outbound Telnet IAC
This commit is contained in:
parent
a08882b93e
commit
9e7f0ae4ed
|
@ -109,7 +109,8 @@ Var
|
||||||
Num : LongInt;
|
Num : LongInt;
|
||||||
NI : TNodeInfoRec;
|
NI : TNodeInfoRec;
|
||||||
Proc : TProcess;
|
Proc : TProcess;
|
||||||
Buffer : Array[1..BufferSize] of Char;
|
// Buffer : Array[1..BufferSize] of Char;
|
||||||
|
Buffer : TIOBuffer;
|
||||||
bRead : LongInt;
|
bRead : LongInt;
|
||||||
bWrite : LongInt;
|
bWrite : LongInt;
|
||||||
Begin
|
Begin
|
||||||
|
@ -137,7 +138,7 @@ Begin
|
||||||
If Proc.Output.NumBytesAvailable > 0 Then Begin
|
If Proc.Output.NumBytesAvailable > 0 Then Begin
|
||||||
While Proc.Output.NumBytesAvailable > 0 Do Begin
|
While Proc.Output.NumBytesAvailable > 0 Do Begin
|
||||||
bRead := Proc.Output.Read(Buffer, BufferSize);
|
bRead := Proc.Output.Read(Buffer, BufferSize);
|
||||||
Client.WriteBuf (Buffer, bRead);
|
Client.WriteBufEscaped (Buffer, bRead);
|
||||||
|
|
||||||
If Snooping Then
|
If Snooping Then
|
||||||
Term.ProcessBuf(Buffer[1], bRead);
|
Term.ProcessBuf(Buffer[1], bRead);
|
||||||
|
|
Loading…
Reference in New Issue