Skip to content

Commit

Permalink
Screen.h:
Browse files Browse the repository at this point in the history
* Adding comments to basic "ANSI escape sequence" screen functions so that it is clear what they actually do. Next step: to merge these functions and specialize if possible so that the function names alone are clear enough.
  • Loading branch information
razterizer committed Oct 14, 2024
1 parent 3aaabc6 commit 7f488f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Screen.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const float pix_ar2 = 1.5f;
const float pix_ar2_sq = pix_ar2*pix_ar;


// Clear screen and send cursor to home position.
void clear_screen()
{
#ifdef _WIN32
Expand All @@ -51,6 +52,7 @@ void clear_screen()
#endif
}

// Send cursor to home position.
void return_cursor()
{
#ifdef _WIN32
Expand All @@ -63,6 +65,7 @@ void return_cursor()
#endif
}

// Clear screen and send cursor to home position.
void restore_cursor()
{
#ifndef _WIN32
Expand Down

0 comments on commit 7f488f0

Please sign in to comment.