Adding statuscmd patch ref. #23

This commit is contained in:
bakkeby
2020-04-13 14:59:58 +02:00
parent d258c3bb69
commit 525dc0d107
8 changed files with 149 additions and 21 deletions

17
patch/statuscmd.c Normal file
View File

@@ -0,0 +1,17 @@
static char rawstext[256];
static const char statusexport[] = "export BUTTON=-;";
static int statuscmdn;
static int lastbutton;
void
copyvalidchars(char *text, char *rawtext)
{
int i = -1, j = 0;
while (rawtext[++i]) {
if ((unsigned char)rawtext[i] >= ' ') {
text[j++] = rawtext[i];
}
}
text[j] = '\0';
}