Added Terminal.getTerminalSize().
This commit is contained in:
@@ -13,4 +13,13 @@ class TerminalTest extends Specification {
|
||||
!terminal.isTerminal(Terminal.Output.Stdout);
|
||||
!terminal.isTerminal(Terminal.Output.Stderr);
|
||||
}
|
||||
|
||||
def "cannot detemine terminal size from a test"() {
|
||||
when:
|
||||
terminal.getTerminalSize(Terminal.Output.Stdout)
|
||||
|
||||
then:
|
||||
NativeException e = thrown()
|
||||
e.message == 'Could not get terminal size. Errno is 25.'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user