extern struct display *get_named_tty_display P_ ((char *));
EXFUN (Fdisplay_tty_type, 1);
extern struct display *init_initial_display P_ ((void));
-extern struct display *term_init P_ ((char *, char *, int));
+extern struct display *init_tty P_ ((char *, char *, int));
extern void delete_tty P_ ((struct display *));
extern void fatal P_ ((/* char *, ... */));
extern void cursor_to P_ ((struct frame *, int, int));
struct frame *f = XFRAME (selected_frame);
/* Open a display on the controlling tty. */
- d = term_init (0, terminal_type, 1); /* Errors are fatal. */
+ d = init_tty (0, terminal_type, 1); /* Errors are fatal. */
/* Convert the initial frame to use the new display. */
if (f->output_method != output_initial)
type[SBYTES (tty_type)] = 0;
}
- d = term_init (name, type, 0); /* Errors are not fatal. */
+ d = init_tty (name, type, 0); /* Errors are not fatal. */
}
f = make_terminal_frame (d);
/* Setup one of the standard tty color schemes according to MODE.
MODE's value is generally the number of colors which we want to
support; zero means set up for the default capabilities, the ones
- we saw at term_init time; -1 means turn off color support. */
+ we saw at init_tty time; -1 means turn off color support. */
void
tty_setup_colors (struct tty_display_info *tty, int mode)
{
If MUST_SUCCEED is true, then all errors are fatal. */
struct display *
-term_init (char *name, char *terminal_type, int must_succeed)
+init_tty (char *name, char *terminal_type, int must_succeed)
{
char *area;
char **address = &area;
/* If we already have an active display on the given device, use that.
If all displays are suspended, create a new one instead. */
- /* XXX Perhaps this should be made explicit by having term_init
+ /* XXX Perhaps this should be made explicit by having init_tty
always create a new display and separating display and frame
creation on Lisp level. */
display = get_named_tty_display (name);
#endif /* not WINDOWSNT */
}
-/* Auxiliary error-handling function for term_init.
+/* Auxiliary error-handling function for init_tty.
Free BUFFER and delete DISPLAY, then call error or fatal
with str1 or str2, respectively, according to MUST_SUCCEED. */