Created
March 7, 2010 12:43
-
-
Save toshiharu/324350 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env seed | |
| Gtk = imports.gi.Gtk; | |
| Vte = imports.gi.Vte; | |
| Gtk.init(Seed.argv); | |
| var window = new Gtk.Window(); | |
| var vte = new Vte.Terminal(); | |
| vte.fork_command("/bin/bash"); | |
| window.add(vte); | |
| window.show_all(); | |
| Gtk.main(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GJS version - The
.fork_command()function has been replaced with.spawn_syncin the VTE libraries for anyone who is interested