Skip to content

Instantly share code, notes, and snippets.

@saitoha
Created July 28, 2014 05:26
Show Gist options
  • Save saitoha/53ee368980bb06ec9eb1 to your computer and use it in GitHub Desktop.
Save saitoha/53ee368980bb06ec9eb1 to your computer and use it in GitHub Desktop.
recterm: fix odd behavior with 'print "\033[1;80HA\033[2;80HB";cat'
diff --git a/terminal.h b/terminal.h
index 9a08666..704d34c 100644
--- a/terminal.h
+++ b/terminal.h
@@ -172,6 +172,7 @@ void set_cursor(struct terminal *term, int y, int x)
term->cursor.x = x;
term->cursor.y = y;
+ term->wrap_occured = false;
}
const struct glyph_t *drcsch(struct terminal *term, uint32_t code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment