VOOZH about

URL: https://www.geeksforgeeks.org/c-sharp/c-sharp-how-to-change-the-visibility-of-the-cursor-of-console/

⇱ C# | How to change the visibility of the Cursor of Console - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

C# | How to change the visibility of the Cursor of Console

Last Updated : 28 Jan, 2019
Given the normal Console in C#, the task is to change the visibility of the Cursor of the Console. Approach: This can be done using the CursorVisible property in the Console class of the System package in C#. It gets or sets a value indicating whether the cursor is visible. Program 1: Getting the value of CursorVisible Output: 👁 Image
Program 2: Setting the value of CursorVisible
Output: 👁 Image
Comment
Article Tags:

Explore