Files
RuneStone/docs/guides/terminal.md
T
2026-11-03 00:23:07 -07:00

5.6 KiB

Terminal guide

RuneStone · User guide

This guide explains how to use shells, scripts, and workspace tasks in the terminal of RuneStone.

Terminal is part of RuneStone and is on by default. The shells and script runtimes that you use must be installed on your computer. To turn Terminal off, see Turn Terminal off.

Open and arrange terminals

Action How
Show or hide the terminal panel Terminal in the left ribbon, Ctrl+`, or Ctrl+J. Sessions and scrollback stay.
New terminal Ctrl+Shift+` or the + button
Split the active terminal Ctrl+Shift+5 or Split terminal. The new pane uses the same folder and profile.
New terminal window Ctrl+Shift+Alt+`, or New terminal window in the profile menu
End the active session Kill terminal, or Delete while an entry in the terminal list has focus
Change the panel size Maximize panel or Restore panel. Shells do not restart.
End all sessions in the panel Close terminal (end all sessions)

The terminal list shows only when more than one session is open. Closing a terminal window ends its sessions. When you close a workspace window with running sessions, RuneStone asks first. You can type before a shell starts. RuneStone sends the text when the shell is ready.

Choose a shell

Open Terminal profiles and tasks (the arrow beside the + button) to start a terminal with a specific profile.

System Profiles
Windows PowerShell, PowerShell 7, Git Bash, and Command Prompt
macOS and Linux Bash and PowerShell

The menu shows only the shells that RuneStone finds on your computer. The same menu has Split terminal with profile, Terminal settings, Select the default profile, and the task commands. New terminals get the RuneStone environment, including PATH.

Change the terminal settings

Open Settings → Terminal, or choose Terminal settings in the profile menu. The page shows only while Terminal is on.

Setting Values
Default profile The shell of a new terminal. The JavaScript Debug Terminal is not a choice.
Font size 9 to 28 pixels. The default is 13.
Scrollback lines 100 to 100,000 lines. The default is 10,000.
Blink cursor The cursor blinks in the focused terminal. On by default.

A change saves at once and applies to all windows. Open terminals take the new font size, scrollback, and cursor. The default profile applies to new terminals. After an update, the first start copies the settings of the old Terminal plugin.

The terminal colors come from the color theme. The text, the cursor, and the selection use the theme colors. The 16 ANSI colors use the ansi-* keys of the theme. To change them, see Edit a theme and Color keys.

Copy and paste

  • Drag across terminal text to select it.
  • Ctrl+C copies the selection. With no selection, Ctrl+C sends an interrupt to the shell.
  • Ctrl+Shift+C copies the selection.
  • Right-click a selection to copy it.

Run scripts and recent commands

Open More terminal actions for these commands:

Command Result
Scroll to the previous command / Scroll to the next command (Ctrl+Up / Ctrl+Down) Moves between command prompts.
Clear the terminal Clears the scrollback.
Run the active file Saves and runs the active file in the terminal.
Run selected text Sends the text that is selected in the editor to the terminal.
Start dictation Starts Windows voice typing. See Debug JavaScript and use dictation.
Go to a recent folder… (Ctrl+G) Changes to a recent folder.
Run a recent command… (Ctrl+Alt+R) Runs a command from this session again.

Run the active file supports Python, JavaScript, PowerShell, Bash, Ruby, Windows batch files, and executables. The terminal keeps command history in memory only. PowerShell and Bash record a command after it finishes. Command Prompt records the text that you submit.

Configure workspace tasks

A task is a named command that you can start from a menu.

  1. Choose Configure tasks…. RuneStone creates or opens .runestone/tasks.json.
  2. Add an object to the tasks array with label and command.
  3. Optionally, add profile with one of these IDs: powershell, pwsh, git-bash, cmd, or bash.
  4. Choose Run a task… and select the task.

Example (.runestone/tasks.json):

{
  "tasks": [
    { "label": "Run tests", "command": "pnpm test", "profile": "pwsh" }
  ]
}

Each task runs in its own terminal at the workspace root. Tasks run only when you select them.

Debug JavaScript and use dictation

JavaScript Debug Terminal in the profile menu starts a Node.js REPL with a local inspector on a free port. Attach an external debugger to the address that the terminal shows. RuneStone does not include a debugger.

Start dictation starts Windows voice typing (Win+H) in the focused terminal. Set up the microphone and voice typing in Windows first. On other systems, use the dictation shortcut of the operating system.

Turn Terminal off

  1. Open Settings → Features.
  2. Clear Terminal.
  3. If a window runs a shell, RuneStone asks "Terminal sessions will end. Turn off Terminal?". Confirm to continue.

Off ends the terminal sessions of every window. The Terminal buttons, shortcuts, and Help rows do not show. A terminal window shows "Terminal is off. Turn it on in Settings → Features." Your terminal settings and .runestone/tasks.json stay. Turn Terminal on again in the same place.