summaryrefslogtreecommitdiff
path: root/src/ansi.c
diff options
context:
space:
mode:
authorSadrul Habib Chowdhury <sadrul@users.sourceforge.net>2010-04-01 15:25:03 -0400
committerSadrul Habib Chowdhury <sadrul@users.sourceforge.net>2010-04-01 15:25:03 -0400
commit869278e490913531a98602b8bec5cc08831aa46d (patch)
tree2e3c802ce9ac51e5c7a29389fed2c7b34b64f6dc /src/ansi.c
parent7ec27de25cc83b2189965584352edb660da00338 (diff)
parenta881bb274ae2d3c4027ae61e1707576bc8d35cab (diff)
downloadscreen-869278e490913531a98602b8bec5cc08831aa46d.tar.gz
Merge branch 'master' into unicode++
Diffstat (limited to 'src/ansi.c')
-rw-r--r--src/ansi.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ansi.c b/src/ansi.c
index e8178f8..2486e77 100644
--- a/src/ansi.c
+++ b/src/ansi.c
@@ -81,10 +81,10 @@ struct mchar mchar_null;
struct mchar mchar_blank = {' ' /* , 0, 0, ... */};
struct mchar mchar_so = {' ', A_SO /* , 0, 0, ... */};
-int renditions[NUM_RENDS] = {65529 /* =ub */, 65531 /* =b */};
+int renditions[NUM_RENDS] = {65529 /* =ub */, 65531 /* =b */, 65533 /* =u */ };
/* keep string_t and string_t_string in sync! */
-static char *string_t_string[] =
+static char *string_t_string[] =
{
"NONE",
"DCS", /* Device control string */
@@ -943,6 +943,7 @@ register int c;
case '\n':
if (curr->w_autoaka)
FindAKA();
+ case '\013': /* Vertical tab is the same as Line Feed */
LineFeed(0);
return 1;
case '\007':
@@ -1377,6 +1378,9 @@ int c, intermediate;
break;
case 3: /* COLM: column mode */
i = (i ? Z0width : Z1width);
+ ClearScreen();
+ curr->w_x = 0;
+ curr->w_y = 0;
WChangeSize(curr, i, curr->w_height);
cols = curr->w_width;
rows = curr->w_height;