.TH TICKIT_TERM_NEW 3 .SH NAME tickit_term_new \- create a new terminal instance .SH SYNOPSIS .EX .B #include .sp .BI "TickitTerm *tickit_term_new(void);" .BI "TickitTerm *tickit_term_new_for_termtype(const char *" termtype ); .EE .sp Link with \fI\-ltickit\fP. .SH DESCRIPTION \fBtickit_term_new\fP() creates a new \fBTickitTerm\fP instance for the terminal type given by the \fBTERM\fP environment variable. .PP \fBtickit_term_new_for_termtype\fP() creates a new \fBTickitTerm\fP instance for the given terminal type. .PP The reference count of a newly-constructed terminal instance will be one. This can be incremented or decremented using \fBtickit_term_ref\fP(3) and \fBtickit_term_unref\fP(3). When its reference count reaches zero it is destroyed. .SH "RETURN VALUE" If successful, \fBtickit_term_new\fP() and \fBtickit_term_new_for_termtype\fP() return a pointer to the new instance. On failure, \fBNULL\fP is returned with \fIerrno\fP set to indicate the failure. .SH "SEE ALSO" .BR tickit_term_open_stdio (3), .BR tickit_term_set_output_fd (3), .BR tickit_term_set_output_func (3), .BR tickit_term_set_input_fd (3), .BR tickit_term_print (3), .BR tickit_term_bind_event (3), .BR tickit_term (7), .BR tickit (7)