2019-12-24 03:55:31 +11:00
|
|
|
/*
|
|
|
|
* NCLOOPER INTERACTIVE
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
2020-05-13 21:38:06 +11:00
|
|
|
#include <unistd.h>
|
2019-12-24 03:55:31 +11:00
|
|
|
|
|
|
|
#include "nclooper.h"
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
extern int verbosity;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------- */
|
|
|
|
int enter_interactive(SampleRef *psmpl, int notused)
|
|
|
|
{
|
2020-05-13 21:38:06 +11:00
|
|
|
int foo, row, col;
|
|
|
|
char txt[99];
|
2019-12-24 03:55:31 +11:00
|
|
|
|
|
|
|
#if DEBUG_LEVEL
|
|
|
|
fprintf(stderr, ">>> %s ( %p %d )\n", __func__, psmpl, notused);
|
|
|
|
#endif
|
|
|
|
|
2020-05-13 21:38:06 +11:00
|
|
|
|
|
|
|
for (foo=0; foo<26; foo++) {
|
|
|
|
|
|
|
|
idx2position(foo, &row, &col);
|
|
|
|
sprintf(txt, "%3d", foo);
|
|
|
|
mvaddstr(row, col, txt);
|
|
|
|
|
|
|
|
if (psmpl[foo].key) {
|
|
|
|
standout();
|
|
|
|
mvaddch(row, col+4, psmpl[foo].key);
|
|
|
|
standend();
|
|
|
|
}
|
|
|
|
|
|
|
|
refresh();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
sleep(3);
|
|
|
|
|
2019-12-24 03:55:31 +11:00
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
/* --------------------------------------------------------------------- */
|