You can use the Console.CursorSize property to change the "thickness" of the cursor.
The above respective MSDN page gives all the information you need, plus an example. Just note one thing though: if you change the cursor size in your application and then exit, it remains at that size, unless you change it explicitly back (or use the CMD
window`s properties to do so).
Example (rudimentary to illustrate the point):
public static void Main()
{
int originalSize = Console.CursorSize;
try
{
Console.CursorSize = 100; // Use "full" cursor
...
}
finally
{
// make sure we leave the cursor size as we found it.
Console.CursorSize = originalSize;
}
}
Finally, another word of warning: If you redirect the output of your application to a file or a pipe (>
or |
), the Console.CursorSize
property will raise an IOException
. Keep that in mind when thinking about how your application will be used.