Lines Matching +full:123 +full:- +full:db
1 /*-
27 static void db(SCR *, CB *, const char *);
30 * ex_display -- :display b[uffers] | c[onnections] | s[creens] | t[ags]
41 arg = cmdp->argv[0]; in ex_display()
43 switch (arg->bp[0]) { in ex_display()
61 ex_emsg(sp, cmdp->cmd->usage, EXM_USAGE); in ex_display()
66 * is_prefix --
73 return arg->len <= STRLEN(str) && !MEMCMP(arg->bp, str, arg->len); in is_prefix()
77 * bdisplay --
86 if (SLIST_EMPTY(sp->gp->cutq) && sp->gp->dcbp == NULL) { in bdisplay()
87 msgq(sp, M_INFO, "123|No cut buffers to display"); in bdisplay()
92 SLIST_FOREACH(cbp, sp->gp->cutq, q) { in bdisplay()
93 if (isdigit(cbp->name)) in bdisplay()
95 if (!TAILQ_EMPTY(cbp->textq)) in bdisplay()
96 db(sp, cbp, NULL); in bdisplay()
101 SLIST_FOREACH(cbp, sp->gp->cutq, q) { in bdisplay()
102 if (!isdigit(cbp->name)) in bdisplay()
104 if (!TAILQ_EMPTY(cbp->textq)) in bdisplay()
105 db(sp, cbp, NULL); in bdisplay()
110 if ((cbp = sp->gp->dcbp) != NULL) in bdisplay()
111 db(sp, cbp, "default buffer"); in bdisplay()
116 * db --
120 db(SCR *sp, CB *cbp, const char *name) in db() function
127 gp = sp->gp; in db()
129 name == NULL ? KEY_NAME(sp, cbp->name) : name, in db()
131 TAILQ_FOREACH(tp, cbp->textq, q) { in db()
132 for (len = tp->len, p = tp->lb; len--; ++p) { in db()