summaryrefslogtreecommitdiffstats
path: root/Examples/test_script_mode_delim.sh
blob: d5ff26e888a5f8c600e57f4835173af4bf2e19c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash

if [ x"$@" = x"quit" ]
then
    exit 0
fi

# Override the previously set prompt.
# 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"
for a in {1..10}
do
    echo -en "$a\x1"
done
echo -en "newline\ntest\x1"
echo -en "quit"