From greenshank at hotmail.com Tue Dec 4 00:03:42 2007 From: greenshank at hotmail.com (Joe Green) Date: Tue, 4 Dec 2007 07:03:42 +0000 Subject: [elinks-users] Can't even begin to build elinks Message-ID: I've obviously got something really badly set up, but... I can't build Elinks, as make complains about the contents of the shipped Makefile and gmake is even less use. This is with Elinks 0.11.3 on sparc-sun-solaris2.8 as you'll see below. I know that the "about" web page says that it has been confirmed to work on ?SunOS 5.8 Generic_117350-46 sun4u sparc SUNW,Sun-Fire-480R? and advises one to use gmake instead of make, but as you can see below, gmake didn't help much. (The "about" web page does also mention applying the Elinks patch for bug 950 but that seems only to be relevant at the install stage.) Can anyone suggest where to go from here? Here's what I did: % ./configure checking for aclocal... config/missing aclocal checking for autoconf... config/missing autoconf checking for autoheader... config/missing autoheader checking for gnumake... no checking for gmake... /usr/local/sw_tools/bin/gmake checking for previous build to clean... done checking for "./features.conf"... yes checking for "/users/greenj/elinks-0.11.3/features.conf"... yes checking for gcc... /opt/SUNWspro/bin/cc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... no checking whether /opt/SUNWspro/bin/cc accepts -g... yes checking for /opt/SUNWspro/bin/cc option to accept ANSI C... none needed checking for gawk... no checking for mawk... no checking for nawk... nawk checking for nawk... /bin/nawk checking for ranlib... ranlib checking for a BSD-compatible install... config/install-sh -c checking for cg-commit-id... no checking for sparse... no checking for asciidoc... no checking for xmlto... no checking for jw... no checking for pod2html... /usr/local/sw_tools/bin/pod2html checking for BEOS... no checking for RISCOS... no checking for WIN32... no checking for EMX... no checking for UNIX... yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking how to run the C preprocessor... /opt/SUNWspro/bin/cc -E checking for egrep... egrep checking for ANSI C header files... yes checking for sys/wait.h that is POSIX.1 compatible... yes checking whether time.h and sys/time.h may both be included... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... no checking for unistd.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking for unistd.h... (cached) yes checking sigaction.h usability... no checking sigaction.h presence... no checking for sigaction.h... no checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netinet/in_systm.h usability... yes checking netinet/in_systm.h presence... yes checking for netinet/in_systm.h... yes checking netinet/in_system.h usability... no checking netinet/in_system.h presence... no checking for netinet/in_system.h... no checking netinet/ip.h usability... no checking netinet/ip.h presence... yes configure: WARNING: netinet/ip.h: present but cannot be compiled configure: WARNING: netinet/ip.h: check for missing prerequisite headers? configure: WARNING: netinet/ip.h: see the Autoconf documentation configure: WARNING: netinet/ip.h: section "Present But Cannot Be Compiled" configure: WARNING: netinet/ip.h: proceeding with the preprocessor's result configure: WARNING: netinet/ip.h: in the future, the compiler will take precedence configure: WARNING: ## ------------------------------------------ ## configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ## configure: WARNING: ## ------------------------------------------ ## checking for netinet/ip.h... yes checking net/if.h usability... no checking net/if.h presence... yes configure: WARNING: net/if.h: present but cannot be compiled configure: WARNING: net/if.h: check for missing prerequisite headers? configure: WARNING: net/if.h: see the Autoconf documentation configure: WARNING: net/if.h: section "Present But Cannot Be Compiled" configure: WARNING: net/if.h: proceeding with the preprocessor's result configure: WARNING: net/if.h: in the future, the compiler will take precedence configure: WARNING: ## ------------------------------------------ ## configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ## configure: WARNING: ## ------------------------------------------ ## checking for net/if.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking netinet/in6_var.h usability... no checking netinet/in6_var.h presence... no checking for netinet/in6_var.h... no checking ifaddrs.h usability... no checking ifaddrs.h presence... no checking for ifaddrs.h... no checking sys/cygwin.h usability... no checking sys/cygwin.h presence... no checking for sys/cygwin.h... no checking io.h usability... no checking io.h presence... no checking for io.h... no checking sys/fmutex.h usability... no checking sys/fmutex.h presence... no checking for sys/fmutex.h... no checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/sockio.h usability... yes checking sys/sockio.h presence... yes checking for sys/sockio.h... yes checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/signal.h usability... yes checking sys/signal.h presence... yes checking for sys/signal.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/utsname.h usability... yes checking sys/utsname.h presence... yes checking for sys/utsname.h... yes checking for stdint.h... (cached) no checking for inttypes.h... (cached) yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking sys/un.h usability... yes checking sys/un.h presence... yes checking for sys/un.h... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for an ANSI C-conforming const... yes checking for inline... inline checking for typeof... no checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... 64 checking for _LARGE_FILES value needed for large files... no checking for size_t... yes checking for off_t... yes checking for ssize_t... yes checking for long long... yes checking for off_t... yes checking for int32_t... yes checking for uint32_t... yes checking for uint16_t... yes checking for char... yes checking size of char... 1 checking for short... yes checking size of short... 2 checking for int... yes checking size of int... 4 checking for long... yes checking size of long... 4 checking for long long... yes checking size of long long... 8 checking for off_t... (cached) yes checking size of off_t... 8 checking for variadic macros... no checking for -rdynamic... yes checking for regex_t... yes checking for working memcmp... no checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for getpagesize... yes checking for working mmap... no checking for strftime... yes checking for cfmakeraw... yes checking for gethostbyaddr... yes checking for herror... yes checking for strerror... yes checking for popen... yes checking for uname... yes checking for access... yes checking for chmod... yes checking for alarm... yes checking for timegm... yes checking for mremap... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strcasestr... yes checking for strstr... yes checking for strchr... yes checking for strrchr... yes checking for memmove... yes checking for bcopy... yes checking for stpcpy... yes checking for strdup... yes checking for index... yes checking for isdigit... yes checking for mempcpy... yes checking for memrchr... yes checking for snprintf... yes checking for vsnprintf... yes checking for asprintf... yes checking for vasprintf... yes checking for getifaddrs... yes checking for getpwnam... yes checking for inet_pton... yes checking for inet_ntop... yes checking for fflush... yes checking for fsync... yes checking for fseeko... yes checking for ftello... yes checking for sigaction... yes checking for gettimeofday... yes checking for clock_gettime... yes checking for cygwin_conv_to_full_win32_path... yes checking for setenv... yes checking for putenv... yes checking for getuid... yes checking for geteuid... yes checking for getpid... yes checking for setpgid... yes checking for getpgid... yes checking for setpgrp... yes checking for getpgrp... yes checking for raise... yes checking for kill... yes checking for __va_copy... yes checking for sysconf(_SC_PAGE_SIZE)... yes checking for C99 vsnprintf... no checking for dlopen in -ldl... no checking for socket... yes checking for setsockopt... yes checking for gethostbyname... yes checking for gpm support... yes checking gpm.h usability... no checking gpm.h presence... no checking for gpm.h... no checking for zlib support... yes checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking for gzdopen in -lz... no checking for bzlib support... yes checking bzlib.h usability... yes checking bzlib.h presence... yes checking for bzlib.h... yes checking for BZ2_bzReadOpen in -lbz2... no checking for idn support... yes checking idna.h usability... no checking idna.h presence... no checking for idna.h... no checking expat.h usability... no checking expat.h presence... no checking for expat.h... no checking sys/consio.h usability... no checking sys/consio.h presence... no checking for sys/consio.h... no checking machine/console.h usability... no checking machine/console.h presence... no checking for machine/console.h... no checking for SpiderMonkey... no checking for Guile... no checking for Perl... no checking for Python... no checking for Lua... no checking for Ruby... no checking for OpenSSL... no checking for libgnutls-config... no checking for GNU TLS (1.2 or later)... no checking whether to be or not to be... needs to be determined experimentally checking for struct sockaddr_storage... yes checking for struct sockaddr_in6... yes checking for struct addrinfo... yes checking for getaddrinfo... yes checking for X... libraries /usr/openwin/lib, headers /usr/openwin/include checking execinfo.h usability... no checking execinfo.h presence... no checking for execinfo.h... no checking for smbclient... no checking whether /usr/local/sw_tools/bin/gmake sets $(MAKE)... yes checking build system type... sparc-sun-solaris2.8 checking host system type... sparc-sun-solaris2.8 checking for strerror in -lcposix... no checking for working alloca.h... yes checking for alloca... yes checking whether we are using the GNU C Library 2.1 or newer... no checking argz.h usability... no checking argz.h presence... no checking for argz.h... no checking for limits.h... (cached) yes checking for locale.h... (cached) yes checking nl_types.h usability... yes checking nl_types.h presence... yes checking for nl_types.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking for feof_unlocked... yes checking for fgets_unlocked... yes checking for getcwd... yes checking for getegid... yes checking for geteuid... (cached) yes checking for getgid... yes checking for getuid... (cached) yes checking for mempcpy... (cached) yes checking for munmap... yes checking for putenv... (cached) yes checking for setenv... (cached) yes checking for setlocale... yes checking for stpcpy... (cached) yes checking for strchr... (cached) yes checking for strcasecmp... (cached) yes checking for strdup... (cached) yes checking for strtoul... yes checking for tsearch... yes checking for __argz_count... yes checking for __argz_stringify... yes checking for __argz_next... yes checking for iconv... yes checking for iconv declaration... extern size_t iconv (iconv_t cd, const char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); checking for nl_langinfo and CODESET... yes checking for LC_MESSAGES... yes checking whether NLS is requested... yes checking for msgfmt... no checking for gmsgfmt... : checking for xgettext... no checking for bison... bison checking version of bison... v. ?.??, bad checking for catalogs to be installed... be bg ca cs da de el es et fi fr gl hr hu id is it lt nl nb pl pt pt_BR ro ru sk sr sv tr uk checking fsplib.h usability... no checking fsplib.h presence... no checking for fsplib.h... no checking for built-in MD5 support... yes configure: creating ./config.status config.status: creating Makefile.config config.status: creating contrib/elinks.spec config.status: creating contrib/lua/hooks.lua config.status: creating contrib/conv/w3m2links.awk config.status: creating doc/man/man1/elinks.1 config.status: creating src/intl/gettext/ref-add.sed config.status: creating src/intl/gettext/ref-del.sed config.status: creating config.h config.status: config.h is unchanged The following feature summary has been saved to features.log Feature summary: Documentation Tools ............. Pod2HTML Manual Formats .................. no Man Page Formats ................ no gpm ............................. no zlib ............................ no bzlib ........................... no idn ............................. no Bookmarks ....................... yes XBEL bookmarks .................. no ECMAScript (JavaScript) ......... no Browser scripting ............... no SSL ............................. no Native Language Support ......... yes Cookies ......................... yes Form history .................... yes Global history .................. yes Mailcap ......................... yes Mimetypes files ................. yes IPv6 ............................ yes BitTorrent protocol ............. no Data protocol ................... yes URI rewriting ................... yes Local CGI ....................... no Finger protocol ................. no FSP protocol .................... no FTP protocol .................... yes Gopher protocol ................. no NNTP protocol ................... no SMB protocol .................... no Mouse handling .................. yes BSD sysmouse .................... no 88 colors ....................... no 256 colors ...................... no Exmode interface ................ no LEDs ............................ yes Marks ........................... yes Cascading Style Sheets .......... yes HTML highlighting ............... no DOM engine ...................... no Backtrace ....................... no No root exec .................... no Debug mode ...................... no Fast mode ....................... no Own libc stubs .................. no Small binary .................... no System configuration directory .. /usr/local/etc/elinks Locale catalogs directory ....... /usr/local/share/locale Compiler options (CFLAGS) ....... -g -I/usr/openwin/include Linker options (LIBS) ........... -lX11 % make make: Fatal error in reader: Makefile, line 3: Unexpected end of line seen % gmake gmake: Nothing to be done for `all'. Makefile starts like this (and has UNIX-style line terminators as one would expect): top_builddir=. -include $(top_builddir)/Makefile.config SUBDIRS = doc src SUBDIRS-$(CONFIG_NLS) += po CLEAN = features.log all-recursive: config.h _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://linuxfromscratch.org/pipermail/elinks-users/attachments/20071204/751329b2/attachment-0001.html From witekfl at poczta.onet.pl Tue Dec 4 11:58:07 2007 From: witekfl at poczta.onet.pl (Witold Filipczyk) Date: Tue, 4 Dec 2007 19:58:07 +0100 Subject: [elinks-users] Elinks cookie file format In-Reply-To: <564fe5db0710050339n4ba1c530p1d204eec2455b7d7@mail.gmail.com> References: <564fe5db0710050339n4ba1c530p1d204eec2455b7d7@mail.gmail.com> Message-ID: <20071204185807.GA3422@pldmachine> On Fri, Oct 05, 2007 at 12:39:02PM +0200, Matej Kopal wrote: > Hi, > I start using Elinks web browser and everything was fine until I start > using a cookies. I import Mozilla (Firefox) cookie file. I mean I copy > Firefox cookie file into home directory of Elinks ( ~/.elinks/cookies > ). But it looks like Elinks and Firefox has different cookies file > format. > > So I browse a web and I found perl script > (http://www.cryptosystem.org/archives/2006/04/converting-netscape-cookies-files/ > ) which should convert Netscape cookies into Elinks cookies, but it > was not working for me. May be I am doing something wrong, but I have > no clue how Elinks format should look. > > So can you help me with this cookies conversion problem or just > forward me on right way. Here is a simple Python script to convert Mozilla cookies to the ELinks format. Usage, eg. $ python cook.py file_with_mozilla_cookies >> ~/.elinks/cookies -- Witek -------------- next part -------------- #!/usr/bin/env python import sys from cookielib import * def main(): if len(sys.argv) == 1: print "Usage:", sys.argv[0], "filename_with_mozilla_cookies" return 1 cookies = MozillaCookieJar() cookies.load(sys.argv[1]) for cookie in cookies: cookie.domain = cookie.domain[1:] print "%s\t%s\t%s\t%s\t%s\t%d\t%d" % (cookie.name, cookie.value, cookie.domain, cookie.path, cookie.domain, cookie.expires, cookie.secure) if __name__ == '__main__': main() From kon at iki.fi Tue Dec 4 14:16:06 2007 From: kon at iki.fi (Kalle Olavi Niemitalo) Date: Tue, 04 Dec 2007 23:16:06 +0200 Subject: [elinks-users] Can't even begin to build elinks In-Reply-To: References: Message-ID: <87mysq88kp.fsf@Astalo.kon.iki.fi> Joe Green writes: > % gmake > gmake: Nothing to be done for `all'. Which version of gmake is this? I have GNU Make 3.81 here. You might try changing Makefile.config: --- Makefile.config +++ Makefile.config @@ -168,5 +168,5 @@ LIB_O_NAME = lib.o ### we get and sometimes the all rule can be implicit, yet we want ### it always as the default one. So this should make sure it always ### comes first. -all: +default: all -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 188 bytes Desc: not available Url : http://linuxfromscratch.org/pipermail/elinks-users/attachments/20071204/79170239/attachment.bin From fonseca at diku.dk Tue Dec 4 14:54:52 2007 From: fonseca at diku.dk (Jonas Fonseca) Date: Tue, 4 Dec 2007 22:54:52 +0100 Subject: [elinks-users] Can't even begin to build elinks In-Reply-To: References: Message-ID: <20071204215452.GD21658@diku.dk> Joe Green wrote Tue, Dec 04, 2007: > I've obviously got something really badly set up, but... I can't build > Elinks, as make complains about the contents of the shipped Makefile > and gmake is even less use. This is with Elinks 0.11.3 on > sparc-sun-solaris2.8 as you'll see below. I know that the "about" web > page says that it has been confirmed to work on > > ?SunOS 5.8 Generic_117350-46 sun4u sparc SUNW,Sun-Fire-480R? > > and advises one to use gmake instead of make, but as you can see > below, gmake didn't help much. The problem might be that the Makefiles use stuff like $(call) which requires a newer gmake. What GNU Make version is available. -- Jonas Fonseca From greenshank at hotmail.com Tue Dec 4 16:41:15 2007 From: greenshank at hotmail.com (Joe Green) Date: Tue, 4 Dec 2007 23:41:15 +0000 Subject: [elinks-users] Can't even begin to build elinks In-Reply-To: <87mysq88kp.fsf@Astalo.kon.iki.fi> References: <87mysq88kp.fsf@Astalo.kon.iki.fi> Message-ID: >> % gmake >> gmake: Nothing to be done for `all'. > > Which version of gmake is this? I have GNU Make 3.81 here. It's 3.68. I ought not to go messing about updating shared software though :-( > You might try changing Makefile.config: > > --- Makefile.config > +++ Makefile.config > @@ -168,5 +168,5 @@ LIB_O_NAME = lib.o > ### we get and sometimes the all rule can be implicit, yet we want > ### it always as the default one. So this should make sure it always > ### comes first. > -all: > +default: all Alas that made no difference, if you mean merely appending "+default: all". Hardly surprising really, since clearly my gmake *already* thought that "all" was the default target. BTW someone off-forum suggested "gmake -d". That eventually spat out No commands for `all' and no dependencies actually changed. No need to remake target `all'. gmake: Nothing to be done for `all'. and his follow-up remark was that "sun's gmake's not executing the '.PHONY' line in .lib, or failing the redefinition of 'all'." Does that get me anywhere? Incidentally, were your suggested lines meant to be input to some specific filter? Or just the output from some flavour of diff? (I've been forced to stare mainly at a Windows box for far too long and know much more about DOS's idiosyncracies and just plain *bugs* than I would wish to; consequently I sometimes forget really obvious Un*x things. Waaagh!) (Meanwhile I went to a Linux box and got it up and running effortlessly first time. Quelle surprise. But I would like more than one platform.) _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From greenshank at hotmail.com Tue Dec 4 17:15:00 2007 From: greenshank at hotmail.com (Joe Green) Date: Wed, 5 Dec 2007 00:15:00 +0000 Subject: [elinks-users] Can't even begin to build elinks In-Reply-To: References: <87mysq88kp.fsf@Astalo.kon.iki.fi> Message-ID: I wrote: > Alas that made no difference, if you mean merely appending "+default: all". I meant just "default: all". Honest! _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From greenshank at hotmail.com Tue Dec 4 20:04:06 2007 From: greenshank at hotmail.com (Joe Green) Date: Wed, 5 Dec 2007 03:04:06 +0000 Subject: [elinks-users] How to change table border rendering Message-ID: Table borders are rendered in a very ugly in-your-face fashion, as big black blocks. How can I change this? Is Elinks doing this or is it my Putty (0.58) terminal? (I've got 256-colour enabled and working if that makes any difference.) (The Elinks menus also display the same big black blocks, btw) _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From kon at iki.fi Wed Dec 5 01:49:10 2007 From: kon at iki.fi (Kalle Olavi Niemitalo) Date: Wed, 05 Dec 2007 10:49:10 +0200 Subject: [elinks-users] Can't even begin to build elinks In-Reply-To: References: <87mysq88kp.fsf@Astalo.kon.iki.fi> Message-ID: <87ir3d8r21.fsf@Astalo.kon.iki.fi> A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 188 bytes Desc: not available Url : http://linuxfromscratch.org/pipermail/elinks-users/attachments/20071205/f046408f/attachment.bin From greenshank at hotmail.com Wed Dec 5 03:24:57 2007 From: greenshank at hotmail.com (Joe Green) Date: Wed, 5 Dec 2007 10:24:57 +0000 Subject: [elinks-users] Can't even begin to build elinks In-Reply-To: <87ir3d8r21.fsf@Astalo.kon.iki.fi> References: <87mysq88kp.fsf@Astalo.kon.iki.fi> <87ir3d8r21.fsf@Astalo.kon.iki.fi> Message-ID: > No, I meant replacing "all:" with "default: all". That gave me this result: gmake: Nothing to be done for `default'. (again, unsurprisingly). > However, Jonas Fonseca is probably right about $(call ...) > being the reason. This function was added in GNU Make 3.78 > so it is not available in your 3.68. We should document this > version requirement or change the makefiles not to use so many > fancy features. > >> I ought not to go messing about updating shared software though :-( > > Perhaps you could install a newer Make in your home directory? I'll look into this in a while. Right now I have other issues on my working Linux version: (1) hooking up spidermonkey, (2) adding SSL/TLS and (3) authentication failures thus: "HTTP Error 401.2 - Unauthorized: Access is denied due to server configuration." But those should become separate threads, of course :-) Thanks _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From kon at iki.fi Sat Dec 8 23:14:25 2007 From: kon at iki.fi (Kalle Olavi Niemitalo) Date: Sun, 09 Dec 2007 08:14:25 +0200 Subject: [elinks-users] How to change table border rendering In-Reply-To: References: Message-ID: <87sl2c4cou.fsf@Astalo.kon.iki.fi> A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 188 bytes Desc: not available Url : http://linuxfromscratch.org/pipermail/elinks-users/attachments/20071209/1f0c4fc0/attachment.bin From ethan.mallove at sun.com Mon Dec 10 10:08:40 2007 From: ethan.mallove at sun.com (Ethan Mallove) Date: Mon, 10 Dec 2007 12:08:40 -0500 Subject: [elinks-users] Image rendering options Message-ID: <20071210170839.GL19500@sun.com> Hello, Is there a way to render certain images as a specified ASCII text string instead of the image's URL? E.g., I would like "/images/arrowLeft.gif" to appear as "<-". Cheers, Ethan -- $ elinks --version ELinks 0.11.3.GIT (built on Nov 21 2007 11:29:59) Features: Standard, No Backtrace, IPv6, gzip, bzip2, Periodic Saving, Timer, Cascading Style Sheets, Protocol (File, FTP, HTTP, URI rewrite, User protocols), SSL (OpenSSL), MIME (Option system, Mailcap, Mimetypes files), LED indicators, Bookmarks, Cookies, ECMAScript, Form History, Global History, Scripting (ECMAScript scripting engine), Goto URL History, Search History $ uname -a SunOS ... 5.10 Generic_125100-04 sun4v sparc SUNW,Sun-Fire-T200 From greenshank at hotmail.com Tue Dec 11 15:54:28 2007 From: greenshank at hotmail.com (Joe Green) Date: Tue, 11 Dec 2007 22:54:28 +0000 Subject: [elinks-users] How to change table border rendering In-Reply-To: <87sl2c4cou.fsf@Astalo.kon.iki.fi> References: <87sl2c4cou.fsf@Astalo.kon.iki.fi> Message-ID: > > Table borders are rendered in a very ugly in-your-face fashion, > > as big black blocks. How can I change this? > > Try the different options at Setup -> Terminal options -> Frame handling. "No frames" did the trick. Thanks :-) _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://linuxfromscratch.org/pipermail/elinks-users/attachments/20071211/b8d8f224/attachment.html From lynx.abraxas at freenet.de Thu Dec 13 04:24:55 2007 From: lynx.abraxas at freenet.de (lynx.abraxas at freenet.de) Date: Thu, 13 Dec 2007 12:24:55 +0100 Subject: [elinks-users] Is it possible to view cached pages offline? Message-ID: <20071213112455.GA29035@drago> Hello! I'm trying hard to figure out a way to view cached pages (that I view before with elinks) again when I do not have an internet connection. Something like the Offline-Mode in firefox. Is that possible with elinks at all? Thanks Lynx PS: I'm not in the list any more. From witekfl at poczta.onet.pl Fri Dec 14 11:45:58 2007 From: witekfl at poczta.onet.pl (Witold Filipczyk) Date: Fri, 14 Dec 2007 19:45:58 +0100 Subject: [elinks-users] Image rendering options In-Reply-To: <20071210170839.GL19500@sun.com> References: <20071210170839.GL19500@sun.com> Message-ID: <20071214184558.GA2962@pldmachine> On Mon, Dec 10, 2007 at 12:08:40PM -0500, Ethan Mallove wrote: > Hello, > > Is there a way to render certain images as a specified ASCII > text string instead of the image's URL? E.g., I would like > "/images/arrowLeft.gif" to appear as "<-". It is possible via browser scripting. At compile time you could choose of guile, Perl, Python, Ruby, Lua or Java Script. In your version the Java Script engine was compiled-in. You must define own preformat_html hook and rewrite html of pages. Add or replace the alt param of IMG. Rewritten html fragment would look like this: <-. See contrib/ for examples. -- Witek From thomas.adam22 at gmail.com Fri Dec 14 12:13:14 2007 From: thomas.adam22 at gmail.com (Thomas Adam) Date: Fri, 14 Dec 2007 19:13:14 +0000 Subject: [elinks-users] Image rendering options In-Reply-To: <20071210170839.GL19500@sun.com> References: <20071210170839.GL19500@sun.com> Message-ID: <18071eea0712141113w3d6268e0wbd33c651f3a8f940@mail.gmail.com> Hello -- On 10/12/2007, Ethan Mallove wrote: > Hello, > > Is there a way to render certain images as a specified ASCII > text string instead of the image's URL? E.g., I would like > "/images/arrowLeft.gif" to appear as "<-". Look in contrib/hooks.rb -- you'll gleam ideas from that. Assumes you've compiled in support in ELinks for ruby scripting. -- Thomas Adam From kon at iki.fi Sat Dec 15 07:07:32 2007 From: kon at iki.fi (Kalle Olavi Niemitalo) Date: Sat, 15 Dec 2007 16:07:32 +0200 Subject: [elinks-users] Is it possible to view cached pages offline? In-Reply-To: <20071213112455.GA29035@drago> References: <20071213112455.GA29035@drago> Message-ID: <87ve70yrtn.fsf@Astalo.kon.iki.fi> A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 188 bytes Desc: not available Url : http://linuxfromscratch.org/pipermail/elinks-users/attachments/20071215/16ed2fff/attachment.bin From corky1951 at comcast.net Fri Dec 28 08:45:08 2007 From: corky1951 at comcast.net (Charlie Kester) Date: Fri, 28 Dec 2007 07:45:08 -0800 Subject: [elinks-users] left-arrow as quit? Message-ID: <20071228154508.GA10593@comcast.net> Is it possible to make elinks interpret a left arrow key as a quit command when navigation has reached the beginning of the history list? Here's why I ask: the mutt email client (and most of the rss readers I've tried) can be configured to invoke elinks to open urls found in an email or rss feed. What's more, these tools also use the elinks-style right and left keys to move forward and backwards through the changing views. But this pleasant continuity comes to an abrupt halt when I've drilled down into elinks and then want to make my way back into whatever tool it was that I using before it was invoked. Left arrow gets me back to the first url I visited, but no farther. I have to switch gears and type 'q' or 'Q' in order to quit elinks. Not only are these keys on the opposite side of my keyboard from the arrow keys -- which I admit is only a mild annoyance -- but I must also become consciously aware that I've reached a point where I must quit. I.e., the elinks program has asserted itself and forced me to switch my attention to it and away from what could have been a seemless meandering through the information that I am actually interested in. Please tell me if it's possible to make elinks "get out of the way" as all good tools do. If it isn't possible yet, where do I make the feature request? From witekfl at poczta.onet.pl Fri Dec 28 13:16:49 2007 From: witekfl at poczta.onet.pl (Witold Filipczyk) Date: Fri, 28 Dec 2007 21:16:49 +0100 Subject: [elinks-users] left-arrow as quit? In-Reply-To: <20071228154508.GA10593@comcast.net> References: <20071228154508.GA10593@comcast.net> Message-ID: <20071228201649.GA7238@pldmachine> On Fri, Dec 28, 2007 at 07:45:08AM -0800, Charlie Kester wrote: > Is it possible to make elinks interpret a left arrow key as a quit > command when navigation has reached the beginning of the history list? > > Here's why I ask: the mutt email client (and most of the rss readers > I've tried) can be configured to invoke elinks to open urls found in an > email or rss feed. What's more, these tools also use the elinks-style > right and left keys to move forward and backwards through the changing > views. > > But this pleasant continuity comes to an abrupt halt when I've drilled > down into elinks and then want to make my way back into whatever tool it > was that I using before it was invoked. Left arrow gets me back to the > first url I visited, but no farther. I have to switch gears and type > 'q' or 'Q' in order to quit elinks. Not only are these keys on the > opposite side of my keyboard from the arrow keys -- which I admit is > only a mild annoyance -- but I must also become consciously aware that > I've reached a point where I must quit. I.e., the elinks program has > asserted itself and forced me to switch my attention to it and away from > what could have been a seemless meandering through the information that > I am actually interested in. > > Please tell me if it's possible to make elinks "get out of the way" > as all good tools do. > > If it isn't possible yet, where do I make the feature request? Report it as a bug at bugzilla.elinks.cz. Here is the patch against 0.13.GIT. You need to bind "Left" as the key for move-history-back-or-quit. You could attach that patch to the bug report, too. -- Witek -------------- next part -------------- diff --git a/src/config/actions-main.inc b/src/config/actions-main.inc index 21ff838..a6b7331 100644 --- a/src/config/actions-main.inc +++ b/src/config/actions-main.inc @@ -36,6 +36,7 @@ ACTION_(MAIN, "goto-url-home", GOTO_URL_HOME, N__("Go to the homepage"), 0), ACTION_(MAIN, "header-info", HEADER_INFO, N__("Show information about the current page protocol headers"), 0), ACTION_(MAIN, "history-manager", HISTORY_MANAGER, N__("Open history manager"), 0), ACTION_(MAIN, "history-move-back", HISTORY_MOVE_BACK, N__("Return to the previous document in history"), 0), +ACTION_(MAIN, "history-move-back-or-quit", HISTORY_MOVE_BACK_OR_QUIT, N__("Return to the previous document in history or quit"), 0), ACTION_(MAIN, "history-move-forward", HISTORY_MOVE_FORWARD, N__("Go forward in history"), 0), ACTION_(MAIN, "jump-to-link", JUMP_TO_LINK, N__("Jump to link"), ACTION_REQUIRE_VIEW_STATE | ACTION_JUMP_TO_LINK), ACTION_(MAIN, "keybinding-manager", KEYBINDING_MANAGER, N__("Open keybinding manager"), ACTION_RESTRICT_ANONYMOUS), diff --git a/src/session/history.c b/src/session/history.c index 281ffdc..5023665 100644 --- a/src/session/history.c +++ b/src/session/history.c @@ -11,6 +11,7 @@ #include "cache/cache.h" #include "config/options.h" +#include "dialogs/menu.h" #include "dialogs/status.h" #include "network/connection.h" #include "protocol/uri.h" @@ -181,6 +182,27 @@ go_history_by_n(struct session *ses, int n) go_history(ses, loc); } +void +go_back_by_n_or_quit(struct session *ses, int n) +{ + struct location *loc = cur_loc(ses); + + if (!loc) { + exit_prog(ses, 0); + return; + } + if (n >= 0) return; + while (n++) { + if (list_has_prev(ses->history.history, loc)) + loc = loc->prev; + else { + exit_prog(ses, 0); + return; + } + } + go_history(ses, loc); +} + /** Go backward in the history. See go_history() description regarding * unpredictable effects on cur_loc() by this function. */ void diff --git a/src/session/history.h b/src/session/history.h index ed28bf4..eeaf5ff 100644 --- a/src/session/history.h +++ b/src/session/history.h @@ -38,6 +38,11 @@ void go_history(struct session *ses, struct location *loc); * positive. */ void go_history_by_n(struct session *ses, int n); +/* Move back - at a n times if @a n is negative + * or quit when there is no more locations */ +void go_back_by_n_or_quit(struct session *ses, int n); + + void go_back(struct session *ses); void go_unback(struct session *ses); diff --git a/src/viewer/action.c b/src/viewer/action.c index 66e20bb..3826674 100644 --- a/src/viewer/action.c +++ b/src/viewer/action.c @@ -268,6 +268,15 @@ do_action(struct session *ses, enum main_action action_id, int verbose) go_history_by_n(ses, -count); break; } + + case ACT_MAIN_HISTORY_MOVE_BACK_OR_QUIT: + { + int count = int_max(1, eat_kbd_repeat_count(ses)); + + go_back_by_n_or_quit(ses, -count); + break; + } + case ACT_MAIN_HISTORY_MOVE_FORWARD: { int count = int_max(1, eat_kbd_repeat_count(ses)); From corky1951 at comcast.net Fri Dec 28 18:02:02 2007 From: corky1951 at comcast.net (Charlie Kester) Date: Fri, 28 Dec 2007 17:02:02 -0800 Subject: [elinks-users] left-arrow as quit? In-Reply-To: <20071228201649.GA7238@pldmachine> References: <20071228154508.GA10593@comcast.net> <20071228201649.GA7238@pldmachine> Message-ID: <20071229010202.GB10593@comcast.net> * Witold Filipczyk [2007-12-28 21:16:49 +0100]: >On Fri, Dec 28, 2007 at 07:45:08AM -0800, Charlie Kester wrote: >> Is it possible to make elinks interpret a left arrow key as a quit >> command when navigation has reached the beginning of the history list? > >Report it as a bug at bugzilla.elinks.cz. > >Here is the patch against 0.13.GIT. >You need to bind "Left" as the key for move-history-back-or-quit. >You could attach that patch to the bug report, too. >-- >Witek Thanks for the speedy response! I'll apply the patch and put the feature request in the bug database. -- Charlie From corky1951 at comcast.net Fri Dec 28 20:11:03 2007 From: corky1951 at comcast.net (Charlie Kester) Date: Fri, 28 Dec 2007 19:11:03 -0800 Subject: [elinks-users] left-arrow as quit? In-Reply-To: <20071229010202.GB10593@comcast.net> References: <20071228154508.GA10593@comcast.net> <20071228201649.GA7238@pldmachine> <20071229010202.GB10593@comcast.net> Message-ID: <20071229031103.GC10593@comcast.net> entered as Bug # 985 - wishlist: move-history-back-or-quit