* Bug 671900 — Folks should not suggest linking contacts from telepathy-salut
* Bug 670872 — Should be less sensitive to accentuated chars
* Bug 669984 — Does not notify when contacts are added to groups
+* Bug 660235 — Consistent signal handlers to a terminal would be cool
Overview of changes from libfolks 0.6.6 to libfolks 0.6.7
=============================================================
return 1;
}
- /* Create the client and run the command. */
+ /* Create the client. */
main_client = new Client ();
+ /* Set up signal handling. */
+ Unix.signal_add (Posix.SIGTERM, () =>
+ {
+ /* Quit the client and let that exit the process. */
+ main_client.quit ();
+
+ return false;
+ });
+
+ /* Run the command. */
if (args.length == 1)
{
main_client.run_interactive ();
assert_not_reached ();
});
+ /* Handle SIGINT. */
+ Unix.signal_add (Posix.SIGINT, () =>
+ {
+ /* Tidy up. */
+ Readline.free_line_state ();
+ Readline.cleanup_after_signal ();
+ Readline.reset_after_signal ();
+
+ /* Display a fresh prompt. */
+ stdout.printf ("^C");
+ Readline.crlf ();
+ Readline.reset_line_state ();
+ Readline.replace_line ("", 0);
+ Readline.redisplay ();
+
+ return true;
+ });
+
/* Allow things to be set for folks-inspect in ~/.inputrc, and install our
* own completion function. */
Readline.readline_name = "folks-inspect";