Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /oinitdisplay.c [df890e] .. [815a60] Maximize Restore

  Switch to side-by-side view

--- a/oinitdisplay.c
+++ b/oinitdisplay.c
@@ -172,11 +172,17 @@
    to point to NULL. */
 int iodestroydisplay(iodisplay *display)
 {
+    /* Free the buffer memory */
 	free(display->buffer);
 	free(display->oldBuffer);
 
 	display->buffer = display->oldBuffer = NULL;
 
+	/* Clear the terminal to default settings */
+	printf("\033[00m");
+	printf("\033[?25h");
+	printf("\033[2J");
+
 	return 0;
 }