<<< Date Index >>>     <<< Thread Index >>>

Re: Using elinks to view html



On (12:09 03/02/08), Dave Wood <dave@xxxxxxxxxxxxxxx> put forth the proposition:
> On (11:29 03/02/08), Dave Wood <dave@xxxxxxxxxxxxxxx> put forth the 
> proposition:
> > I have set up 2 binds:
> > 
> > macro   index   w |elinks\n 
> > macro   pager   w |elinks\n 
> > 
> > But when I use them elinks opens with a window asking what to do:
> > 
> > open save display etc
> > 
> > If I hit display I get the source code.
> > 
> > I previously used w3m for this and it worked ok, but I prefer to use elinks
> > for a browser and no longer have w3m installed. Any ideas on how to get
> > this working?
> 
> Ok. I have a workaround. I made a bash script:
> 
> #!/bin/bash
> 
> cat "<meta http-equiv=\"Content-Type\" content=\"text/html; \
> charset=utf-8\">" /dev/stdin >> tmp.html
> elinks tmp.html
> rm tmp.html

Better still:

#!/bin/bash

cat /dev/stdin >> tmp.html
elinks tmp.html
rm tmp.html

> 
> Then I pipe it to this.
> 
> Bit of a long-winded way so if anyone has any other ideas that would be
> helpfull.
> 
> Cheers
> 
> > 
> > -- 
> > It's no surprise that things are so screwed up: everyone that knows how
> > to run a government is either driving taxicabs or cutting hair.
> >             -- George Burns
> 
> -- 
> When one woman was asked how long she had been going to symphony
> concerts, she paused to calculate and replied, "Forty-seven years --
> and I find I mind it less and less."
>               -- Louise Andrews Kent

-- 
Albert Einstein, when asked to describe radio, replied: "You see, wire
telegraph is a kind of a very, very long cat.  You pull his tail in New
York and his head is meowing in Los Angeles.  Do you understand this?
And radio operates exactly the same way: you send signals here, they
receive them there.  The only difference is that there is no cat."