Welcome Guest, Not a member yet? Register   Sign In
Fun with Mr. Sturgeon's CLI...

Free for anyone to use in their CLI's... Smile

I personally have it print this to the console on startup for a websocket server listener Smile


if ($this->input->is_cli_request()) {
            $image = array();
            $image[] = "\033[0;32m    _\\/_                 \033[0m\033[1;33m|\033[0m\033[0;32m                _\\/_\033[0m";
            $image[] = "\033[0;32m    /\033[0m\033[0;33mo\033[0m\033[0;32m\\\\             \033[0m\033[1;33m\\       /            \033[0m\033[0;32m//\033[0m\033[0;33mo\033[0m\033[0;32m\\\033[0m";
            $image[] = "\033[0;33m     |                 \033[0m\033[1;33m.-'-.                \033[0m\033[0;33m|\033";
            $image[] = "\033[0;33m    _|_______\033[0m\033[1;33m     --  /     \\  --     \033[0m\033[0;33m______|__\033[0m";

            foreach($image AS $i) {
            $this->cli->write('             `~^~^~^~^~^~^~^~^~^~^~^~`', 'cyan');

P.S. : Is there an easier way to get multiple colors on one input line then what I've done? It was sort of a pain, but not too bad Smile

For those too lazy to run it:


Theme © iAndrew 2016 - Forum software by © MyBB