Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How do I schedule the reloading of a page when using a terminal browser?

using any of: Elinks, w3m etc

share|improve this question
    
I chased an old document which mentioned "set document.browse.refresh = 1", however its "1" (true) by default and its to enable allowing the document to be refreshed by the webpage from javascript, rather than some auto refreshing feature. –  ClothSword Oct 8 '13 at 11:31

1 Answer 1

up vote 2 down vote accepted

As far as I know, these browsers do not support programmed reloading, however it can easily be accomplished by using a terminal multiplexer like tmux. For example if you start the browser in one terminal like this:

tmux new-session -s browse 'w3m google.com'

Then you can send commands to it from another terminal with the send-keys command. So to make w3m reload the current page do this:

tmux send-keys -t browse R
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.