From 6a6a55286143d08359b451eb111ceaade6c4d3b4 Mon Sep 17 00:00:00 2001 From: John Luke Date: Sun, 18 Jan 2004 00:54:08 +0000 Subject: [PATCH] change return type of ForkCommand to gint update sample to use ForkCommand, still missing signals svn path=/trunk/gtk-sharp/; revision=22216 --- sample/VteTest.cs | 12 +++++++++++- vte/Vte.metadata | 1 + vte/vte-api.xml | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/sample/VteTest.cs b/sample/VteTest.cs index e6bf354e8..fca49c2e0 100644 --- a/sample/VteTest.cs +++ b/sample/VteTest.cs @@ -25,13 +25,23 @@ class T ScrolledWindow sw = new ScrolledWindow (); Terminal term = new Terminal (); term.CursorBlinks = true; - term.ScrollOnOutput = true; + term.MouseAutohide = true; + term.ScrollOnKeystroke = true; //term.BackgroundTransparent = true; term.Encoding = "UTF-8"; Console.WriteLine (term.UsingXft); Console.WriteLine (term.Encoding); Console.WriteLine (term.StatusLine); + + string argv = Environment.GetCommandLineArgs () [0]; + + string envv = ""; + // FIXME: send the env vars to ForkCommand + Console.WriteLine (Environment.GetEnvironmentVariables ().Count); + + int pid = term.ForkCommand ("/bin/bash", argv, envv, "/home/jluke", false, true, true); + Console.WriteLine ("Child pid: " + pid); sw.AddWithViewport (term); diff --git a/vte/Vte.metadata b/vte/Vte.metadata index 2004dbfad..646a652c1 100644 --- a/vte/Vte.metadata +++ b/vte/Vte.metadata @@ -1,3 +1,4 @@ 1 + gint diff --git a/vte/vte-api.xml b/vte/vte-api.xml index b238a6cd4..9f8d8aa0a 100644 --- a/vte/vte-api.xml +++ b/vte/vte-api.xml @@ -266,7 +266,7 @@ - +