Skip to content

Instantly share code, notes, and snippets.

View masarugen's full-sized avatar
💭
dot

Hashizume Masaru masarugen

💭
dot
View GitHub Profile
@saitoha
saitoha / screen-osc-utf8.diff
Created July 19, 2012 13:31
Unicode(UTF-8) support for GNU Screen's OSC/AKA/hardstatus.
diff --git a/src/ansi.c b/src/ansi.c
index d88e153..fc42a0a 100644
--- a/src/ansi.c
+++ b/src/ansi.c
@@ -1493,8 +1493,24 @@ int c;
{
if (curr->w_stringp >= curr->w_string + MAXSTR - 1)
curr->w_state = LIT;
+# ifdef UTF8
+ else if (c < 0x80)