예제 #1
0
 public void Resize(int width, int height)
 {
     if (!_parent.IsClosed)
     {
         TelnetOptionWriter wr = new TelnetOptionWriter();
         wr.WriteTerminalSize(width, height);
         wr.WriteTo(_socket);
     }
 }
예제 #2
0
 public TelnetNegotiator(string terminal_type, int width, int height)
 {
     Debug.Assert(terminal_type != null);
     _terminalType      = terminal_type;
     _width             = width;
     _height            = height;
     _warnings          = new List <string>();
     _state             = TelnetCode.NA;
     _sequenceBuffer    = new MemoryStream();
     _optionWriter      = new TelnetOptionWriter();
     _defaultOptionSent = false;
 }