-dinput(void) {
- cleanup();
- argp[0] = "dinput";
- argp[1] = text;
- execvp("dinput", argp);
- eprint("cannot exec dinput\n");
+drawitem(const char *s, unsigned long col[ColLast]) {
+ const char *p;
+ unsigned int w = textnw(&dc, text, strlen(text));
+
+ drawbox(&dc, col);
+ drawtext(&dc, s, col);
+ for(p = fstrstr(s, text); *text && (p = fstrstr(p, text)); p++)
+ drawline(&dc, textnw(&dc, s, p-s) + dc.h/2 - 1, dc.h-2, w, 1, col);