kill() is not available on Windows. Now that we build TerminalPanel
everywhere (see
87e8d0ba), we need to #ifdef this call.
if (!m_clearTerminal) {
// The TerminalV2 interface does not provide a way to delete the
// current line before sending a new input. This is mandatory,
if (!m_clearTerminal) {
// The TerminalV2 interface does not provide a way to delete the
// current line before sending a new input. This is mandatory,
kill(processId, SIGINT);
}
}
kill(processId, SIGINT);
}
}
m_terminal->sendInput(" cd " + KShell::quoteArg(dir) + '\n');
m_terminal->sendInput(" cd " + KShell::quoteArg(dir) + '\n');