samples/robot/input.sh
#!/usr/bin/env bash

sleep 1

# Down
echo -e "\e[B"
sleep .1
echo -e "\e[B"
sleep .1
echo -e "\e[B"

# Right
sleep .4
echo -e "\e[C"
sleep .1
echo -e "\e[C"
sleep .1
echo -e "\e[C"

# Down to bottom
sleep .4
echo -e "\e[B"
sleep .1
echo -e "\e[B"
sleep .1
echo -e "\e[B"
sleep .1
echo -e "\e[B"
sleep .1
echo -e "\e[B"
sleep .1
echo -e "\e[B"

# Right to edge
sleep .4
echo -e "\e[C"
sleep .1
echo -e "\e[C"
sleep .1
echo -e "\e[C"
sleep .1
echo -e "\e[C"
sleep .1
echo -e "\e[C"
sleep .1
echo -e "\e[C"
sleep .1
echo -e "\e[C"
sleep .1
echo -e "\e[C"
sleep .1
echo -e "\e[C"
sleep .1
echo -e "\e[C"
sleep .1
echo -e "\e[C"
sleep .1
echo -e "\e[C"
sleep .1
echo -e "\e[C"
sleep .1
echo -e "\e[C"

# Up
sleep 1
echo -e "\e[A"
sleep .1
echo -e "\e[A"
sleep .1
echo -e "\e[A"

# Left
sleep .4
echo -e "\e[D"
sleep .1
echo -e "\e[D"
sleep .1
echo -e "\e[D"
sleep .1
echo -e "\e[D"
sleep .1
echo -e "\e[D"
sleep .1
echo -e "\e[D"
sleep .1
echo -e "\e[D"
sleep .1
echo -e "\e[D"
sleep .1
echo -e "\e[D"
sleep .1
echo -e "\e[D"
sleep .1
echo -e "\e[D"

echo "q"
