aboutsummaryrefslogtreecommitdiffhomepage
path: root/libslang/modules/newt.sl
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2011-10-14 04:55:05 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2011-10-14 04:55:05 +0200
commit6aa0e0017d7d0cddc006da885946934b06949a91 (patch)
tree66b688ec32e2f91266db760b1762f2a50cc52036 /libslang/modules/newt.sl
parenta966db5b71328f6adf9dd767e64b322a3bd7ed9c (diff)
downloaderlang-slang-fork-6aa0e0017d7d0cddc006da885946934b06949a91.tar.gz
include libslang-1.4.9 and automatically build it and link erlang-slang against it
few (erlang) people will still have libslang-1.4.9 installed or spend time to get it to link against the driver
Diffstat (limited to 'libslang/modules/newt.sl')
-rw-r--r--libslang/modules/newt.sl14
1 files changed, 14 insertions, 0 deletions
diff --git a/libslang/modules/newt.sl b/libslang/modules/newt.sl
new file mode 100644
index 0000000..0864d5e
--- /dev/null
+++ b/libslang/modules/newt.sl
@@ -0,0 +1,14 @@
+import ("newt");
+
+newtInit ();
+%newtCls ();
+newtDrawRootText (0, 0, "Root Text");
+newtOpenWindow (3,4,20, 20, "First Window");
+newtOpenWindow (8, 10,20, 20, "Second Window");
+
+newtRefresh ();
+sleep (5);
+NewtFinished ();
+
+exit (0);
+