const outputEl = document.getElementById('terminal-output');

export function appendToTerminal(text) {
  if (!outputEl) return;
  outputEl.textContent += text;
  outputEl.scrollTop = outputEl.scrollHeight;
}

export function clearTerminal() {
  if (outputEl) outputEl.textContent = '';
}
