version 1.25, 2020/05/16 15:01:31 |
version 1.26, 2020/05/16 15:06:03 |
|
|
} while ((name == NULL || *name == '-') && md->choice != old); |
} while ((name == NULL || *name == '-') && md->choice != old); |
c->flags |= CLIENT_REDRAWOVERLAY; |
c->flags |= CLIENT_REDRAWOVERLAY; |
return (0); |
return (0); |
|
case KEYC_BSPACE: |
|
if (~md->flags & MENU_TAB) |
|
break; |
|
return (1); |
|
case '\011': /* Tab */ |
|
if (~md->flags & MENU_TAB) |
|
break; |
|
if (md->choice == count - 1) |
|
return (1); |
|
/* FALLTHROUGH */ |
case KEYC_DOWN: |
case KEYC_DOWN: |
case 'j': |
case 'j': |
if (old == -1) |
if (old == -1) |
|
|
} while ((name == NULL || *name == '-') && md->choice != old); |
} while ((name == NULL || *name == '-') && md->choice != old); |
c->flags |= CLIENT_REDRAWOVERLAY; |
c->flags |= CLIENT_REDRAWOVERLAY; |
return (0); |
return (0); |
|
case 'g': |
|
case KEYC_PPAGE: |
|
case '\002': /* C-b */ |
|
if (md->choice > 5) |
|
md->choice -= 5; |
|
else |
|
md->choice = 0; |
|
while (md->choice != count && (name == NULL || *name == '-')) |
|
md->choice++; |
|
if (md->choice == count) |
|
md->choice = -1; |
|
c->flags |= CLIENT_REDRAWOVERLAY; |
|
break; |
|
case 'G': |
|
case KEYC_NPAGE: |
|
if (md->choice > count - 6) |
|
md->choice = count - 1; |
|
else |
|
md->choice += 5; |
|
while (md->choice != -1 && (name == NULL || *name == '-')) |
|
md->choice--; |
|
c->flags |= CLIENT_REDRAWOVERLAY; |
|
break; |
|
case '\006': /* C-f */ |
|
break; |
case '\r': |
case '\r': |
goto chosen; |
goto chosen; |
case '\033': /* Escape */ |
case '\033': /* Escape */ |