Fixing grey background (default bgcolor) in graphic links2

#Installing dependencies if you can become root is easy (Debian names shown):
apt-get install pkg-config libpng12-dev libjpeg62-dev xorg-dev
# libssl-dev libgpm-dev libbz2-dev


#Fetch the web browser source:
mkdir mylinks &&
cd mylinks &&
apt-get source links2


#Here's the magic, changing the default graphics mode background color from grey to white:
patch -p 0 <<END
diff -u links2-2.1pre37.old/default.c links2-2.1pre37/default.c
--- links2-2.1pre37.old/default.c 2008-06-21 18:05:53.000000000 +0200
+++ links2-2.1pre37/default.c 2009-05-09 22:10:48.000000000 +0200
@@ -1453,7 +1453,7 @@
struct rgb default_vlink = { 255, 255, 0, 0 };

struct rgb default_fg_g = { 0, 0, 0, 0 };
-struct rgb default_bg_g = { 192, 192, 192, 0 };
+struct rgb default_bg_g = { 255, 255, 255, 0 };
struct rgb default_link_g = { 0, 0, 255, 0 };
struct rgb default_vlink_g = { 0, 0, 128, 0 };
END


#Now we can compile the software:
cd links2-* &&
./configure --with-x --enable-graphics &&
make
# --with-ssl


#Then you can test it with:
./links -g -no-connect


#Perhaps you could also:
strip links

Comments

Popular posts from this blog

Tftp secret of TL-WR740N uncovered

Hidden TFTP of TP-Link routers

Haskell for embedded: C output, compilers, monads, Timber