Re: [gtk-list] GemVt again!



On  7 Nov, Tim Janik wrote:
> please give it a hard time and post bug-reports like hell ;))

Hi Tim, here's a patch to improve compilation under Solaris.

Are you planning to add a back buffer+scrollbar ? That's the thing I
miss most. Apart from that it works quite well. I have to set
TERM=xterm-color manually, though, as it just sets it to dumb.
 

Tristan
-- 
Tristan Tarrant                                          ttarrant@etnoteam.it
Il software e' come il sesso. E' meglio|Software is like sex. It's better
quando e' libero.                      |when it's free.
                                  Linus Torvalds
diff -u gemvt-0.0.1/gtkterm.c gemvt-0.0.2/gtkterm.c
--- gemvt-0.0.1/gtkterm.c	Fri Nov  7 05:14:48 1997
+++ gemvt-0.0.2/gtkterm.c	Fri Nov  7 10:07:57 1997
@@ -18,6 +18,7 @@
  * License along with this library; if not, write to the Free
  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
+#include <stdio.h>
 #include "gtkterm.h"
 #include <gtk/gtkmain.h>
 #include <gtk/gtksignal.h>
diff -u gemvt-0.0.1/gtkttyos.c gemvt-0.0.2/gtkttyos.c
--- gemvt-0.0.1/gtkttyos.c	Fri Nov  7 03:46:56 1997
+++ gemvt-0.0.2/gtkttyos.c	Fri Nov  7 10:09:47 1997
@@ -21,6 +21,7 @@
 #include <sys/types.h>
 #include <fcntl.h>
 #include <grp.h>
+#include <unistd.h>
 #include <termios.h>
 #include <sys/ioctl.h>
 #include <sys/stat.h>
diff -u gemvt-0.0.1/main.c gemvt-0.0.2/main.c
--- gemvt-0.0.1/main.c	Fri Nov  7 04:46:59 1997
+++ gemvt-0.0.2/main.c	Fri Nov  7 10:07:06 1997
@@ -24,7 +24,6 @@
 #include	<unistd.h>
 #include	<string.h>
 
-
 /* --- typedefs --- */
 typedef struct
 {
@@ -77,11 +76,13 @@
 static GtkWidget	*time_label;
 static GtkWidget	*signal_button;
 static gchar		*prg_name;
+extern char             **environ;
 
 /* --- main() --- */
 int
 main	(int	argc,
-	 char	*argv[])
+	 char	*argv[],
+	 char   *envp[])
 {
   GtkWidget	*window;
   GtkWidget	*main_vbox;
@@ -97,7 +98,7 @@
   GtkWidget	*button;
   guchar	*message;
   guint		i;
-
+  
   prg_name = g_strdup (argv[0]);
   
   /* gtk/gdk initialization
@@ -351,7 +352,7 @@
       }
       argv[i] = NULL;
 
-      unsetenv ("TERM");
+      putenv ("TERM=");
       
       gtk_tty_execute (tty, prg, argv, environ);
       


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]