links / graphics mode in tty - Old school stuff

Users browsing this thread: 1 Guest(s)
pvtmert
Members
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...
Code:
Slax 7.0.8 (32-bits + PAE)
----- BEGIN GEEK CODE BLOCK-----
Version: 3.1
GE/CS/CM/S d+@ s-:- a--- C++++(++) UL+++ P+ L+++ E?() W+++(++) N? o? K- w+
O M-- V- PS+ PE Y? PGP- t+ 5? X++++(+++) R- !tv b+ DI? D- G e- h+ r-- z--
------END GEEK CODE BLOCK------
venam
Administrators
Nice hack and good thread!
I don't like the cursor in linkgs -g either.
dunz0r
Members
You can get JS in Elinks, but I've never gotten it to work :(
nrmc.dubz
Long time nixers
High quality thread. We need a lot more topics like this one.
SpongeboZZ; Bikini Bottom Mafia/
You're cock-sucker, bitch/ silence while godfathers speech/
yeah/ da plancton in muh blunt/ gangster squarepants witha gun/
Sponge iz the bozz in da buiz/ you're creating silly trash/
i'm creating hollywood shit/