Package org.apache.sshd.common.channel
Interface PtyChannelConfigurationMutator
- All Superinterfaces:
PtyChannelConfigurationHolder
- All Known Implementing Classes:
ChannelExec
,ChannelShell
,PtyCapableChannelSession
,PtyChannelConfiguration
-
Field Summary
Fields inherited from interface org.apache.sshd.common.channel.PtyChannelConfigurationHolder
DEFAULT_COLUMNS_COUNT, DEFAULT_HEIGHT, DEFAULT_PTY_MODES, DEFAULT_ROWS_COUNT, DEFAULT_WIDTH, DUMMY_PTY_TYPE, WINDOWS_PTY_TYPE
-
Method Summary
Modifier and TypeMethodDescriptionstatic <M extends PtyChannelConfigurationMutator>
McopyConfiguration
(PtyChannelConfigurationHolder src, M dst) void
setPtyColumns
(int ptyColumns) void
setPtyHeight
(int ptyHeight) void
setPtyLines
(int ptyLines) void
setPtyModes
(Map<PtyMode, Integer> ptyModes) void
setPtyType
(String ptyType) void
setPtyWidth
(int ptyWidth) static <M extends PtyChannelConfigurationMutator>
MsetupSensitiveDefaultPtyConfiguration
(M mutator) Uses O/S detection to initialize some default PTY related valuesMethods inherited from interface org.apache.sshd.common.channel.PtyChannelConfigurationHolder
getPtyColumns, getPtyHeight, getPtyLines, getPtyModes, getPtyType, getPtyWidth
-
Method Details
-
setPtyType
-
setPtyColumns
void setPtyColumns(int ptyColumns) -
setPtyLines
void setPtyLines(int ptyLines) -
setPtyWidth
void setPtyWidth(int ptyWidth) -
setPtyHeight
void setPtyHeight(int ptyHeight) -
setPtyModes
-
copyConfiguration
static <M extends PtyChannelConfigurationMutator> M copyConfiguration(PtyChannelConfigurationHolder src, M dst) -
setupSensitiveDefaultPtyConfiguration
static <M extends PtyChannelConfigurationMutator> M setupSensitiveDefaultPtyConfiguration(M mutator) throws IOException, InterruptedException Uses O/S detection to initialize some default PTY related values- Type Parameters:
M
- GenericPtyChannelConfigurationMutator
instance- Parameters:
mutator
- The mutator to update - ignored ifnull
- Returns:
- The updated mutator
- Throws:
IOException
- If failed to access some O/S related configurationInterruptedException
- If interrupted during access of O/S related configuration
-