@@ -93,51 +93,48 @@ public static TerminalWindow CreateWindow(string title) {
93
93
/// <summary>
94
94
/// Writes something (<see cref="object.ToString"/>) to the terminal, with a style.
95
95
/// </summary>
96
- /// <typeparam name="T">The type of what to write (<see cref="object.ToString"/>).</typeparam>
97
96
/// <param name="text">The thing to write to the terminal.</param>
98
97
/// <param name="style">The text decoration to use.</param>
99
- public static void Write < T > ( T ? text , Style ? style = null ) {
98
+ public static void Write ( object ? text , Style ? style = null ) {
100
99
Out . Write ( ( style ?? new Style ( ) ) . ToANSI ( ) + text ? . ToString ( ) + ANSI . Styles . ResetAll ) ;
101
100
}
102
101
/// <summary>
103
102
/// Writes something (<see cref="object.ToString"/>) to the terminal, with a style.
104
103
/// </summary>
105
- /// <typeparam name="T">The type of what to write (<see cref="object.ToString"/>).</typeparam>
106
104
/// <param name="text">The thing to write to the terminal.</param>
107
105
/// <param name="style">The text decoration to use.</param>
108
- public static void WriteLine < T > ( T ? text , Style ? style = null ) {
106
+ public static void WriteLine ( object ? text , Style ? style = null ) {
109
107
Out . WriteLine ( ( style ?? new Style ( ) ) . ToANSI ( ) + text ? . ToString ( ) + ANSI . Styles . ResetAll ) ;
110
108
}
111
109
/// <summary>
112
110
/// Writes a line to the terminal, with a style.
113
111
/// </summary>
114
112
/// <param name="style">The text decoration to use.</param>
115
113
public static void WriteLine ( Style ? style = null ) {
116
- WriteLine < object > ( null , style ) ;
114
+ WriteLine ( null , style ) ;
117
115
}
118
116
/// <summary>
119
117
/// Writes something (<see cref="object.ToString"/>) to the error stream, with a style.
120
118
/// </summary>
121
119
/// <typeparam name="T">The type of what to write (<see cref="object.ToString"/>).</typeparam>
122
120
/// <param name="text">The text to write to the error output stream.</param>
123
121
/// <param name="style">The style to use (default: with red foreground).</param>
124
- public static void WriteErrorLine < T > ( T ? text , Style ? style = null ) {
122
+ public static void WriteErrorLine < T > ( object ? text , Style ? style = null ) {
125
123
Error . WriteLine ( ( style ?? new Style { ForegroundColor = Colors . Red } ) . ToANSI ( ) + text ? . ToString ( ) + ANSI . Styles . ResetAll ) ;
126
124
}
127
125
/// <summary>
128
126
/// Writes a line to the error stream, with a style.
129
127
/// </summary>
130
128
/// <param name="style">The text decoration to use (default: with red foreground).</param>
131
129
public static void WriteErrorLine ( Style ? style = null ) {
132
- WriteLine < object > ( null , style ) ;
130
+ WriteLine ( null , style ) ;
133
131
}
134
132
/// <summary>
135
133
/// Writes something (<see cref="object.ToString"/>) to the error stream, with a style.
136
134
/// </summary>
137
- /// <typeparam name="T">The type of what to write (<see cref="object.ToString"/>).</typeparam>
138
135
/// <param name="text">The text to write to the error output stream.</param>
139
136
/// <param name="style">The style to use (default: with red foreground).</param>
140
- public static void WriteError < T > ( T ? text , Style ? style = null ) {
137
+ public static void WriteError ( object ? text , Style ? style = null ) {
141
138
Error . Write ( ( style ?? new Style { ForegroundColor = Colors . Red } ) . ToANSI ( ) + text ? . ToString ( ) + ANSI . Styles . ResetAll ) ;
142
139
}
143
140
/// <summary>
@@ -160,23 +157,21 @@ public static (int x, int y) GetCursorPosition() {
160
157
/// <summary>
161
158
/// Sets the something (<see cref="object.ToString"/>) at a <paramref name="pos"/>, with a <paramref name="style"/>.
162
159
/// </summary>
163
- /// <typeparam name="T"></typeparam>
164
160
/// <param name="text">The thing to set at <paramref name="pos"/> to the terminal.</param>
165
161
/// <param name="pos">The position to set <paramref name="text"/> at.</param>
166
162
/// <param name="style">The text decoration to use.</param>
167
- public static void Set < T > ( T ? text , ( int x , int y ) pos , Style ? style = null ) {
163
+ public static void Set ( object ? text , ( int x , int y ) pos , Style ? style = null ) {
168
164
Goto ( pos ) ;
169
165
Write ( text , style ) ;
170
166
}
171
167
172
168
/// <summary>
173
169
/// Sets the something in the error stream (<see cref="object.ToString"/>) at a <paramref name="pos"/>, with a <paramref name="style"/>.
174
170
/// </summary>
175
- /// <typeparam name="T"></typeparam>
176
171
/// <param name="text">The thing to set at <paramref name="pos"/> to the terminal.</param>
177
172
/// <param name="pos">The position to set <paramref name="text"/> at.</param>
178
173
/// <param name="style">The text decoration to use.</param>
179
- public static void SetError < T > ( T ? text , ( int x , int y ) pos , Style ? style = null ) {
174
+ public static void SetError ( object ? text , ( int x , int y ) pos , Style ? style = null ) {
180
175
Goto ( pos ) ;
181
176
WriteError ( text , style ) ;
182
177
}
0 commit comments