public class FixedTerminalSizeProvider extends Object implements UnixTerminalSizeQuerier
Constructor and 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 and 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 © 2016. All rights reserved.