sendPtyReq method
Future<bool>
sendPtyReq(
{ - String terminalType = 'xterm-256color',
- int terminalWidth = 80,
- int terminalHeight = 25,
- int terminalPixelWidth = 0,
- int terminalPixelHeight = 0,
- 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;
}