coronacommit

This commit is contained in:
2020-05-13 12:38:06 +02:00
parent 10b2f53b85
commit 4bd4e1c43f
5 changed files with 33 additions and 12 deletions

View File

@@ -3,6 +3,7 @@
*/
#include <stdio.h>
#include <unistd.h>
#include "nclooper.h"
@@ -13,11 +14,32 @@ extern int verbosity;
/* --------------------------------------------------------------------- */
int enter_interactive(SampleRef *psmpl, int notused)
{
int foo, row, col;
char txt[99];
#if DEBUG_LEVEL
fprintf(stderr, ">>> %s ( %p %d )\n", __func__, psmpl, notused);
#endif
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);
return -1;
}
/* --------------------------------------------------------------------- */