Add a "Config *" argument to term_init(), and use that instead of the global