1use wasm_bindgen::prelude::*;
2
3#[wasm_bindgen]
4pub enum BellStyle {
5 None = "none",
6 Sound = "sound",
7 Visual = "visual",
8 Both = "both",
9}
10
11#[wasm_bindgen]
12pub enum CursorStyle {
13 Block = "block",
14 Underline = "underline",
15 Bar = "bar",
16}
17
18#[wasm_bindgen]
19pub enum FastScrollModifier {
20 Alt = "alt",
21 Ctrl = "ctrl",
22 Shift = "shift",
23}
24
25#[wasm_bindgen]
26pub enum FontWeight {
27 Normal = "normal",
28 Bold = "bold",
29 W100 = "100",
30 W200 = "200",
31 W300 = "300",
32 W400 = "400",
33 W500 = "500",
34 W600 = "600",
35 W700 = "700",
36 W800 = "800",
37 W900 = "900",
38}
39
40#[wasm_bindgen]
41pub enum LogLevel {
42 Debug = "debug",
43 Info = "info",
44 Warn = "warn",
45 Error = "error",
46 Off = "off",
47}
48
49#[wasm_bindgen]
50pub enum RendererType {
51 Dom = "dom",
52 Canvas = "canvas",
53}
54
55#[wasm_bindgen]
56pub enum BufferType {
57 Normal = "normal",
58 Alternate = "alternate",
59}
60
61#[wasm_bindgen]
62pub enum WcWidth {
63 Width0 = 0,
64 Width1 = 1,
65 Width2 = 2,
66}
67
68#[wasm_bindgen]
69pub enum StringOptionKey {
70 BellSound = "bellSound",
71 BellStyle = "bellStyle",
72 CursorStyle = "cursorStyle",
73 FontFamily = "fontFamily",
74 FontWeight = "fontWeight",
75 FontWeightBold = "fontWeightBold",
76 LogLevel = "logLevel",
77 RendererType = "rendererType",
78 TermName = "termName",
79 WordSeparator = "wordSeparator",
80}
81
82#[wasm_bindgen]
83pub enum BoolOptionKey {
84 AllowTransparency = "allowTransparency",
85 CancelEvents = "cancelEvents",
86 ConvertEol = "convertEol",
87 CursorBlink = "cursorBlink",
88 DisableStdin = "disableStdin",
89 MacOptionIsMeta = "macOptionIsMeta",
90 RightClickSelectsWord = "rightClickSelectsWord",
91 PopOnBell = "popOnBell",
92 VisualBell = "visualBell",
93 WindowsMode = "windowsMode",
94}
95
96#[wasm_bindgen]
97pub enum NumberOptionKey {
98 Cols = "cols",
99 FontSize = "fontSize",
100 LetterSpacing = "letterSpacing",
101 LineHeight = "lineHeight",
102 Rows = "rows",
103 TabStopWidth = "tabStopWidth",
104 Scrollback = "scrollback",
105}
106
107#[wasm_bindgen]
108pub enum FontWeightKey {
109 FontWeight = "fontWeight",
110 FontWeightBold = "fontWeightBold",
111}
112
113#[wasm_bindgen]
114pub enum LogLevelKey {
115 LogLevel = "logLevel",
116}
117
118#[wasm_bindgen]
119pub enum BellStyleKey {
120 BellStyle = "bellStyle",
121}
122
123#[wasm_bindgen]
124pub enum CursorStyleKey {
125 CursorStyle = "cursorStyle",
126}
127
128#[wasm_bindgen]
129pub enum ThemeKey {
130 Theme = "theme",
131}