Ryujinx-GtkSharp/sample/VteTest.cs
John Luke 625a4481cc 2004-01-17 John Luke <jluke@cfl.rr.com>
* configure.in: detect and compile vte-sharp  (require vte-0.11.10)
	* vte/*:
	* sources/makefile:
	* sources/gtk-sharp-sources.xml: add vte
	* samples/VteTest.cs: add incomplete test/sample
	* samples/Makefile.in: add vte-test.exe target

svn path=/trunk/gtk-sharp/; revision=22213
2004-01-17 22:47:35 +00:00

52 lines
982 B
C#

using System;
using Gtk;
using GtkSharp;
using Gnome;
using GnomeSharp;
using Vte;
using VteSharp;
class T
{
Program program;
static void Main (string[] args)
{
new T (args);
}
T (string[] args)
{
program = new Program ("test", "0.0", Modules.UI, args);
App app = new App ("test", "Test for vte widget");
app.SetDefaultSize (600, 450);
app.DeleteEvent += new DeleteEventHandler (OnAppDelete);
ScrolledWindow sw = new ScrolledWindow ();
Terminal term = new Terminal ();
term.CursorBlinks = true;
term.ScrollOnOutput = true;
//term.BackgroundTransparent = true;
term.Encoding = "UTF-8";
Console.WriteLine (term.UsingXft);
Console.WriteLine (term.Encoding);
Console.WriteLine (term.StatusLine);
sw.AddWithViewport (term);
app.Contents = sw;
app.ShowAll ();
program.Run ();
}
private void OnTextInserted (object o, EventArgs args)
{
}
private void OnAppDelete (object o, DeleteEventArgs args)
{
program.Quit ();
}
}