Class TerminalImpl
java.lang.Object
org.apache.hadoop.hbase.hbtop.terminal.impl.TerminalImpl
- All Implemented Interfaces:
Closeable,AutoCloseable,Terminal
An implementation of the
Terminal interface for normal display mode. This implementation
produces output intended for human viewing. In particular, it only displays one screenful of
data. The output contains some escape sequences for formatting.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate TerminalSizeprivate final KeyPressGeneratorprivate static final org.slf4j.Loggerprivate final PrintWriterprivate final ScreenBuffer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidclose()private StringgetSize()getTerminalPrinter(int startRow) voidprivate TerminalSizevoidrefresh()voidsetCursorPosition(int column, int row) private voidprivate voidprivate voidsttyRaw()private voidupdateTerminalSize(int columns, int rows)
-
Field Details
-
LOGGER
-
cachedTerminalSize
-
output
-
screenBuffer
-
keyPressQueue
-
keyPressGenerator
-
-
Constructor Details
-
TerminalImpl
public TerminalImpl() -
TerminalImpl
-
-
Method Details
-
setTitle
-
updateTerminalSize
-
clear
-
refresh
-
getSize
-
doResizeIfNecessary
- Specified by:
doResizeIfNecessaryin interfaceTerminal
-
pollKeyPress
- Specified by:
pollKeyPressin interfaceTerminal
-
getCursorPosition
- Specified by:
getCursorPositionin interfaceTerminal
-
setCursorPosition
- Specified by:
setCursorPositionin interfaceTerminal
-
hideCursor
- Specified by:
hideCursorin interfaceTerminal
-
getTerminalPrinter
- Specified by:
getTerminalPrinterin interfaceTerminal
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
queryTerminalSize
-
sttyRaw
-
sttyCooked
-
doStty
-