Exemplo n.º 1
0
 public void Resize(int width, int height)
 {
     if (!_parent.IsClosed)
     {
         TelnetOptionWriter wr = new TelnetOptionWriter();
         wr.WriteTerminalSize(width, height);
         wr.WriteTo(_socket);
     }
 }
Exemplo n.º 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;
 }
Exemplo n.º 3
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;
 }
 public void Resize(int width, int height)
 {
     if (!_parent.IsClosed) {
         TelnetOptionWriter wr = new TelnetOptionWriter();
         wr.WriteTerminalSize(width, height);
         wr.WriteTo(_socket);
     }
 }