Elinks text browser. Any way to "word wrap" to avoid left-right scrolling?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Elinks text browser. Any way to "word wrap" to avoid left-right scrolling?
I'm interested in getting rid of an annoyance with elinks text web browser. There is a setting in
options that supposedly eliminates the need to use the "[" and "]" character keys to scroll left and
right to read stuff that's going wide. It ain't working right or I'm missing something. I have a 16:9
screen and I don't see why I should have to scroll left and right all the time. Has anybody figured
out how to adjust this properly? Any hints, tips or hacks are very much appreciated. I really like
elinks, I rely on it for the morning news and lots of other reading like Wikipedia, etc because it
cooperates well with my dial up connection.
Out of curiosity, I just installed elinks and visited Philly.com and Tampabay.com. They both seemed to wrap okay. When I narrowed the window, the text inside wrapped automatically; vice versa when I widened it (though tampabay.com seem to be locked in a three-column format, so if I narrowed the window too much--to about 1/4 the width of the monitor--I had to scroll).
This was on a standard 4:3 16-inch Viewsonic CRT under Debian Squeeze.
I could be missing something, but maybe if you posted links to some of the sites you are visiting it would help.
Afterthought: Have you tried lynx or links? Lynx is a pure text browser. Links is more like elinks, with some formatting.
Last edited by frankbell; 08-08-2012 at 09:09 PM.
Reason: clarity
Out of curiosity, I just installed elinks and visited Philly.com and Tampabay.com. They both seemed to wrap okay. When I narrowed the window, the text inside wrapped automatically; vice versa when I widened it (though tampabay.com seem to be locked in a three-column format, so if I narrowed the window too much--to about 1/4 the width of the monitor--I had to scroll).
This was on a standard 4:3 16-inch Viewsonic CRT under Debian Squeeze.
I could be missing something, but maybe if you posted links to some of the sites you are visiting it would help.
Afterthought: Have you tried lynx or links? Lynx is a pure text browser. Links is more like elinks, with some formatting.
Actually this very page does that, not wrapping the text. Yes, I've used Lynx since before there was elinks. Back in my Windows days, 1998. But Lynx doesn't handle frames well nor does it do javascript. I still install Lynx every upgrade just for the sake of nostalgia. I've tried different releases of elinks, 13, 12, 12pre5 and right now using version 13.git that I compiled with javascript support. Version 12 and 11 will not compile, they error out with javascript errors. That's with Fedora 16 here. The word wrap problem occurs both in a GUI terminal window and also in console mode, or "multi user" mode, run level 3. It's pretty annoying and apparently there are not many elinks users out there that can help. These days most people have a high speed internet connection and don't need a text browser. Alas, with my dial up reading the news each morning is an arduous test of patience with a GUI web browser. Thanks for the reply.
Actually this very page does that, not wrapping the text.
Indeed it does. I see exactly what you mean.
I have no idea how to deal with your request. If you haven't looked in man 5 elinkskeys, you might find something there, but I'm guessing you have already looked.
I have no idea how to deal with your request. If you haven't looked in man 5 elinkskeys, you might find something there, but I'm guessing you have already looked.
Sorry I couldn't help.
Oh don't be sorry, please. I am grateful for your replies, believe me. Very much so. And no, I have not looked at that particular manual but I will immediately do so. Thank you for turning me on to that. I'll try to get back after perusing said man page.
Nah, nothing there that helps. It justs mentions the use of the "w" key to toggle word wrap but it does not truly wrap all the way, just partly. But I will continue my vigilent search for information.
I do too. How about if I use this script I found, if I assign it to the "k" key? What's the best way to assign this function - and would it work?
def wrap(text, width=80):
lines = []
for paragraph in text.split('\n'):
line = []
len_line = 0
for word in paragraph.split(' '):
len_word = len(word)
if len_line + len_word <= width:
line.append(word)
len_line += len_word + 1
else:
lines.append(' '.join(line))
line = [word]
len_line = len_word + 1
lines.append(' '.join(line))
return '\n'.join(lines)
Last edited by SharpyWarpy; 08-09-2012 at 09:25 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.