mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-02 09:40:15 +00:00
restore deprecated cell_extended_gcluster to ABI
This commit is contained in:
parent
eefc4fb91f
commit
c0af379683
@ -824,10 +824,8 @@ cell_wide_left_p(const nccell* c){
|
||||
// returns NULL if called on a pixel graphic.
|
||||
API const char* nccell_extended_gcluster(const struct ncplane* n, const nccell* c);
|
||||
|
||||
__attribute__ ((deprecated)) static inline const char*
|
||||
cell_extended_gcluster(const struct ncplane* n, const nccell* c){
|
||||
return nccell_extended_gcluster(n, c);
|
||||
}
|
||||
__attribute__ ((deprecated)) API const char*
|
||||
cell_extended_gcluster(const struct ncplane* n, const nccell* c);
|
||||
|
||||
// copy the UTF8-encoded EGC out of the nccell. the result is not tied to any
|
||||
// ncplane, and persists across erases / destruction.
|
||||
|
@ -1307,6 +1307,10 @@ const char* nccell_extended_gcluster(const ncplane* n, const nccell* 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'
|
||||
int ncplane_move_above(ncplane* restrict n, ncplane* restrict above){
|
||||
if(n == above){
|
||||
|
@ -52,10 +52,7 @@ apply_term_heuristics(tinfo* ti, const char* termname){
|
||||
termname = "unknown";
|
||||
}
|
||||
ti->braille = true; // most everyone has working braille, even from fonts
|
||||
if(strcmp(termname, "foot") == 0){
|
||||
ti->sextants = true;
|
||||
ti->quadrants = true;
|
||||
}else if(strstr(termname, "kitty")){ // kitty (https://sw.kovidgoyal.net/kitty/)
|
||||
if(strstr(termname, "kitty")){ // kitty (https://sw.kovidgoyal.net/kitty/)
|
||||
// see https://sw.kovidgoyal.net/kitty/protocol-extensions.html
|
||||
// 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.
|
||||
|
Loading…
Reference in New Issue
Block a user