restore deprecated cell_extended_gcluster to ABI

This commit is contained in:
nick black 2021-04-18 13:21:32 -04:00
parent eefc4fb91f
commit c0af379683
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
3 changed files with 7 additions and 8 deletions

View File

@ -824,10 +824,8 @@ cell_wide_left_p(const nccell* c){
// returns NULL if called on a pixel graphic. // returns NULL if called on a pixel graphic.
API const char* nccell_extended_gcluster(const struct ncplane* n, const nccell* c); API const char* nccell_extended_gcluster(const struct ncplane* n, const nccell* c);
__attribute__ ((deprecated)) static inline const char* __attribute__ ((deprecated)) API const char*
cell_extended_gcluster(const struct ncplane* n, const nccell* c){ cell_extended_gcluster(const struct ncplane* n, const nccell* c);
return nccell_extended_gcluster(n, c);
}
// copy the UTF8-encoded EGC out of the nccell. the result is not tied to any // copy the UTF8-encoded EGC out of the nccell. the result is not tied to any
// ncplane, and persists across erases / destruction. // ncplane, and persists across erases / destruction.

View File

@ -1307,6 +1307,10 @@ const char* nccell_extended_gcluster(const ncplane* n, const nccell* c){
return egcpool_extended_gcluster(&n->pool, c); return egcpool_extended_gcluster(&n->pool, c);
} }
const char* cell_extended_gcluster(const struct ncplane* n, const nccell* c){
return nccell_extended_gcluster(n, c);
}
// 'n' ends up above 'above' // 'n' ends up above 'above'
int ncplane_move_above(ncplane* restrict n, ncplane* restrict above){ int ncplane_move_above(ncplane* restrict n, ncplane* restrict above){
if(n == above){ if(n == above){

View File

@ -52,10 +52,7 @@ apply_term_heuristics(tinfo* ti, const char* termname){
termname = "unknown"; termname = "unknown";
} }
ti->braille = true; // most everyone has working braille, even from fonts ti->braille = true; // most everyone has working braille, even from fonts
if(strcmp(termname, "foot") == 0){ if(strstr(termname, "kitty")){ // kitty (https://sw.kovidgoyal.net/kitty/)
ti->sextants = true;
ti->quadrants = true;
}else if(strstr(termname, "kitty")){ // kitty (https://sw.kovidgoyal.net/kitty/)
// see https://sw.kovidgoyal.net/kitty/protocol-extensions.html // see https://sw.kovidgoyal.net/kitty/protocol-extensions.html
// FIXME detect the actual default background color; this assumes it to // FIXME detect the actual default background color; this assumes it to
// be RGB(0, 0, 0) (the default). we could also just set it, i guess. // be RGB(0, 0, 0) (the default). we could also just set it, i guess.