nixers
links / graphics mode in tty - Printable Version
+- nixers (https://nixers.net)
+-- Forum: Operating Systems & Administration (https://nixers.net/Forum-Operating-Systems-Administration)
+--- Forum: Old school stuff (https://nixers.net/Forum-Old-school-stuff)
+--- Thread: links / graphics mode in tty (/Thread-links-graphics-mode-in-tty)


links / graphics mode in tty - pvtmert - 29-08-2014

i recently found links has graphics mode for tty which is can render images in tty and more colorful than classic mode... it uses svgalib and framebuffer... i like framebuffer programs such as fbterm, (i use it because i can select font size so i can use more space in my screen when tmux'ing... and it matters when you have 1024x600 netbook display)

maybe you didnt know that i wanted to share... when challenging in unix you can use this...

BUT. you cant see videos... you still need to use youtube-dl then mplayer for that... and JS not working too...

Links comes with shitty cursor for framebuffer... big and ugly... I have ported basic black cursor to it... if you want you can replace arrow.inc in base source directory in links-2.8 and recompile, so your cursor will be nicer...

Code:
/* Automatically generated by the program "arrow" (arrow.c) */ enum {arrow_width=32, arrow_height=32, arrow_area=1024}; static unsigned int arrow[64]={         0x00000000U,0x00000000U,         0x00000000U,0x00000000U,         0x00000000U,0x00000000U,         0x00000000U,0x00000000U,         0x00000000U,0x08000000U,         0x00000000U,0x0c000000U,         0x04000000U,0x0a000000U,         0x06000000U,0x09000000U,         0x07000000U,0x08800000U,         0x07800000U,0x08400000U,         0x07c00000U,0x08200000U,         0x07e00000U,0x08100000U,         0x07f00000U,0x08080000U,         0x07f80000U,0x08040000U,         0x07c00000U,0x083e0000U,         0x06c00000U,0x09000000U,         0x04600000U,0x0a100000U,         0x00600000U,0x0c800000U,         0x00300000U,0x08080000U,         0x00300000U,0x00480000U,         0x00000000U,0x00300000U,         0x00000000U,0x00000000U,         0x00000000U,0x00000000U,         0x00000000U,0x00000000U,         0x00000000U,0x00000000U,         0x00000000U,0x00000000U,         0x00000000U,0x00000000U,         0x00000000U,0x00000000U,         0x00000000U,0x00000000U,         0x00000000U,0x00000000U,         0x00000000U,0x00000000U,         0x00000000U,0x00000000U, };

if you want your own cursor, procedure is simple:
-> enter into links-2.8 source directory
-> enter to 'graphics' directory
-> do 'make'
you will get 'arrow' binary...
create a 32x32 png image with no-alpha channel and no layers
paste your cursor into that image
make background (the part you want to make transparent) 255 green...
you can pull original image from arrow.png
-> mv arrow.png to arrow.png.old (in case of corruption)
-> save your image as arrow.png into that 'graphics' dir
-> run ./arrow and 'cp arrow.inc ..'
-> and cd .. then make && make install
done...


RE: links / graphics mode in tty - venam - 30-08-2014

Nice hack and good thread!
I don't like the cursor in linkgs -g either.


RE: links / graphics mode in tty - dunz0r - 02-10-2014

You can get JS in Elinks, but I've never gotten it to work :(


RE: links / graphics mode in tty - nrmc.dubz - 02-10-2014

High quality thread. We need a lot more topics like this one.