Make Terminal a native feature
- Move the Terminal plugin into src/lib/features/terminal/ on the host Svelte runtime, with xterm 6.0.0 and addon-fit 0.11.0. - Buttons, shortcuts, Help rows, and the close guard follow the Terminal switch. The first use loads the module. - Add Settings → Terminal and the terminal settings section. The first start copies the old runestone.terminal key. - The 16 ANSI colors come from the --rs-ansi-* tokens. - Off asks first when a shell runs in any window (pty_running). - Rust: no pty-data or pty-exit events, an owner check for write, resize, and close, output joined up to 64 KiB or 8 ms, and the sessions of a reloaded page close. - Remove api.pty, the terminal contribution, TerminalSlot, and the plugin loader of the smoke harness. - Check only the tested switches in the Background smoke test. - Update the tests, the menu inventory, the docs, and UI-058.
This commit is contained in:
@@ -20,8 +20,8 @@ use crate::fsutil;
|
||||
pub const FILE_NAME: &str = "settings.json";
|
||||
pub const SCHEMA: u64 = 1;
|
||||
/// The known sections. `customThemesLegacy` keeps the original version 1 themes from before their conversion.
|
||||
/// `features` holds the switches of the native features. `background` holds the settings of the Background feature.
|
||||
pub const SECTIONS: [&str; 7] = ["general", "appearance", "customThemes", "customThemesLegacy", "language", "features", "background"];
|
||||
/// `features` holds the switches of the native features. `background` and `terminal` hold the settings of the Background and Terminal features.
|
||||
pub const SECTIONS: [&str; 8] = ["general", "appearance", "customThemes", "customThemesLegacy", "language", "features", "background", "terminal"];
|
||||
/// The appearance section can hold an image data URL of up to 3,000,000 characters.
|
||||
pub const MAX_FILE_BYTES: usize = 8 * 1024 * 1024;
|
||||
pub const CHANGED_EVENT: &str = "settings-changed";
|
||||
|
||||
Reference in New Issue
Block a user