Package org.jline.builtins
Class WebTerminal.WebTerminalComponent
- java.lang.Object
-
- org.jline.utils.ScreenTerminal
-
- org.jline.builtins.WebTerminal.WebTerminalComponent
-
- All Implemented Interfaces:
Sized
- Enclosing class:
- WebTerminal
public static class WebTerminal.WebTerminalComponent extends ScreenTerminal
The inner WebTerminalComponent that contains the original ScreenTerminal-based implementation. This is the inner class that contains the original ScreenTerminal-based implementation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jline.utils.ScreenTerminal
ScreenTerminal.VirtualTerminal
-
-
Field Summary
-
Fields inherited from class org.jline.utils.ScreenTerminal
MAX_SIZE, MIN_SIZE
-
-
Constructor Summary
Constructors Constructor Description WebTerminalComponent(int columns, int rows)Creates a new WebTerminalComponent with the specified dimensions.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Stringpipe(java.lang.String input)Reads and processes input through the terminal.booleansetSize(int columns, int rows)Deprecated.UseScreenTerminal.setSize(Sized)instead.voidsetWebTerminal(WebTerminal webTerminal)Sets the web terminal reference after construction to avoid this-escape issues.booleanwrite(java.lang.String text)Writes text to the terminal.-
Methods inherited from class org.jline.utils.ScreenTerminal
cellAttr, cellBackground, cellBold, cellCodePoint, cellColorRgb, cellConceal, cellDim, cellForeground, cellHasBackground, cellHasForeground, cellInverse, cellItalic, cellUnderline, dump, dump, dump, dump, dump, dump, getColumns, getHeight, getHistory, getHistorySize, getRows, getWidth, isDirty, isSynchronizedOutput, read, setDirty, setSize, toString, waitDirty, waitDirty, wireTerminal, wireTerminal, withTerminal, write
-
-
-
-
Method Detail
-
setWebTerminal
public void setWebTerminal(WebTerminal webTerminal)
Sets the web terminal reference after construction to avoid this-escape issues.- Parameters:
webTerminal- the WebTerminal instance
-
write
public boolean write(java.lang.String text)
Writes text to the terminal.- Parameters:
text- the text to write- Returns:
- true if successful
-
pipe
public java.lang.String pipe(java.lang.String input)
Reads and processes input through the terminal. Delegates to the ScreenTerminal pipe method which handles all special key sequences and terminal modes.- Overrides:
pipein classScreenTerminal- Parameters:
input- the input to process- Returns:
- the processed input
-
setSize
@Deprecated public boolean setSize(int columns, int rows)Deprecated.UseScreenTerminal.setSize(Sized)instead.Set the terminal size to the given columns and rows if they are within allowed bounds.- Overrides:
setSizein classScreenTerminal- Parameters:
columns- the new number of columns; must be between 10 and 200 inclusiverows- the new number of rows; must be between 5 and 100 inclusive- Returns:
- true if the size was applied, false if the provided dimensions are out of range
-
-