Skip to Content
GuidesThe EmulatorThe emulator window

The emulator window

Klive has two windows: the emulator, which shows the running machine, and the IDE, where you edit, build and debug. This page covers the emulator window: its toolbar, its status bar, the parts you can show or hide, and how it shares the screen with the IDE.

The emulator window: toolbar, screen and status bar
The emulator window running a ZX Spectrum 48K that lists a short BASIC program: the toolbar above the screen, the status bar below it with the machine name and the media strip1234
  1. The toolbar: run, pause and step the machine, and switch the emulator’s options.
  2. The emulated screen, here listing a short BASIC program.
  3. The media strip: the tape, disks or cartridges in the machine.
  4. The machine and its clock speed, in the status bar.

The two windows

The emulator and the IDE are separate windows, so you can put them on different monitors.

  • The first time you start Klive, only the emulator window appears, with a welcome dialog. Choose View › Show IDE to open the IDE window.
  • Closing the IDE window only hides it; View › Show IDE brings it back. Turn on Settings › General › Close the emulator when the IDE is closed to quit Klive with the IDE instead. Closing the emulator window always quits Klive.
  • Klive remembers where both windows were, and whether the IDE was showing, and restores them the next time it starts.
  • With Settings › General › Open the last project at startup on (the default), Klive opens the project you used last, and opening a project opens its build root file.

The toolbar

The emulator toolbar has these buttons, from left to right. Point at a button to see its tooltip.

ButtonWhat it does
Run Machine (F5)Starts the machine. Its arrow (Choose start mode) switches the button to Debug Machine (Ctrl+F5), which starts it with breakpoints armed. While paused, it continues.
Pause, Stop, RestartShift+F5, F4, Shift+F4.
Step Into, Step Over, Step OutStep a paused machine. See Running and debugging.
Machine settings (sliders)Opens the Machine page of the Settings dialog: the options of the running machine only, such as its ROMs. Also Machine › Configure machine. See Settings.
Stay on top (pin)Keeps the emulator window above other windows (see below).
Turn on/off instant screenShows the screen memory as it is now while paused. See The paused screen.
Show/Hide the beam position while pausedMarks where the beam was. Machines with a raster beam only.
Capture the mouseZX Spectrum Next only; Esc releases it. See Keyboard, joysticks and mouse.
Show/Hide keyboardThe virtual keyboard.
Mute sound / Unmute soundIts arrow (Sound level) picks Mute, Low, Medium, High or Highest.
Fast LOAD mode (rocket), Rewind the tapeMachines with a tape. See Tapes.
Start video recordingIts arrow (Recordings) starts the IDE + Emulator recording and opens the recording settings. See Recording the screen.

A narrow window

When the window is too narrow for every button, the toolbar makes room in two steps:

  1. The display buttons (stay on top, instant screen, beam position, keyboard) fold into one View options button (a screen with a gear). It opens a menu with the same switches; a switch that is on has a blue frame around its icon, as on the toolbar.
  2. If that is not enough, whole groups move into the More menu (>>) at the right end: first the tape buttons, then recording, the machine settings, the mouse, the display switches and sound. The reverse-debugging buttons go last. Run, pause, stop and the step buttons always stay.

Widen the window and the buttons come back in the reverse order.

The status bar

The status bar shows, from left to right:

  • Performance info: the last and average frame time in milliseconds, the frame count, and the program counter (PC:).
  • An RZX badge (PLAY, REC or VIDEO) while an RZX recording plays, records or renders.
  • The machine’s name: click it to open the Select machine dialog. See Choosing a machine.
  • The clock frequency in MHz: click it to choose a speed. This is the same list as Machine › Speed: Normal, then 2x up to 24x. Machines with a fixed clock show the frequency without a menu.

Right-click the status bar for its menu:

ItemWhat it does
Show Performance InfoShows or hides the frame figures and PC.
Show Media InformationShows or hides the media strip (ZX Spectrum models, Timex, Scorpion, HT-1080Z).
Show the Layers StripZX Spectrum Next: the Layers strip.
Hide Status BarHides the status bar; View › Status Bar shows it again.
Emulator Settings…Opens the Emulator page of the Settings.

The media strip

On the ZX Spectrum models, the Timex machines, the Scorpion and the HT-1080Z, a strip under the screen shows the media in use: the tape, the disks in the drives, the Microdrive cartridges or the Timex cartridge, each with its file name. The Cambridge Z88 shows its card slots there instead; see The Cambridge Z88.

Speed and sound

  • Machine › Speed runs the machine faster than the real one: Normal, 2x, 4x and so on up to 24x. The status bar’s MHz label opens the same list.
  • Machine › Sound sets the volume: Mute, Low, Medium, High or Highest. The toolbar’s sound button mutes and unmutes; its arrow sets the level.

The View menu

While the emulator window has the focus, the View menu has these items for it:

  • Toolbar, Status Bar and Virtual Keyboard show or hide those parts.
  • Fit Window to Screen shrinks the window around the machine’s picture at the zoom step it shows now; Fit Window to Screen at 1x makes it as small as the machine allows.
  • Zoom (Actual Size, Zoom In, Zoom Out) zooms the window’s contents, and Toggle Full Screen (Ctrl+Shift+F9) turns the full screen mode on and off.
  • Show IDE appears while the IDE window is hidden.

The screen always fits its window. Settings › Emulator › Zoom steps chooses whether it snaps to whole steps (1x, 2x, 3x), half steps or quarter steps. The same page has the Scanline effect.

Full screen mode

View › Toggle Full Screen (Ctrl+Shift+F9) fills the screen with the machine: its picture and, when it is shown, the virtual keyboard. The toolbar, the status bar and the media strip below the picture are gone. The same shortcut brings the window back as it was.

The toolbar and the status bar are still there when you need them:

  • Move the mouse to the top edge of the screen and the toolbar slides in over the picture. On macOS the menu bar comes down at the top edge too, and the toolbar slides in just below it.
  • Move it to the bottom edge and the status bar slides in.
  • A bar stays while the mouse is over it, or while one of its menus or a dialog it opened is open, and slides away shortly after the mouse leaves it.

This works whether View › Toolbar and View › Status Bar are on or off; leaving the mode shows them as those settings say. The bars cover the picture without resizing it, and they do not appear while the machine has captured the mouse. Esc does not leave the mode: it is a key of the machine.

Leaving full screen another way (on macOS, the window’s green button or Control+Cmd+F) also ends the mode. In the IDE window Toggle Full Screen only fills the screen.

Keeping the emulator on top

The emulator window stays above other windows by default, so it does not disappear behind the IDE. Turn this off or on with the Stay on top pin on the toolbar, which shows its state, or with Settings › Emulator › Keep the emulator on top. Both change the same setting.

Last updated on