ncls: don't flush output after each line

pull/1232/head
nick black 4 years ago
parent ded14ac190
commit 0fb455f0ee
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -43,7 +43,7 @@ handle_path(int dirfd, std::filesystem::path& dir, const char* p, const lsContex
static int static int
handle_inode(std::filesystem::path& dir, const char* p, const struct stat* st, const lsContext& ctx){ handle_inode(std::filesystem::path& dir, const char* p, const struct stat* st, const lsContext& ctx){
(void)st; // FIXME handle symlink (dereflinks) (void)st; // FIXME handle symlink (dereflinks)
std::cout << p << std::endl; std::cout << p << '\n';
auto s = dir / p; auto s = dir / p;
ctx.nc.render_image(s.c_str(), ctx.alignment, NCBLIT_DEFAULT, NCSCALE_SCALE); ctx.nc.render_image(s.c_str(), ctx.alignment, NCBLIT_DEFAULT, NCSCALE_SCALE);
return 0; return 0;

@ -19,7 +19,7 @@ int main(void){
return EXIT_FAILURE; return EXIT_FAILURE;
} }
printf("%08x ", i); printf("%08x ", i);
if(++e % 6 == 0){ if(++e % 8 == 0){
printf("\n"); printf("\n");
} }
} }

Loading…
Cancel
Save