addToCommandBar static method
Appends text to the command bar, updating both the display and the buffer.
Implementation
static void addToCommandBar(String text) {
if (_activeBuffer == null) return;
_activeBuffer!.write(text);
stdout.write(text);
}