tty-run-terminal-initialization

tty-run-terminal-initialization is a compiled Lisp function in `faces.el'.

(tty-run-terminal-initialization FRAME &optional TYPE RUN-HOOK)

Run the special initialization code for the terminal type of FRAME.
The optional TYPE parameter may be used to override the autodetected
terminal type to a different value.

This consults `term-file-aliases' to map terminal types to their aliases.

If optional argument RUN-HOOK is non-nil, then as a final step,
this runs the hook `tty-setup-hook'.

If you set `term-file-prefix' to nil, this function does nothing.