new-words
view misc/nw-shell @ 55:2a1a25e61872
new-words.py can be used without wrapper; several features are not still implemented
| author | Igor Chubin <igor@chub.in> | 
|---|---|
| date | Thu Nov 03 15:53:59 2011 +0100 (2011-11-03) | 
| parents | |
| children | 
 line source
     1 TEMP=`mktemp /tmp/nw-shell-XXXXXX`
     2 ~/hg/new-words/new-words-py.sh -n -l de "$1" | grep -v '^#' > "$TEMP"
     3 rlwrap -f "$TEMP" sh -c '
     4     while true; 
     5     do 
     6         printf "\033[01;33m > " ;
     7         read word options || { exit; printf "\033[00m" ; } ;
     8         printf "\033[00m" ;
     9         de $word; 
    10     done'
    11 rm $TEMP
