public int width() {
        int maxWidth = 0;
        for (String line : lines()) {
            int currentLength = ANSI_PATTERN.matcher(line).replaceAll("").length();
            if (maxWidth < currentLength) {
                maxWidth = currentLength;
            }
        }
        return maxWidth;
    }
@return returns the width of the box without the newlines
plc4j/spi/src/main/java/org/apache/plc4x/java/spi/utils/ascii/AsciiBox.java