public static function readln($message = null, $nl = false, array $opts = []): string
    {
        if ($message) {
            Console::write($message, $nl);
        }

        $stream = $opts['stream'] ?? \STDIN;

        return \trim(fgets($stream));
    }