Deze website werkt beter met JavaScript.
Beginscherm
Help
Inloggen
cacalabs
/
libcaca
kopie van
https://github.com/cacalabs/libcaca.git
Volgen
1
Ster
0
Vork
0
Code
Kwesties
0
Publicaties
7
Wiki
Activiteit
Bladeren bron
* Add linebreaks to the ANSI exporter for better readability, and use
the save/load cursor position trick to ignore them.
tags/v0.99.beta14
Sam Hocevar
sam
19 jaren geleden
bovenliggende
5612b86ce6
commit
ca5c87ae1b
1 gewijzigde bestanden
met
toevoegingen van 5
en
1 verwijderingen
Zij-aan-zij weergave
Diff opties
Statistieken weergeven
Download Patch-bestand
Download Diff-bestand
+5
-1
cucul/export.c
+ 5
- 1
cucul/export.c
Bestand weergeven
@@ -319,7 +319,11 @@ static void export_ansi(cucul_canvas_t *cv, cucul_buffer_t *ex)
prevbg = bg;
}
if(cv->width != 80)
if(cv->width == 80)
{
cur += sprintf(cur, "\033[s\n\033[u");
}
else
{
cur += sprintf(cur, "\033[0m\r\n");
prevfg = -1;
Schrijf
Voorbeeld
Laden…
Annuleren
Opslaan