private function workaroundForSingleChar(
        string &$incrementalOutput,
        Project $project
    ) {
        // Check if there is a temporarily stored char.
        if (!empty($this->tmpChar[$project->getName()]) && !empty($incrementalOutput)) {
            // Add the char directly at the beginning of the current
            // incremental output value.
            $incrementalOutput = $this->tmpChar[$project->getName()] . $incrementalOutput;
            // Clear the temporarily stored char.
            $this->tmpChar[$project->getName()] = '';
        }
        // If there is a single char store it temporarily.
        if (strlen($incrementalOutput) == 1) {
            $this->tmpChar[$project->getName()] = $incrementalOutput;
            // Clear the current incremental output value so that nothing will be written to the console.
            $incrementalOutput = '';
        }
    }