[ncls] emit a newline following each image

This commit is contained in:
nick black 2021-03-21 17:42:43 -04:00
parent f658629a1b
commit b8ab28c60f
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 2 additions and 1 deletions

View File

@ -420,7 +420,7 @@ write_sixel_data(FILE* fp, int lenx, sixeltable* stab){
// \x90: 8-bit "device control sequence", lowercase q (start sixel)
// doesn't seem to work with at least xterm; we instead use '\ePq'
// FIXME i think we can print DESDM on the first one, and never again
fprintf(fp, "\e[?80h\ePq");
//fprintf(fp, "\e[?80h\ePq");
// Set Raster Attributes - pan/pad=1 (pixel aspect ratio), Ph=lenx, Pv=leny
// using Ph/Pv causes a background to be drawn using color register 0 for all

View File

@ -153,6 +153,7 @@ void ncls_thread(const lsContext* ctx) {
if(faken){
ctx->nc.raster_image(faken, ctx->alignment);
}
std::cout << '\n';
pthread_mutex_unlock(&outmtx);
}else if(!keep_working){
pthread_mutex_unlock(&mtx);