1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00
rofi/Examples/test_script_mode_delim.sh

21 lines
352 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2023-01-16 12:42:48 -05:00
if [[ "$@" = "quit" ]]
then
exit 0
fi
# Override the previously set prompt.
2020-04-07 07:20:16 -04:00
# We only want to do this on first call of script.
2023-01-16 12:42:48 -05:00
if [[ $ROFI_RETV = 0 ]]
2020-04-07 07:20:16 -04:00
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"