Electron main process entry point for nero-terminal.
Responsibilities:
- create the application window — a frameless, Tera Term-style window whose native minimise/maximise/close controls are overlaid at the top-right, leaving room in the custom title bar (to their left) for the in-app Settings button;
- register the session manager's IPC handlers (see module:main/session-manager);
- keep the native title-bar overlay colours in step with the renderer's light/dark theme;
- drive the standard app lifecycle through nero-electron-lib's
runApp.
The terminal itself (PTY / SSH backends and the xterm view) lives in the shared libraries under nero_modules/; this file is only the app shell.
Members
(inner, constant) sessions
The session manager bound to this window. Registered once at startup.
- See
- module:main/session-manager.createSessionManager
(inner) win :Electron.BrowserWindow|null
The single application window, or null before creation / after it closes.
- Electron.
BrowserWindow |null
Methods
(inner) makeWindow() → {Electron.BrowserWindow}
Create the application window and wire its lifecycle.
Removes the default menu, stamps the build info into the title (nero-terminal vX.Y.Z [DEBUG] (commit)), configures the frameless title bar with a native-controls overlay, loads the renderer, and disposes the active session when the window closes. Called by runApp on ready and on macOS re-activation.
the newly created window.
- Type:
- Electron.
BrowserWindow
(inner) parseProfileArg(argv) → {string|null}
Extract a saved-session name from a --open-profile=<name> launch argument.
| Name | Type | Description |
|---|---|---|
argv | Array.<string> | a process argument vector. |
the profile name, or null if not present.
- Type:
- string |
null
(inner) sendOpenProfile(name)
Ask the renderer to open a saved session by name.
| Name | Type | Description |
|---|---|---|
name | string | the saved session's name. |
(inner) setupJumpList()
Publish the saved sessions as a Windows taskbar jump list (no-op on other platforms), so right-clicking the taskbar icon can launch a saved session.