Skip to content

Commit 47a0abe

Browse files
authored
Add getColourSupport to interface
1 parent 7d4983b commit 47a0abe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Terminal.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ public function getWidth() : int;
1818
*/
1919
public function getHeight() : int;
2020

21+
/**
22+
* Get the number of colours the terminal supports (1, 8, 256, true colours)
23+
*/
24+
public function getColourSupport() : int;
25+
2126
/**
2227
* Disables echoing every character back to the terminal. This means
2328
* we do not have to clear the line when reading.

0 commit comments

Comments
 (0)