Renci.SshNet.Channels.ChannelSession.SendPseudoTerminalRequest C# (CSharp) Method

SendPseudoTerminalRequest() public method

Sends the pseudo terminal request.
public SendPseudoTerminalRequest ( string environmentVariable, uint columns, uint rows, uint width, uint height, uint>.IDictionary terminalModeValues ) : bool
environmentVariable string The environment variable.
columns uint The columns.
rows uint The rows.
width uint The width.
height uint The height.
terminalModeValues uint>.IDictionary The terminal mode values.
return bool
        public bool SendPseudoTerminalRequest(string environmentVariable, uint columns, uint rows, uint width, uint height, IDictionary<TerminalModes, uint> terminalModeValues)
        {
            _channelRequestResponse.Reset();
            SendMessage(new ChannelRequestMessage(RemoteChannelNumber, new PseudoTerminalRequestInfo(environmentVariable, columns, rows, width, height, terminalModeValues)));
            WaitOnHandle(_channelRequestResponse);
            return _channelRequestSucces;
        }