Changeset View
Changeset View
Standalone View
Standalone View
src/console/PhutilConsole.php
| <?php | <?php | ||||
| /** | /** | ||||
| * Provides access to the command-line console. Instead of reading from or | * Provides access to the command-line console. Instead of reading from or | ||||
| * writing to stdin/stdout/stderr directly, this class provides a richer API | * writing to stdin/stdout/stderr directly, this class provides a richer API | ||||
| * including support for ANSI color and formatting, convenience methods for | * including support for ANSI color and formatting, convenience methods for | ||||
| * prompting the user, and the ability to interact with stdin/stdout/stderr | * prompting the user, and the ability to interact with stdin/stdout/stderr | ||||
| * in some other process instead of this one. | * in some other process instead of this one. | ||||
| * | * | ||||
| * @task construct Construction | * @task construct Construction | ||||
| * @task interface Interfacing with the User | * @task interface Interfacing with the User | ||||
| * @task internal Internals | * @task internal Internals | ||||
| */ | */ | ||||
| final class PhutilConsole { | final class PhutilConsole extends Phobject { | ||||
| private static $console; | private static $console; | ||||
| private $server; | private $server; | ||||
| private $channel; | private $channel; | ||||
| private $messages = array(); | private $messages = array(); | ||||
| private $flushing = false; | private $flushing = false; | ||||
| ▲ Show 20 Lines • Show All 273 Lines • Show Last 20 Lines | |||||