Repository navigation
ConfiguringTheEmulator
This page describes how to configure the system and peripheral devices for the retro-g15 emulator.
The emulator home page has a button below the picture of the G-15 system labeled Configure System.

Clicking the button opens a sub-window that shows the current system configuration and allows you to change it. The button is enabled -- and the configuration can be accessed -- only when the emulator is in a powered-down state. This is the state immediately after loading the home page into your browser or after double-clicking the red OFF button on the Control Panel to shut down the emulator.
The configuration sub-window looks similar to the following:

This window has areas for selection of global system properties and non-standard input/output peripheral devices. You can change the configuration by altering the controls in this window and clicking the SAVE button. If you only want to view the configuration or discard any changes you have made, click CANCEL. Both buttons close the window.
The DEFAULTS button will discard the current configuration and replace it with the default one described in the next section.
The configuration data for the emulator is saved using an HTML5 feature known as Local Storage, implemented in Javascript by the window.localStorage object. Local Storage is supported by reasonably recent versions of all the major browsers. It allows a web page to store information that will persist across browser sessions and workstation restarts. For example, Firefox stores this data in a SQLite data base on your local disk drive.
Data in Local Storage is subject to the browser's same-origin policy, meaning that separate copies of the data are maintained for each combination in the URL scheme (http/https), host name, and port number. Thus, if you are accessing the emulator on two different web sites, you will have a different copy of the configuration data for each one.
The host name is taken literally. For example, you can access the emulator on the hosting site either at https://www.phkimpel.us/Bendix-G15/ or at https://phkimpel.us/Bendix-G15/. Both URLs will access the same physical files on the server, but those are different origins as far as the browser is concerned. In addition, Local Storage data is maintained differently by different browsers, so if you use the emulator with, say, both Firefox and Google Chrome, each browser will have separate Local Storage data, and potentially a different emulator configuration.
When you first run the emulator in your browser, the emulator will recognize that no configuration data is present, and will automatically create a default configuration for you. This is the same configuration established by the DEFAULTS button on the configuration page:
- No persistent window positioning
- IBM Model B (numeric-only) typewriter
- Integrated paper-tape reader
- Integrated paper-tape punch
- No other I/O devices.
The following sections discuss the areas of the System Configuration window and how you use them to specify the set of options and peripherals to be included in your G-15 system.
This section discusses the emulator's global system properties.
Persistent Window Positions -- By default, the emulator will size and position its windows at locations on your primary (or only) workstation display automatically as determined by the size of the display. Ticking this check box causes the emulator to remember each window's position and reinstate the windows in those positions the next time the emulator is initialized.
Use Multi-Screen Positioning -- This option is enabled only when the Persistent Window Positions check box is ticked. It is effective only when your local workstation has multiple displays and your browser supports the Window Management API. As of this writing, the standard for the API is in draft status and only Google Chrome, Microsoft Edge, Opera, and some Android mobile browsers support it. As a result, the emulator's handling of multiple monitors is both browser-dependent and somewhat complex. See "Multiple Display Window Positioning" below for details.
This section discusses configuration of the emulator's input/output devices.
The console typewriter is part of the standard G-15 system configuration. It cannot be excluded from the configuration. The System Configuration window has the settings for the typewriter's left margin, number of columns, and tab stops.
If Margin Left in specified in the configuration, it is the 1-relative column in which printing will begin on a line. Specifying a value less than 1 is taken as 1 and specifies no margin.
Columns is the number of printable columns beyond the left margin. Values less than 32 are taken as 32. The total width of a print line is therfore Margin-Left + Columns - 1 and must not exceed 255.
Tab Stops are specified as a list of 1-relative column numbers. Tab stops must be in ascending order. Stop numbers are relative to column 1 on the carriage and not to the left margin. Any tab stops at or before the left margin, or at or beyond the configured total line width, are ignored.
By default, these settings are:
- Margin-Left 0 (taken as
1, no margin) - Columns 132 (i.e., 132 columns between left and right margin stops, inclusive; the maximum is 255)
- Tabs at columns 6, 11, 16, 21, 26, 31, 36, 41, 46, 51, 56, 61, 66, 71, 76, 81, 86, 91, 96, 101, 106, 111, 116, 121, and 126.
For details, see Using the Typewriter.
The standard paper-tape reader is part of the Control Panel and cannot be excluded from the configuration. It has no configurable options. For details, see Using Paper Tape.
The standard paper-tape punch is part of the Control Panel and cannot be excluded from the configuration. It has no configurable options. For details, see Using Paper Tape.
The PA-3 plotter has these settings:
- None excludes the device from the configuration.
- PA-3: 11-inch carriage includes the device in the configuration.
The plotter has an option to scale the plot. The default 50% setting draws two plotter steps per screen pixel. The 100% setting draws one plotter step per pixel, but this causes the plotter window to be almost twice as wide on the screen as compared to the 50% setting – unless the Persistent Window Positions option described above is selected, in which case the window's retained size will be used. See the Using the Plotter wiki page for more information on plot orientation and scaling.
The plotter used some obscure or previously unspecified G-15 instruction formats to control the plotter. Because of this, programs written for a G-15 without a plotter may run differently (and perhaps incorrectly) on a system with a plotter, and vice versa. You may need to exclude the plotter in order to get some programs to run properly. See the wiki page for details.
By default, the emulator will automatically determine the size and position of the non-standard I/O device windows and the Diagnostic Panel on your workstation display. If you resize or move the windows, these changes will not be preserved across an emulator restart, and the windows will be placed at their automatic positions the next time the emulator is initialized.
Two check boxes discussed above under "System Properties" control the persistence of window sizes and their positioning:
- Persistent Window Positions
- Use Multi-Screen Positioning
If both check boxes are unticked, the emulator uses its default automatic window sizing and positioning method.
If the Persistent Window Positions check box is ticked, the emulator will remember the size and location of each window across an emulator restart, but the way this works depends on whether your workstation has multiple display devices and whether your browser supports the Window Management API. The Use Multi-Screen Positioning check box is relevant only if (a) Persistent Window Positions is ticked, (b) your workstation has multiple display devices, and (c) your browser supports that API.
As of this writing, the standard for the API is in draft status and only Google Chrome, Microsoft Edge, Opera, and some Android mobile browsers support it. Therefore, the following information and the emulator's behavior may change unexpectedly as standardization of the API proceeds. For now, the behavior can be described in two parts, one for Chrome, Edge, and Opera, and one for all other browsers.
The emulator maintains window position and size information for each of its windows under three "modes":
-
Auto -- this is the default, and is used when Persistent Window Positions is not ticked. Windows will be positioned and sized by the emulator. Any changes to window size or position will not be preserved across emulator restarts.
-
Single -- this is enabled when Persistent Window Positions is ticked in the configuration and Use Multi-Screen Positioning is not. This causes the current window positions to be preserved when the emulator is powered off and then reinstated the next time the emulator initializes, but the way this works currently differs between Chrome and the other browsers, as discussed below.
-
Multiple -- enabled when Persistent Window Positions and Use Multi-Screen Positioning are ticked in the configuration, your workstation has multiple display devices, and the browser supports the Window Management API. This is intended to support multi-monitor configurations.
The emulator persists window size and position information across emulator restarts separately for Single and Multiple modes, but not for Auto mode. This allows you to maintain different window configurations for single- and multiple-display workstation configurations, e.g., a laptop that you use at your desk with one or more additional displays, but also standalone with only the laptop's screen.
If neither check box is ticked, the browser will use "Auto" mode positioning. Windows will be positioned automatically. If you have multiple monitors, the windows should be placed on the same display as the main window.
Ticking Persistent Window Positions will enable "Single" mode positioning. The sizes and positions of the windows will be saved when the emulator is powered off, and the emulator will attempt to restore the windows to those positions the next time it is started.
-
Under Chrome, Edge, and Opera, when the Multi-Screen box is not ticked, the windows will all be placed on a single display, regardless of how many displays are present. You can move windows to other displays, but they won't be restored there.
-
Other browsers, however, will consider the multiple displays to be one contiguous space. Thus, you can move the windows to other displays, and those browsers will attempt to restore those windows to their former positions in the contiguous display space. If you later remove a display and restart the emulator, the browser will constrain the window positions to the newly available display space.
Ticking Use Multi-Screen Positioning will attempt to use "Multiple" mode positioning by means of the Window Management API. At present, this is the only way for Chrome and the other API-capable browser to be able to restore windows to multiple displays. This setting will only be effective if (a) the Persistent Window Positions check box is ticked, (b) the browser supports the API, and (c) the workstation currently has multiple displays. If all those conditions aren't met, the emulator ignores the Multi-Screen check box and reverts to either "Auto" or "Single" mode positioning, depending on the setting of the Persistent check box. At present, the Multi-Screen check box will be ignored for any browser other than Chrome, Edge, or Opera.
By default, Chrome is supposed to prompt for permission to use the Window Management API when you first try to use the API, but for some reason the prompt never appears. Instead, Chrome throws an exception. Since this is quite a new API, it's probably a bug.
Fortunately, there's another way to get the permission granted:
- Open Chrome's settings panel from the 3-dot icon on the right of the address bar (or you can enter
about:settingsin the address bar and press Enter). - From the "Settings" menu on the resulting page, select "Privacy and Security."
- On the next view, select "Site settings."
- On the next view, expand "View permissions and data stored across sites."
- Select "www.phkimpel.us" or "phkimpel.us" (or whatever site you're running the emulator from). There's a search box in the upper-right corner if the list shows a lot of sites.
- On the next view, scroll the list of permissions to "Window management." On the right of that is the current permission (probably set to "Ask").
- Change the permission to "Allow." The change takes effect immediately.
You could also try this method, which may be quicker:
- Open the Developer Tools (F12 or via "More tools" on the 3-dot menu).
- Click the "Console" tab.
- At the command prompt, enter
await window.getScreenDetails()and press Enter. A prompt should appear over the main window (make sure it's not covered by the Developer Tools window). Click the "Allow" button. - Close Developer Tools.
This window positioning scheme is a little complex, but is designed this way in an attempt to have sensible behavior when the workstation's display configuration changes. It also gives you the ability to opt out of using the Window Management API and having to worry about its permissions. You only need to give permission for the Window Management API once per origin from which you load the emulator, but some users may want to run in Single mode even if they're running an API-capable browser and have multiple displays.