Package org.apache.sshd.common.channel
Interface PtyChannelConfigurationMutator
-
- All Superinterfaces:
PtyChannelConfigurationHolder
- All Known Implementing Classes:
ChannelExec
,ChannelShell
,PtyCapableChannelSession
,PtyChannelConfiguration
public interface PtyChannelConfigurationMutator extends PtyChannelConfigurationHolder
-
-
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
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <M extends PtyChannelConfigurationMutator>
McopyConfiguration(PtyChannelConfigurationHolder src, M dst)
void
setPtyColumns(int ptyColumns)
void
setPtyHeight(int ptyHeight)
void
setPtyLines(int ptyLines)
void
setPtyModes(java.util.Map<PtyMode,java.lang.Integer> ptyModes)
void
setPtyType(java.lang.String ptyType)
void
setPtyWidth(int ptyWidth)
static <M extends PtyChannelConfigurationMutator>
MsetupSensitiveDefaultPtyConfiguration(M mutator)
Uses O/S detection to initialize some default PTY related values-
Methods inherited from interface org.apache.sshd.common.channel.PtyChannelConfigurationHolder
getPtyColumns, getPtyHeight, getPtyLines, getPtyModes, getPtyType, getPtyWidth
-
-
-
-
Method Detail
-
setPtyType
void setPtyType(java.lang.String ptyType)
-
setPtyColumns
void setPtyColumns(int ptyColumns)
-
setPtyLines
void setPtyLines(int ptyLines)
-
setPtyWidth
void setPtyWidth(int ptyWidth)
-
setPtyHeight
void setPtyHeight(int ptyHeight)
-
setPtyModes
void setPtyModes(java.util.Map<PtyMode,java.lang.Integer> ptyModes)
-
copyConfiguration
static <M extends PtyChannelConfigurationMutator> M copyConfiguration(PtyChannelConfigurationHolder src, M dst)
-
setupSensitiveDefaultPtyConfiguration
static <M extends PtyChannelConfigurationMutator> M setupSensitiveDefaultPtyConfiguration(M mutator) throws java.io.IOException, java.lang.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:
java.io.IOException
- If failed to access some O/S related configurationjava.lang.InterruptedException
- If interrupted during access of O/S related configuration
-
-