Example #1
0
/*
 * Screen_RedrawHelpLine
 *
 */
static VALUE
rb_ext_Screen_RedrawHelpLine(VALUE self)
{
    newtRedrawHelpLine();

    return Qnil;
}
Example #2
0
void newtPopHelpLine(void) {
    if (!currentHelpline) return;

    free(*currentHelpline);
    if (currentHelpline == helplineStack)
	currentHelpline = NULL;
    else
	currentHelpline--;

    newtRedrawHelpLine();
}
void newtPushHelpLine(const char * text) {
    if (!text)
	text = defaultHelpLine;

    if (currentHelpline)
	(*(++currentHelpline)) = strdup(text);
    else {
	currentHelpline = helplineStack;
	*currentHelpline = strdup(text);
    }

    newtRedrawHelpLine();
}
Example #4
0
void newtPushHelpLine(const char * text) {
    if (currentHelpline && currentHelpline - helplineStack + 1
	    >= sizeof (helplineStack) / sizeof (char *))
	return;

    if (!text)
	text = defaultHelpLine;

    if (currentHelpline)
	(*(++currentHelpline)) = strdup(text);
    else {
	currentHelpline = helplineStack;
	*currentHelpline = strdup(text);
    }

    newtRedrawHelpLine();
}