ter_set