/****************************************************************************
- * Copyright (c) 2017 Free Software Foundation, Inc. *
+ * Copyright 2018-2020,2021 Thomas E. Dickey *
+ * Copyright 2017 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
* authorization. *
****************************************************************************/
/*
- * $Id: popup_msg.c,v 1.7 2017/04/15 19:16:41 tom Exp $
+ * $Id: popup_msg.c,v 1.11 2021/12/18 21:19:19 tom Exp $
*
* Show a multi-line message in a window which may extend beyond the screen.
*
#include <popup_msg.h>
+#if HAVE_NEWPAD
+
static WINDOW *old_window;
static void
if ((help = newwin(high, wide, y0, x0)) == 0)
return;
- if ((data = newpad(length + 1, width)) == 0)
+ if ((data = newpad(length + 1, width + 1)) == 0) {
+ delwin(help);
return;
+ }
begin_popup();
{
popup_msg(parent, (const char *const *) msg);
}
+
+#else
+void
+popup_msg(WINDOW *parent, const char *const *msg)
+{
+ (void) parent;
+ (void) msg;
+ beep();
+}
+#endif