public static function prompt($prompt = '', $trim = true) {
        $prompt && self::lineOut($prompt);
        self::lineOut('> ', null, false);
        $response = fgets(STDIN);

        if ($trim) {
            $response = trim($response);
        }
        return $response;
    }