Skip to content

Commit

Permalink
fix B ansi code #553
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jan 1, 2020
1 parent 95612b8 commit 08f52ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/unix_formatting.js
Expand Up @@ -1011,7 +1011,7 @@
cursor.y -= value;
break;
case 'B': // Down
cursor.y = value;
cursor.y += value;
break;
case 'C': // forward
cursor.x += value;
Expand Down Expand Up @@ -1048,6 +1048,9 @@
if (cursor.x < 0) {
cursor.x = 0;
}
if (cursor.y < 0) {
cursor.y = 0;
}
}
/*
inst_o: function(s) {console.log('osc', s);},
Expand Down

0 comments on commit 08f52ec

Please sign in to comment.