Print to touch bar

Is there a way to print things to the touchbar, preferably with the terminal? I have been trying to find documentation but I can’t find any.