Hmm, this is a good question. Surprised that the function does not work. Perhaps there is a trigger function in that case, such as "print" is used before the command. like "command clear" or something. i'm gonna check it out, but it may be just obscure enough not to have an answer printed yet. (Especially if you're not aware of it, kinda think of you as "the encyclopedia" around here!
Currently conspiring with many modders on the "Legends of the Northern Realms"project.
"You have been captured by a psychopathic diety who needs a new plaything to torture." Hotel Hades
you want to do this without the player knowing, correct? so you could trigger it with a hidden plate etc. Or is this just for your personal use. (Was picturing players getting a console message that spoiled a puzzle hint on the fly.) I almost want to consider the console like an entity, where it could be id'd, like "console: clear()", now i just wanna go mess with it,lol
Currently conspiring with many modders on the "Legends of the Northern Realms"project.
"You have been captured by a psychopathic diety who needs a new plaything to torture." Hotel Hades
it could work however you want, same code really, just a for-loop 20x to print a blank line.
I'm primarily wanting it for my upcoming testing sessions of my just-completed project, so I can have my console on but clear it very easily and quickly whenever I want. And also for my testers (after my own run-through) so they can see the console but also clear it fast as well.