mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-08 01:10:23 +00:00
notcurses-info: print braille one at a time #1929
This commit is contained in:
parent
a705dfd0ff
commit
19f7726075
@ -47,7 +47,11 @@ tinfo_debug_style(struct ncplane* n, const char* name, int style, char ch){
|
||||
static int
|
||||
braille_viz(ncplane* n, const char* l, const wchar_t* egcs, const char* r, const char* indent){
|
||||
ncplane_printf(n, "%s%s", indent, l);
|
||||
ncplane_printf(n, "%.192ls", egcs);
|
||||
for(int i = 0 ; i < 64 ; ++i){
|
||||
if(ncplane_putwc(n, egcs[i]) < 0){
|
||||
ncplane_putwc(n, L' ');
|
||||
}
|
||||
}
|
||||
ncplane_printf(n, "%s ", r);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user