UnixTerminalSizeQuerier
public class FixedTerminalSizeProvider extends Object implements UnixTerminalSizeQuerier
Constructor | Description |
---|---|
FixedTerminalSizeProvider(TerminalSize size) |
Creating a
FixedTerminalSizeProvider set to a particular size that it will always report whenever the
associated Terminal interface queries. |
Modifier and Type | Method | Description |
---|---|---|
TerminalSize |
queryTerminalSize() |
Checks what the size of the terminal is, measured in number of rows and columns.
|
public FixedTerminalSizeProvider(TerminalSize size)
FixedTerminalSizeProvider
set to a particular size that it will always report whenever the
associated Terminal
interface queries.size
- Size the terminal should be statically initialized topublic TerminalSize queryTerminalSize()
UnixTerminalSizeQuerier
queryTerminalSize
in interface UnixTerminalSizeQuerier
Copyright © 2020. All rights reserved.