Add a command for firing GUI callbacks synthetically
[pipeglade.git] / echo.sh
blob413945aad8f9b820801facc8ddb0a2487b17ec9d
1 #! /usr/bin/env bash
3 export LC_ALL=C
5 FIN=to-g.fifo
6 FOUT=from-g.fifo
8 ./pipeglade -i $FIN -o $FOUT &
10 # wait for $FIN and $FOUT to appear
11 while test ! \( -e $FIN -a -e $FOUT \); do :; done
13 while test -e $FIN -a -e $FOUT; do
14 read line <$FOUT
15 echo "textview2:text_view:insert_at_cursor $line\\n" >$FIN
16 echo "textview2:text_view:scroll_to_cursor\\n" >$FIN
17 done