Steffen Nurpmeso <[email protected]> > Can anybody tell me how i can disable timeouts? > I do have > > NO_PAUSE=on > no_pause=on > infosecs=0.25 > messagesecs=0.25 > alertsecs=0.25 > > in my ~/.lynxrc, and (reformatted by bash): > > translate () > { > ( [ $# -le 1 ] || { > echo 'Synopsis: translate WORD' 1>&2; > exit 1 > }; > i=lynx; > command -v lynx-redux > /dev/null 2>&1 && i=lynx-redux; > exec $i https://m.dict.cc/deen/?s="$*" ) > } > > and if i say say "translate hochsommer" (german) then i get three > or four message displays in the footer, plus a cookie, and then > more, so that it takes seconds before i get the result.
If you run it with `lynx -dump [-nolist] ...` -- the delays are avoided. The output may not be most pleasing, but could be piped through `less`, `sed` or other scripts to clean it up, stuff like that. This isn't helpful if you actually tend to follow further links offered by that page; but if you just want static output, it's fine. >Bela< PS: writing this without actually testing the consequences -- you've got most of this function wrapped in `( ... )`, putting it in a subshell; which allows you to then `exit 1` without actually causing your interactive shell to exit. I think the same effect could be had by removing the framing `( ... )`; changing it to `return 1`; and omitting `exec`.
