MCPcopy Create free account
hub / github.com/gwsw/less / pr_string

Function pr_string

prompt.c:567–579  ·  view source on GitHub ↗

* Return a prompt. * This depends on the prompt type (SHORT, MEDIUM, LONG), etc. * If we can't come up with an appropriate prompt, return NULL * and the caller will prompt with a colon. */

Source from the content-addressed store, hash-verified

565 * and the caller will prompt with a colon.
566 */
567 public char *
568pr_string(VOID_PARAM)
569{
570 char *prompt;
571 int type;
572
573 type = (!less_is_more) ? pr_type : pr_type ? 0 : 1;
574 prompt = pr_expand((ch_getflags() & CH_HELPFILE) ?
575 hproto : prproto[type],
576 sc_width-so_s_width-so_e_width-2);
577 new_file = 0;
578 return (prompt);
579}
580
581/*
582 * Return a message suitable for printing while waiting in the F command.

Callers 1

promptFunction · 0.85

Calls 1

ch_getflagsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…