make lines reformattable

- completely removed the old textbuffer representation (
  https://github.com/shabble/irssi-docs/wiki/Notes-256-Colour#textbuffer-encoding
  )

- textbuffer-formats is an extra module, so if we unhook the signals it
  should go back to the "old way" of storing pre-rendered tex

- design uses cache, original formats and list of arguments
This commit is contained in:
ailin-nemui 2019-08-13 14:59:30 +02:00
commit f95fc81130
21 changed files with 789 additions and 587 deletions

View file

@ -25,7 +25,8 @@ OUTPUT:
RETVAL
void
textbuffer_line_get_text(line, coloring)
textbuffer_line_get_text(buffer, line, coloring)
Irssi::TextUI::TextBuffer buffer
Irssi::TextUI::Line line
int coloring
PREINIT:
@ -33,7 +34,7 @@ PREINIT:
SV *result;
PPCODE:
str = g_string_new(NULL);
textbuffer_line2text(line, coloring, str);
textbuffer_line2text(buffer, line, coloring, str);
result = new_pv(str->str);
XPUSHs(sv_2mortal(result));
g_string_free(str, TRUE);