Implement @get-text

This commit is contained in:
Kovid Goyal
2018-01-09 22:48:24 +05:30
parent 6ad49bd7fb
commit e5b9bd2e5a
4 changed files with 70 additions and 9 deletions

View File

@@ -244,6 +244,7 @@ line_as_ansi(Line *self, Py_UCS4 *buf, index_type buflen) {
#define WRITE_CH(val) if (i > buflen - 1) return i; buf[i++] = val;
index_type limit = xlimit_for_line(self), i=0;
if (limit == 0) return 0;
char_type previous_width = 0;
WRITE_SGR("0");