ComfyUI Node

DisplayTextNode

The node that prints your prompt to the terminal and nothing else

By illuminatianon·Created about a year ago·Updated about a year ago· 1
DisplayTextNode
    • STRING
    text

    DisplayTextNode is the second node in the tiny comfyui-csvwildcards pack, and it's about as unglamorous as a ComfyUI node gets. It takes a string, prints it to the terminal you launched ComfyUI from, and hands the same string back to the graph. That's the entire job. No fancy UI panel, no image preview - just a print() call and a pass-through.

    So why would you reach for it? Because its big sibling in this pack, CSVWildcardNode, substitutes wildcards silently and leaves any unresolved placeholder literally in the output - {monster} that doesn't resolve stays as the text {monster}, and CLIP Text Encode happily encodes it without an error. When you're debugging a prompt that's come out wrong, you want to see exactly what the wildcard node produced before it hits the sampler. Drop a DisplayTextNode after it, run once, and read the console: that's the string that actually got encoded. It's the poor man's Show Text, and for a pack this small that's fine.

    The one input

    text is the only input, and it's marked forceInput - meaning you can't type into it, it has to be wired from another node. That's deliberate: the node exists to sit mid-graph, not as a place to type. Feed it the output of a text generator, a wildcard node, or any other STRING output. It prints what it receives and returns the identical string, so you can keep chaining it onward - put it before CLIP Text Encode and the prompt still flows through.

    The output is a single STRING, passed through untouched. It's also an output node (OUTPUT_NODE = True), so ComfyUI treats it as an endpoint of the graph run - good if you want a run to be marked complete even when the string goes nowhere else.

    Where it falls short

    If you're running ComfyUI as a service or from a launcher with no visible terminal, the print goes nowhere you'll ever see - then this node is pointless. And it doesn't give you an in-graph text preview; for that, core Show Text or the text viewers in bigger packs do a better job. This is the minimal debugging aid from a minimal pack: useful in exactly the workflow it ships with, not a general-purpose tool you'll build around.

    Installing

    Same pack, install once:

    cd ComfyUI/custom_nodes
    git clone https://github.com/illuminatianon/comfyui-csvwildcards.git
    

    …restart ComfyUI, done. Or search "CSV Wildcard Node for ComfyUI" in ComfyUI Manager. No dependencies, no model downloads - pure standard library.

    CategoryCustom

    Inputs (1)

    NameTypeDefaultDescription
    textSTRING

    Outputs (1)

    NameTypeDescription
    STRINGSTRING