[elinks-users] No gpm mouse

2009-01-03 Thread Dave Wood
I can't seem to get elinks to recognise gpm mouse. I didn't compile with
and mouse features disabled, but it just doesn't see it. I tried changing
permissions on /dev/gpmctl to 777 to see if it helped.

I think it works in X just not gpm, any ideas?

-- 
Whom computers would destroy, they must first drive mad.

___
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users


Re: [elinks-users] Mouseless mode ?

2009-01-03 Thread Andre Majorel
On 2009-01-01 16:18 +0100, Andre Majorel wrote:

> Happy new year everybody. Trying to run Elinks over ssh and, for
> some reason, the new instance blocks on start-up while trying to
> connect() to /dev/gpmctl. I don't need mouse input. Is there
> something you can put in elinks.conf to prevent Elinks from
> looking for a mouse ?

The wait on /dev/gpmctl happens in Gpm_Open().

Gpm_Open() is called unconditionally by init_mouse().

init_mouse() is called uncondtionally by handle_mouse().

handle_mouse() is called unconditionally by enable_mouse().

enable_mouse() is called from toggle_mouse() (irrelevant) and from
handle_trm() (unless Elinks was started with -remote).

So the answer to the question "is there something you can put in
elinks.conf to prevent Elinks from looking for a mouse ?" would be
"resistance is futile ; there is nothing you can do to prevent
Elinks from looking for a mouse".

That's rather unfortunate as Gpm_Open makes Elinks unusable from
inside screen(1), at least on my system.

-- 
André Majorel http://www.teaser.fr/~amajorel/>
___
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users


Re: [elinks-users] youtube.com in ELinks?

2009-01-03 Thread Dave Wood
On (19:50 03/01/09), Witold Filipczyk  put forth the 
proposition:
>On Sat, Jan 03, 2009 at 06:12:01PM +, Dave Wood wrote:
>> I've just caught the tail end of this thread since I haven't been on the
>> list very long.
>> 
>> I copied all the .js files in smjs to ~/.elinks/ but on youtube I get a
>> message saying my flash player is too old and another saying javascript is
>> turned off.
>> 
>> Is there something else I need to do to get this working?
>> 
>> I'm using the current-0.13 from git as of today 3rd Jan and didn't specify
>> any extra compile options.
>
>Here is the youtube2.js. To get the better quality one could add
>+ '&fmt=18' or even + '&fmt=22' after t[1].
>
>/* Play videos at YouTube with minimal niggling. Just load the page for a 
>video,
> * and the video will automatically be loaded. */
>function load_youtube(cached, vs) {
>   var par = 
> cached.uri.match(/http:\/\/\w+\.youtube\.com\/watch\?v=([^&]+).*/);
>   if (!par) return true;
>
>   var t = cached.content.match(/, \"t\": \"([^"]+)\"/);
>   if (!t) return true;
>
>   var url = 'http://uk.youtube.com/get_video?video_id=' +  par[1] + '&t=' 
> + t[1];
>
>   cached.content = 'View';
>
>   return true;
>}
>elinks.preformat_html_hooks.push(load_youtube);
>
>/* When one tries to follow a link to ,
> * redirect to , which has the information
> * that is necessary to get the actual video file. */
>function redirect_embedded_youtube(uri) {
>   var uri_match = uri.match(/http:\/\/\w+\.youtube\.com\/v\/([^&]+).*/);
>   if (!uri_match) {
>   return true;
>   }
>   return 'http://uk.youtube.com/watch?v=' + uri_match[1];
>}
>elinks.follow_url_hooks.push(redirect_embedded_youtube);
>/* end of file */
>
>The last few lines of the ~/.elinks/hooks.js:
>
>do_file(elinks.home + 'smartprefixes_bookmarks.js');
>do_file(elinks.home + 'smartprefixes_classic.js');
>do_file(elinks.home + 'youtube2.js');
>
>The ELinks was built this way:
>./autogen.sh && CFLAGS="-g2" ./configure --prefix=$HOME \
>   --enable-debug \
>   --disable-backtrace \
>   --enable-true-color \
>   --enable-256-colors \
>   --without-lzma \
>   --enable-bittorrent \
>   --without-x \
>   --enable-cgi \
>   --without-lua \
>   --with-python && make V=1
>
>I don't know whether the --without-lua is meaningful here.
>It works for me.
>Does Scripting(SpiderMonkey ECMAScript) is shown in the About?

Yes thanks. I'm downloading my first video now :)

I rebuilt a package using these options:

src2pkg -REAL -C -W -e="--enable-bittorrent \
--enable-cgi \
--enable-finger \
--enable-fsp \
--enable-gopher \
--enable-nntp \
--enable-smb \
--enable-88-colors \
--enable-256-colors \
--enable-true-color \
--enable-exmode \
--enable-html-highlight \
--enable-fastmem  \
--enable-combining" elinks-current-0.13.tar.bz2

Cheers

>
>Witek
>___
>elinks-users mailing list
>elinks-users@linuxfromscratch.org
>http://linuxfromscratch.org/mailman/listinfo/elinks-users

-- 
A physicist is an atom's way of knowing about atoms.
-- George Wald

___
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users


Re: [elinks-users] youtube.com in ELinks?

2009-01-03 Thread Witold Filipczyk
On Sat, Jan 03, 2009 at 06:12:01PM +, Dave Wood wrote:
> I've just caught the tail end of this thread since I haven't been on the
> list very long.
> 
> I copied all the .js files in smjs to ~/.elinks/ but on youtube I get a
> message saying my flash player is too old and another saying javascript is
> turned off.
> 
> Is there something else I need to do to get this working?
> 
> I'm using the current-0.13 from git as of today 3rd Jan and didn't specify
> any extra compile options.

