2020-04-01 07:58:01 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2023-01-16 12:42:48 -05:00
|
|
|
if [[ "$@" = "quit" ]]
|
2020-04-01 07:58:01 -04:00
|
|
|
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
|
2023-06-12 13:07:00 -04:00
|
|
|
echo -en "\x00message\x1fmy line1\nmyline2\nmy line3\x1"
|
2020-04-01 07:58:01 -04:00
|
|
|
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"
|