80 references to TermInfo
System.Console (80)
System\ConsolePal.Unix.cs (4)
44
private static readonly Lazy<TerminalFormatStrings> s_terminalFormatStringsInstance = new(() => new TerminalFormatStrings(
TermInfo
.DatabaseFactory.ReadActiveDatabase()));
202
string ansiStr =
TermInfo
.ParameterizedStrings.Evaluate(titleFormat, value);
246
string ansiStr =
TermInfo
.ParameterizedStrings.Evaluate(cursorAddressFormat, top, left);
832
evaluatedString =
TermInfo
.ParameterizedStrings.Evaluate(formatString, ansiCode);
System\TerminalFormatStrings.cs (76)
65
public TerminalFormatStrings(
TermInfo
.Database? db)
70
KeypadXmit = db.GetString(
TermInfo
.WellKnownStrings.KeypadXmit);
71
Foreground = db.GetString(
TermInfo
.WellKnownStrings.SetAnsiForeground);
72
Background = db.GetString(
TermInfo
.WellKnownStrings.SetAnsiBackground);
73
Reset = db.GetString(
TermInfo
.WellKnownStrings.OrigPairs) ?? db.GetString(
TermInfo
.WellKnownStrings.OrigColors);
74
Bell = db.GetString(
TermInfo
.WellKnownStrings.Bell);
75
Clear = db.GetString(
TermInfo
.WellKnownStrings.Clear);
80
Columns = db.GetNumber(
TermInfo
.WellKnownNumbers.Columns);
81
Lines = db.GetNumber(
TermInfo
.WellKnownNumbers.Lines);
82
CursorVisible = db.GetString(
TermInfo
.WellKnownStrings.CursorVisible);
83
CursorInvisible = db.GetString(
TermInfo
.WellKnownStrings.CursorInvisible);
84
CursorAddress = db.GetString(
TermInfo
.WellKnownStrings.CursorAddress);
85
CursorLeft = db.GetString(
TermInfo
.WellKnownStrings.CursorLeft);
86
ClrEol = db.GetString(
TermInfo
.WellKnownStrings.ClrEol);
91
Debug.WriteLineIf(db.GetString(
TermInfo
.WellKnownStrings.CursorPositionReport) != CursorPositionReport,
95
int maxColors = db.GetNumber(
TermInfo
.WellKnownNumbers.MaxColors);
101
AddKey(db,
TermInfo
.WellKnownStrings.KeyF1, ConsoleKey.F1);
102
AddKey(db,
TermInfo
.WellKnownStrings.KeyF2, ConsoleKey.F2);
103
AddKey(db,
TermInfo
.WellKnownStrings.KeyF3, ConsoleKey.F3);
104
AddKey(db,
TermInfo
.WellKnownStrings.KeyF4, ConsoleKey.F4);
105
AddKey(db,
TermInfo
.WellKnownStrings.KeyF5, ConsoleKey.F5);
106
AddKey(db,
TermInfo
.WellKnownStrings.KeyF6, ConsoleKey.F6);
107
AddKey(db,
TermInfo
.WellKnownStrings.KeyF7, ConsoleKey.F7);
108
AddKey(db,
TermInfo
.WellKnownStrings.KeyF8, ConsoleKey.F8);
109
AddKey(db,
TermInfo
.WellKnownStrings.KeyF9, ConsoleKey.F9);
110
AddKey(db,
TermInfo
.WellKnownStrings.KeyF10, ConsoleKey.F10);
111
AddKey(db,
TermInfo
.WellKnownStrings.KeyF11, ConsoleKey.F11);
112
AddKey(db,
TermInfo
.WellKnownStrings.KeyF12, ConsoleKey.F12);
113
AddKey(db,
TermInfo
.WellKnownStrings.KeyF13, ConsoleKey.F13);
114
AddKey(db,
TermInfo
.WellKnownStrings.KeyF14, ConsoleKey.F14);
115
AddKey(db,
TermInfo
.WellKnownStrings.KeyF15, ConsoleKey.F15);
116
AddKey(db,
TermInfo
.WellKnownStrings.KeyF16, ConsoleKey.F16);
117
AddKey(db,
TermInfo
.WellKnownStrings.KeyF17, ConsoleKey.F17);
118
AddKey(db,
TermInfo
.WellKnownStrings.KeyF18, ConsoleKey.F18);
119
AddKey(db,
TermInfo
.WellKnownStrings.KeyF19, ConsoleKey.F19);
120
AddKey(db,
TermInfo
.WellKnownStrings.KeyF20, ConsoleKey.F20);
121
AddKey(db,
TermInfo
.WellKnownStrings.KeyF21, ConsoleKey.F21);
122
AddKey(db,
TermInfo
.WellKnownStrings.KeyF22, ConsoleKey.F22);
123
AddKey(db,
TermInfo
.WellKnownStrings.KeyF23, ConsoleKey.F23);
124
AddKey(db,
TermInfo
.WellKnownStrings.KeyF24, ConsoleKey.F24);
125
AddKey(db,
TermInfo
.WellKnownStrings.KeyBackspace, ConsoleKey.Backspace);
126
AddKey(db,
TermInfo
.WellKnownStrings.KeyBackTab, ConsoleKey.Tab, shift: true, alt: false, control: false);
127
AddKey(db,
TermInfo
.WellKnownStrings.KeyBegin, ConsoleKey.Home);
128
AddKey(db,
TermInfo
.WellKnownStrings.KeyClear, ConsoleKey.Clear);
129
AddKey(db,
TermInfo
.WellKnownStrings.KeyDelete, ConsoleKey.Delete);
130
AddKey(db,
TermInfo
.WellKnownStrings.KeyDown, ConsoleKey.DownArrow);
131
AddKey(db,
TermInfo
.WellKnownStrings.KeyEnd, ConsoleKey.End);
132
AddKey(db,
TermInfo
.WellKnownStrings.KeyEnter, ConsoleKey.Enter);
133
AddKey(db,
TermInfo
.WellKnownStrings.KeyHelp, ConsoleKey.Help);
134
AddKey(db,
TermInfo
.WellKnownStrings.KeyHome, ConsoleKey.Home);
135
AddKey(db,
TermInfo
.WellKnownStrings.KeyInsert, ConsoleKey.Insert);
136
AddKey(db,
TermInfo
.WellKnownStrings.KeyLeft, ConsoleKey.LeftArrow);
137
AddKey(db,
TermInfo
.WellKnownStrings.KeyPageDown, ConsoleKey.PageDown);
138
AddKey(db,
TermInfo
.WellKnownStrings.KeyPageUp, ConsoleKey.PageUp);
139
AddKey(db,
TermInfo
.WellKnownStrings.KeyPrint, ConsoleKey.Print);
140
AddKey(db,
TermInfo
.WellKnownStrings.KeyRight, ConsoleKey.RightArrow);
141
AddKey(db,
TermInfo
.WellKnownStrings.KeyScrollForward, ConsoleKey.PageDown, shift: true, alt: false, control: false);
142
AddKey(db,
TermInfo
.WellKnownStrings.KeyScrollReverse, ConsoleKey.PageUp, shift: true, alt: false, control: false);
143
AddKey(db,
TermInfo
.WellKnownStrings.KeySBegin, ConsoleKey.Home, shift: true, alt: false, control: false);
144
AddKey(db,
TermInfo
.WellKnownStrings.KeySDelete, ConsoleKey.Delete, shift: true, alt: false, control: false);
145
AddKey(db,
TermInfo
.WellKnownStrings.KeySHome, ConsoleKey.Home, shift: true, alt: false, control: false);
146
AddKey(db,
TermInfo
.WellKnownStrings.KeySelect, ConsoleKey.Select);
147
AddKey(db,
TermInfo
.WellKnownStrings.KeySLeft, ConsoleKey.LeftArrow, shift: true, alt: false, control: false);
148
AddKey(db,
TermInfo
.WellKnownStrings.KeySPrint, ConsoleKey.Print, shift: true, alt: false, control: false);
149
AddKey(db,
TermInfo
.WellKnownStrings.KeySRight, ConsoleKey.RightArrow, shift: true, alt: false, control: false);
150
AddKey(db,
TermInfo
.WellKnownStrings.KeyUp, ConsoleKey.UpArrow);
180
private static string GetTitle(
TermInfo
.Database db)
183
string? tsl = db.GetString(
TermInfo
.WellKnownStrings.ToStatusLine);
184
string? fsl = db.GetString(
TermInfo
.WellKnownStrings.FromStatusLine);
224
private void AddKey(
TermInfo
.Database db,
TermInfo
.WellKnownStrings keyId, ConsoleKey key)
229
private void AddKey(
TermInfo
.Database db,
TermInfo
.WellKnownStrings keyId, ConsoleKey key, bool shift, bool alt, bool control)
236
private void AddPrefixKey(
TermInfo
.Database db, string extendedNamePrefix, ConsoleKey key)
248
private void AddKey(
TermInfo
.Database db, string extendedName, ConsoleKey key, bool shift, bool alt, bool control)