Here is the youtube2.js. To get the better quality one could add
+ '&fmt=18' or even + '&fmt=22' after t[1].

/* Play videos at YouTube with minimal niggling. Just load the page for a video,
 * and the video will automatically be loaded. */
function load_youtube(cached, vs) {
var par = 
cached.uri.match(/http:\/\/\w+\.youtube\.com\/watch\?v=([^&]+).*/);
if (!par) return true;

var t = cached.content.match(/, \"t\": \"([^"]+)\"/);
if (!t) return true;

var url = 'http://uk.youtube.com/get_video?video_id=' +  par[1] + '&t=' 
+ t[1];

cached.content = 'View';

return true;
}
elinks.preformat_html_hooks.push(load_youtube);

/* When one tries to follow a link to ,
 * redirect to , which has the information
 * that is necessary to get the actual video file. */
function redirect_embedded_youtube(uri) {
var uri_match = uri.match(/http:\/\/\w+\.youtube\.com\/v\/([^&]+).*/);
if (!uri_match) {
return true;
}
return 'http://uk.youtube.com/watch?v=' + uri_match[1];
}
elinks.follow_url_hooks.push(redirect_embedded_youtube);
/* end of file */

The last few lines of the ~/.elinks/hooks.js:

do_file(elinks.home + 'smartprefixes_bookmarks.js');
do_file(elinks.home + 'smartprefixes_classic.js');
do_file(elinks.home + 'youtube2.js');

The ELinks was built this way:
./autogen.sh && CFLAGS="-g2" ./configure --prefix=$HOME \
--enable-debug \
--disable-backtrace \
--enable-true-color \
--enable-256-colors \
--without-lzma \
--enable-bittorrent \
--without-x \
--enable-cgi \
--without-lua \
--with-python && make V=1

I don't know whether the --without-lua is meaningful here.
It works for me.
Does Scripting(SpiderMonkey ECMAScript) is shown in the About?

Witek
___
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users


Re: [elinks-users] youtube.com in ELinks?

2009-01-03 Thread Dave Wood
On (17:54 03/01/09), Witold Filipczyk  put forth the 
proposition:
>On Fri, Jan 02, 2009 at 08:39:19PM +0100, Lars Bjørndal wrote:
>> Hello, list, and a happy new year to everyone!
>> 
>> Thomas Adam  writes:
>> 
>> > On 19/09/2007, cga2000  wrote:
>> >> I was wondering if there is any way I can cause ELinks to invoke a
>> >> media player when the selected link is something like:
>> >>
>> >> http://www.youtube.com/watch?v=ZbfrL4L5GME
>> >
>> > Look in:
>> >
>> > contrib/smjs
>> >
>> > In the ELinks source tarball (or a GIT clone).  Assuming you compile
>> > in spidermonkey support you can use the "youtube.js" file contained
>> > therein.
>> 
>> I've tried that, but I cannot get it working. One of the links I've
>> tried, is the link: http://de.youtube.com/watch?v=GWpV7L4YHuU
>> 
>> I've put the hook.js and youtube.js files into my .elinks directory
>> and restarted Elinks (version 0.13-GIT from three days ago) Could the
>> problem be that the characters ".de." is preceding youtube.com in the
>> link? Or maybe this is not possible at all from a poor console? I'd
>> like to use mplayer, if possible. Should that be possible to do?
>
>I added the youtube2.js to the elinks-0.13. It shows a page with a link
>instead of the "refresh". In the hooks.js add:
>do_file("youtube2.js"); Anyway the ELinks always download the whole file
>before playing.

I've just caught the tail end of this thread since I haven't been on the
list very long.

I copied all the .js files in smjs to ~/.elinks/ but on youtube I get a
message saying my flash player is too old and another saying javascript is
turned off.

Is there something else I need to do to get this working?

I'm using the current-0.13 from git as of today 3rd Jan and didn't specify
any extra compile options.


>
>Witek
>___
>elinks-users mailing list
>elinks-users@linuxfromscratch.org
>http://linuxfromscratch.org/mailman/listinfo/elinks-users

-- 
Winter is the season in which people try to keep the house as warm as
it was in the summer, when they complained about the heat.

___
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users


Re: [elinks-users] youtube.com in ELinks?

2009-01-03 Thread Witold Filipczyk
On Fri, Jan 02, 2009 at 08:39:19PM +0100, Lars Bjørndal wrote:
> Hello, list, and a happy new year to everyone!
> 
> Thomas Adam  writes:
> 
> > On 19/09/2007, cga2000  wrote:
> >> I was wondering if there is any way I can cause ELinks to invoke a
> >> media player when the selected link is something like:
> >>
> >> http://www.youtube.com/watch?v=ZbfrL4L5GME
> >
> > Look in:
> >
> > contrib/smjs
> >
> > In the ELinks source tarball (or a GIT clone).  Assuming you compile
> > in spidermonkey support you can use the "youtube.js" file contained
> > therein.
> 
> I've tried that, but I cannot get it working. One of the links I've
> tried, is the link: http://de.youtube.com/watch?v=GWpV7L4YHuU
> 
> I've put the hook.js and youtube.js files into my .elinks directory
> and restarted Elinks (version 0.13-GIT from three days ago) Could the
> problem be that the characters ".de." is preceding youtube.com in the
> link? Or maybe this is not possible at all from a poor console? I'd
> like to use mplayer, if possible. Should that be possible to do?

I added the youtube2.js to the elinks-0.13. It shows a page with a link
instead of the "refresh". In the hooks.js add:
do_file("youtube2.js"); Anyway the ELinks always download the whole file
before playing.

Witek
___
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users