sdlterm/demo.cc
changeset 50 c5b8b9d2da95
parent 48 1f00e90fd72a
child 51 dce7325109c1
--- a/sdlterm/demo.cc	Sat Jan 05 16:47:30 2013 +0100
+++ b/sdlterm/demo.cc	Sat Jan 05 18:44:56 2013 +0100
@@ -19,7 +19,13 @@
 	term.resize(800, 600);
 	term.select_font("font/DejaVuSansMono.ttf", "font/DejaVuSansMono-Bold.ttf", 12);
 	term.erase();
-	term.putch(5, 5, 'W');
+	term.set_attr( term.prepare_attr(14, 1, 1) );
+
+	char hello[] = "Hello World!";
+	for (char *c = hello; *c; c++)
+	{
+		term.putch(5 + (c - hello), 5, *c);
+	}
 	term.commit();
 }