|
|
@ -5,6 +5,7 @@
|
|
|
|
#include <string.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <pthread.h>
|
|
|
|
#include <pthread.h>
|
|
|
|
|
|
|
|
#include <unictype.h>
|
|
|
|
#include "demo.h"
|
|
|
|
#include "demo.h"
|
|
|
|
|
|
|
|
|
|
|
|
// Fill up the screen with as much crazy Unicode as we can, and then set a
|
|
|
|
// Fill up the screen with as much crazy Unicode as we can, and then set a
|
|
|
@ -506,6 +507,10 @@ int witherworm_demo(struct notcurses* nc){
|
|
|
|
idx += eaten;
|
|
|
|
idx += eaten;
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(uc_bidi_category(wcs)){ // FIXME
|
|
|
|
|
|
|
|
idx += eaten;
|
|
|
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
}
|
|
|
|
int ulen = 0;
|
|
|
|
int ulen = 0;
|
|
|
|
int r;
|
|
|
|
int r;
|
|
|
|
if(wcwidth(wcs) <= maxx - x){
|
|
|
|
if(wcwidth(wcs) <= maxx - x){
|
|
|
|