<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">Use the real termcap header, rather than faking it.

--- jzip-21-10oct2000/unixio.c	2000-10-05 15:08:10.000000000 +0100
+++ jzip-21-10oct2000/unixio.c	2025-07-04 16:53:12.745805012 +0100
@@ -53,6 +53,9 @@
 #include &lt;sys/select.h&gt;
 #endif
 
+#include &lt;term.h&gt;
+#undef clear_screen
+
 #define EXTENDED 1
 #define PLAIN    2
 
@@ -98,7 +101,6 @@
 #define BELL 7
 
 static void display_string( char *s );
-static int wait_for_char(  );
 static int read_key( int );
 static void set_cbreak_mode( int );
 static void rundown(  );
@@ -113,7 +115,6 @@
 int input_character( int );
 static int wait_for_char( int );
 
-void outc( int );
 void move_cursor( int, int );
 void get_cursor_position( int *, int * );
 void set_attribute( int );
@@ -121,15 +122,9 @@
 
 /* done with editing prototypes */
 
-extern int tgetent(  );
-extern int tgetnum(  );
-extern char *tgetstr(  );
-extern char *tgoto(  );
-extern void tputs(  );
-
-void outc( int c )
+int outc( int c )
 {
-   putchar( c );
+   return putchar( c );
 }                               /* outc */
 
 void initialize_screen(  )
</pre></body></html>