@InterfaceAudience.Private public class TerminalImpl extends Object implements Terminal
Terminal
interface.Constructor and Description |
---|
TerminalImpl() |
TerminalImpl(String title) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
close() |
TerminalSize |
doResizeIfNecessary() |
CursorPosition |
getCursorPosition() |
TerminalSize |
getSize() |
TerminalPrinter |
getTerminalPrinter(int startRow) |
void |
hideCursor() |
KeyPress |
pollKeyPress() |
void |
refresh() |
void |
setCursorPosition(int column,
int row) |
public TerminalImpl()
public TerminalImpl(@Nullable String title)
public TerminalSize getSize()
@Nullable public TerminalSize doResizeIfNecessary()
doResizeIfNecessary
in interface Terminal
@Nullable public KeyPress pollKeyPress()
pollKeyPress
in interface Terminal
public CursorPosition getCursorPosition()
getCursorPosition
in interface Terminal
public void setCursorPosition(int column, int row)
setCursorPosition
in interface Terminal
public void hideCursor()
hideCursor
in interface Terminal
public TerminalPrinter getTerminalPrinter(int startRow)
getTerminalPrinter
in interface Terminal
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.