         }
     }
 
-    /// Create a printc object and write first text with marks.
+    /// Create a printc object with str and marks.
     ///
     ///     printc.write("Hello", .red, .italic)
     ///     // Prints "Hello" with red and italic attribtue.

            }
            Progressbar.progressbar!.draw(with: progress)
        }

    }
    private var buf: String = ""


    @discardableResult public static func write(_ str: String, _ marks: Mark...) -> printc {
        let obj = printc()
        printc.assemble(text: str, in: &obj.buf, with: marks)
        return obj
    }

    /// Create a printc object with str which tails '\n' and marks.
    ///
    ///     printc.writeln("Hello", .red, .italic)
    ///     // Prints "Hello\n" with red and italic attribtue.
    ///
    /// - Parameters:
    ///   - str: A text will be written.
    ///   - marks: An array of mark.
    /// - Returns: A printc object.
    @discardableResult public static func writeln(_ str: String, _ marks: Mark...) -> printc {
        let obj = printc()
        printc.assemble(text: str, in: &obj.buf, with: marks, appendNewline: true)
        return obj
    }

