sendPtyReq method

Future<bool> sendPtyReq({
  1. String terminalType = 'xterm-256color',
  2. int terminalWidth = 80,
  3. int terminalHeight = 25,
  4. int terminalPixelWidth = 0,
  5. int terminalPixelHeight = 0,
  6. Uint8List? terminalModes,
})

Implementation

Future<bool> sendPtyReq({
  String terminalType = 'xterm-256color',
  int terminalWidth = 80,
  int terminalHeight = 25,
  int terminalPixelWidth = 0,
  int terminalPixelHeight = 0,
  Uint8List? terminalModes,
}) async {
  sendMessage(
    SSH_Message_Channel_Request.pty(
      recipientChannel: remoteId,
      termType: terminalType,
      termWidth: terminalWidth,
      termHeight: terminalHeight,
      termPixelWidth: terminalPixelWidth,
      termPixelHeight: terminalPixelHeight,
      termModes: terminalModes ?? Uint8List(0),
      wantReply: true,
    ),
  );
  return await _requestReplyQueue.next;
}