MCPcopy Create free account
hub / github.com/git/git / restore_term

Function restore_term

compat/terminal.c:132–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132void restore_term(void)
133{
134 if (term_fd < 0)
135 return;
136
137 tcsetattr(term_fd, TCSAFLUSH, &old_term);
138 close_term_fd();
139 sigchain_pop_common();
140 reset_job_signals();
141}
142
143int save_term(enum save_term_flags flags)
144{

Callers 3

restore_term_on_signalFunction · 0.85
git_terminal_promptFunction · 0.85
read_key_without_echoFunction · 0.85

Calls 6

close_term_fdFunction · 0.85
sigchain_pop_commonFunction · 0.85
reset_job_signalsFunction · 0.85
strvec_pushFunction · 0.85
run_commandFunction · 0.85
string_list_clearFunction · 0.85

Tested by

no test coverage detected