Adding statuscmd patch ref. #23
This commit is contained in:
@@ -110,6 +110,9 @@
|
||||
#if STACKER_PATCH
|
||||
#include "stacker.c"
|
||||
#endif
|
||||
#if STATUSCMD_PATCH
|
||||
#include "statuscmd.c"
|
||||
#endif
|
||||
#if STICKY_PATCH
|
||||
#include "sticky.c"
|
||||
#endif
|
||||
|
@@ -113,6 +113,9 @@
|
||||
#if STACKER_PATCH
|
||||
#include "stacker.h"
|
||||
#endif
|
||||
#if STATUSCMD_PATCH
|
||||
#include "statuscmd.h"
|
||||
#endif
|
||||
#if STICKY_PATCH
|
||||
#include "sticky.h"
|
||||
#endif
|
||||
|
17
patch/statuscmd.c
Normal file
17
patch/statuscmd.c
Normal 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';
|
||||
}
|
1
patch/statuscmd.h
Normal file
1
patch/statuscmd.h
Normal file
@@ -0,0 +1 @@
|
||||
static void copyvalidchars(char *text, char *rawtext);
|
Reference in New Issue
Block a user