[Script] Update example and doc.

This commit is contained in:
Dave Davenport 2020-04-07 13:20:16 +02:00
parent de38e0f4a9
commit 7587149950
4 changed files with 8 additions and 4 deletions

View File

@ -6,7 +6,11 @@ then
fi fi
# Override the previously set prompt. # Override the previously set prompt.
echo -en "\x00delim\x1f\\x1\n" # We only want to do this on first call of script.
if [ $ROFI_RETV = 0 ]
then
echo -en "\x00delim\x1f\\x1\n"
fi
echo -en "\x00prompt\x1fChange prompt\x1" echo -en "\x00prompt\x1fChange prompt\x1"
for a in {1..10} for a in {1..10}
do do

View File

@ -103,7 +103,7 @@ The following extra options exists:
.IP \(bu 2 .IP \(bu 2
\fBactive\fP: Mark rows as active. (for syntax see the active option in dmenu mode) \fBactive\fP: Mark rows as active. (for syntax see the active option in dmenu mode)
.IP \(bu 2 .IP \(bu 2
\fBdelim\fP: Set the delimiter for for next rows. Default is '\\n' and this option should finish with this. \fBdelim\fP: Set the delimiter for for next rows. Default is '\\n' and this option should finish with this. Only call this on first call of script, it is remembered for consecutive calls.
.SH Parsing row options .SH Parsing row options
.PP .PP

View File

@ -77,7 +77,7 @@ The following extra options exists:
* **markup-rows**: If 'true' renders markup in the row. * **markup-rows**: If 'true' renders markup in the row.
* **urgent**: Mark rows as urgent. (for syntax see the urgent option in dmenu mode) * **urgent**: Mark rows as urgent. (for syntax see the urgent option in dmenu mode)
* **active**: Mark rows as active. (for syntax see the active option in dmenu mode) * **active**: Mark rows as active. (for syntax see the active option in dmenu mode)
* **delim**: Set the delimiter for for next rows. Default is '\n' and this option should finish with this. * **delim**: Set the delimiter for for next rows. Default is '\n' and this option should finish with this. Only call this on first call of script, it is remembered for consecutive calls.
## Parsing row options ## Parsing row options

View File

@ -108,7 +108,7 @@ static void parse_header_entry ( Mode *sw, char *line, ssize_t length )
length_key++; length_key++;
} }
if ( length_key < length ) { if ( (length_key+1) < length ) {
line[length_key] = '\0'; line[length_key] = '\0';
char *value = line + length_key + 1; char *value = line + length_key + 1;
if ( strcasecmp ( line, "message" ) == 0 ) { if ( strcasecmp ( line, "message" ) == 0 ) {