Files
galaxy/app/src/terminal/alt_screen_reporting.rs
T

34 lines
1.4 KiB
Rust

use settings::{
macros::define_settings_group, RespectUserSyncSetting, SupportedPlatforms, SyncToCloud,
};
define_settings_group!(AltScreenReporting, settings: [
mouse_reporting_enabled: MouseReportingEnabled {
type: bool,
default: true,
supported_platforms: SupportedPlatforms::ALL,
sync_to_cloud: SyncToCloud::Globally(RespectUserSyncSetting::Yes),
private: false,
toml_path: "terminal.mouse_reporting_enabled",
description: "Whether to forward mouse events to full-screen terminal applications.",
},
scroll_reporting_enabled: ScrollReportingEnabled {
type: bool,
default: true,
supported_platforms: SupportedPlatforms::ALL,
sync_to_cloud: SyncToCloud::Globally(RespectUserSyncSetting::Yes),
private: false,
toml_path: "terminal.scroll_reporting_enabled",
description: "Whether to forward scroll events to full-screen terminal applications.",
},
focus_reporting_enabled: FocusReportingEnabled {
type: bool,
default: true,
supported_platforms: SupportedPlatforms::ALL,
sync_to_cloud: SyncToCloud::Globally(RespectUserSyncSetting::Yes),
private: false,
toml_path: "terminal.focus_reporting_enabled",
description: "Whether to forward focus and blur events to full-screen terminal applications.",
},
]);