• This function adds the provided value to the terminal history. If the value is a string, it is added directly. If the value is an object, the html property of the object is converted to a string using safeRenderToString function before adding it to the history.

    Parameters

    Returns Promise<void>

    A promise that resolves once the value is added to the terminal history.

    Example

    // Writing a string value
    const outputValue = 'Hello, world!';
    await writeToTerminal(outputValue);

    // Writing an object value
    const outputValue = {
    html: <div>Hello, world!</div>,
    };
    await writeToTerminal(outputValue);

Generated using TypeDoc