freebsd: don't use sextants, no libc support #1287

pull/1293/head
nick black 4 years ago
parent 8c508bbb5a
commit fa3c17abb9
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -189,9 +189,9 @@ int sliding_puzzle_demo(struct notcurses* nc){
goto done;
}
DEMO_RENDER(nc);
struct timespec ts = { .tv_sec = 0, .tv_nsec = NANOSECS_IN_SEC, };
/*struct timespec ts = { .tv_sec = 0, .tv_nsec = NANOSECS_IN_SEC, };
// fade out each of the chunks in succession
/*for(cy = 0 ; cy < CHUNKS_VERT ; ++cy){
for(cy = 0 ; cy < CHUNKS_VERT ; ++cy){
for(cx = 0 ; cx < CHUNKS_HORZ ; ++cx){
const int idx = cy * CHUNKS_HORZ + cx;
if(ncplane_fadeout(chunks[idx], &ts)){
@ -201,7 +201,7 @@ int sliding_puzzle_demo(struct notcurses* nc){
}*/
// shuffle up the chunks
int i;
demo_nanosleep(nc, &ts);
demo_nanosleep(nc, &demodelay);
for(i = 0 ; i < 200 ; ++i){
int i0 = random() % chunkcount;
int i1 = random() % chunkcount;

@ -59,6 +59,10 @@ apply_term_heuristics(tinfo* ti, const char* termname){
}else if(strstr(termname, "vte") || strstr(termname, "gnome")){
ti->sextants = true; // VTE has long enjoyed good sextant support
}
// as of freebsd 12.1 / dragonfly 5.9, there's no libc support for sextants
#if defined(__FreeBSD__) || defined(__DragonFly__)
ti->sextants = false;
#endif
return 0;
}

Loading…
Cancel
Save