Top |
ChafaTermDb * | chafa_term_db_new () |
ChafaTermDb * | chafa_term_db_copy () |
void | chafa_term_db_ref () |
void | chafa_term_db_unref () |
ChafaTermDb * | chafa_term_db_get_default () |
ChafaTermInfo * | chafa_term_db_detect () |
ChafaTermInfo * | chafa_term_db_get_fallback_info () |
A ChafaTermDb contains information on terminals, and can be used to obtain a suitable ChafaTermInfo for a terminal environment.
ChafaTermDb *
chafa_term_db_new (void
);
Creates a new, blank ChafaTermDb.
Since: 1.6
ChafaTermDb *
chafa_term_db_copy (const ChafaTermDb *term_db
);
Creates a new ChafaTermDb that's a copy of term_db
.
Since: 1.6
void
chafa_term_db_ref (ChafaTermDb *term_db
);
Adds a reference to term_db
.
Since: 1.6
void
chafa_term_db_unref (ChafaTermDb *term_db
);
Removes a reference from term_db
.
Since: 1.6
ChafaTermDb *
chafa_term_db_get_default (void
);
Gets the global ChafaTermDb. This can normally be used safely in a read-only capacity. The caller should not unref the returned object.
Since: 1.6
ChafaTermInfo * chafa_term_db_detect (ChafaTermDb *term_db
,gchar **envp
);
Builds a new ChafaTermInfo with capabilities implied by the provided environment variables (principally the TERM variable, but also others).
envp
can be gotten from g_get_environ()
.
Since: 1.6
ChafaTermInfo *
chafa_term_db_get_fallback_info (ChafaTermDb *term_db
);
Builds a new ChafaTermInfo with fallback control sequences. This can be used with unknown but presumably modern terminals, or to supplement missing capabilities in a detected terminal.
Fallback control sequences may cause unpredictable behavior and should only be used as a last resort.
Since: 1.6