// ----------------------------------------------------------------------- void cchar_term_shutdown(struct cchar_unit_proto_t *unit) { if (unit) { free(UNIT->buf); if (UNIT->term) term_close(UNIT->term); free(UNIT); } }
/* * Tidy and close the terminal ready to leave Zile. */ void term_finish (void) { term_move (term_height () - 1, 0); term_clrtoeol (); term_attrset (FONT_NORMAL); term_refresh (); term_close (); }
void fwin_exit(int return_code) { if (windowed) { wake_up_terminal(FXTerminal::WORKER_EXITING); returncode = return_code; #ifdef WIN32 ExitThread(returncode); #else pthread_exit(&returncode); #endif } if (using_termed) { input_history_end(); term_close(); } exit(return_code); }