summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-10-24 23:01:22 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-10-25 00:03:17 +0200
commit98a5fcaac2ee51ff3966cd1956c8bcbca7267033 (patch)
tree9aeaf7e6cbc11f86db40d05d846bcc633fc7868a
parenta49113ae68a82cf266ab465c0559ef7867467bdb (diff)
downloadneetdraw-98a5fcaac2ee51ff3966cd1956c8bcbca7267033.tar.gz
neetdraw-98a5fcaac2ee51ff3966cd1956c8bcbca7267033.tar.xz
neetdraw-98a5fcaac2ee51ff3966cd1956c8bcbca7267033.zip
Fix the ANSI SGR export
-rw-r--r--autistdraw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/autistdraw.c b/autistdraw.c
index 4f1b6e4..191570a 100644
--- a/autistdraw.c
+++ b/autistdraw.c
@@ -382,6 +382,9 @@ export_ansi (app_context_t *app)
color = new_color;
fputc (' ', fp);
}
+
+ // We need to reset the attributes
+ fputs (color_to_ansi (0), fp);
fputc ('\n', fp);
}