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
Modifier and TypeFieldDescriptionprivate TerminalSize
private final KeyPressGenerator
private static final org.slf4j.Logger
private final PrintWriter
private final ScreenBuffer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
close()
private String
getSize()
getTerminalPrinter
(int startRow) void
private TerminalSize
void
refresh()
void
setCursorPosition
(int column, int row) private void
private void
private void
sttyRaw()
private void
updateTerminalSize
(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:
doResizeIfNecessary
in interfaceTerminal
-
pollKeyPress
- Specified by:
pollKeyPress
in interfaceTerminal
-
getCursorPosition
- Specified by:
getCursorPosition
in interfaceTerminal
-
setCursorPosition
- Specified by:
setCursorPosition
in interfaceTerminal
-
hideCursor
- Specified by:
hideCursor
in interfaceTerminal
-
getTerminalPrinter
- Specified by:
getTerminalPrinter
in interfaceTerminal
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
queryTerminalSize
-
sttyRaw
-
sttyCooked
-
doStty
-