Signed-off-by: Chris Davis <cd.rattan@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
return c;
}
+static void regedit_panic_handler(const char *msg)
+{
+ endwin();
+ smb_panic_s3(msg);
+}
+
static void display_window(TALLOC_CTX *mem_ctx, struct registry_context *ctx)
{
struct regedit *regedit;
cbreak();
noecho();
+ fault_configure(regedit_panic_handler);
+
colors = has_colors();
if (colors) {
start_color();