aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--display.c2
-rw-r--r--pty-unix.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/display.c b/display.c
index 6ef7b9b..f8416cc 100644
--- a/display.c
+++ b/display.c
@@ -165,6 +165,7 @@ void runes_display_show_string(RunesTerm *t, char *buf, size_t len)
cairo_set_source(t->cr, t->bgcolor);
cairo_get_current_point(t->cr, &x, &y);
runes_display_get_font_dimensions(t, &fontx, &fonty, &ascent);
+ /* XXX broken with utf8 */
cairo_rectangle(t->cr, x, y - ascent, fontx * len, fonty);
cairo_fill(t->cr);
cairo_restore(t->cr);
@@ -181,6 +182,7 @@ void runes_display_show_string(RunesTerm *t, char *buf, size_t len)
cairo_restore(t->cr);
}
+ /* XXX broken with utf8 */
t->col += len;
}
}
diff --git a/pty-unix.c b/pty-unix.c
index a5264f9..df53e61 100644
--- a/pty-unix.c
+++ b/pty-unix.c
@@ -43,6 +43,8 @@ void runes_pty_backend_init(RunesTerm *t)
shell = "/bin/sh";
}
+ /* XXX should use a different TERM value eventually, but for right now
+ * screen is compatible enough */
setenv("TERM", "screen", 1);
unsetenv("LINES");
unsetenv("COLUMNS");