-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathTermOptions.cs
More file actions
62 lines (52 loc) · 1.51 KB
/
TermOptions.cs
File metadata and controls
62 lines (52 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Website: https://www.blazor.zone or https://argozhang.github.io/
namespace BootstrapBlazor.Components;
/// <summary>
/// Term Options
/// </summary>
public class TermOptions
{
/// <summary>
/// 获得/设置 终端字体大小 默认 14
/// </summary>
public int FontSize { get; set; } = 14;
/// <summary>
/// 获得/设置 终端字体
/// </summary>
public string FontFamily { get; set; } = "Consolas, 'Courier New', monospace";
/// <summary>
/// 获得/设置 终端主题 默认 null 使用默认主题
/// </summary>
public TermTheme? Theme { get; set; }
/// <summary>
/// 获得/设置 光标闪烁 默认 true
/// </summary>
public bool CursorBlink { get; set; } = true;
/// <summary>
/// 获得/设置 行高 默认 1.0
/// </summary>
public double LineHeight { get; set; } = 1.0;
}
/// <summary>
/// Term Theme
/// </summary>
public class TermTheme
{
/// <summary>
/// Background color
/// </summary>
public string? Background { get; set; }
/// <summary>
/// Foreground color
/// </summary>
public string? Foreground { get; set; }
/// <summary>
/// Cursor color
/// </summary>
public string? Cursor { get; set; }
/// <summary>
/// Selection color
/// </summary>
public string? Selection { get; set; }
}