You are not logged in.
Pages: 1
Topic closed
Hey,
I use xterm a *lot*. I know there are a million other terminal emulators out there with more bells and whistles, but I'm perfectly happy with the default, and like the convenience of dropping in an .Xdefaults wherever there is X11 and having a nicely set up terminal.
One thing I want, and don't have, is the ability to click on URLs and have them open in a browser. Is this at all possible? The best I can do at the moment is to set up a regex to highlight the URL properly when I click a certain number of times on it.
Googling's got me nowhere so far, help appreciated!
Offline
I know you said you love xterm and all, but as an urxvt evangelist, I just want to point out how easy is to solve this in urxvt. An excerpt of my .Xdefaults:
!--[extension]--!
URxvt*perl-ext-common: default,selection,matcher
URxvt*urlLauncher: /usr/bin/firefox
URxvt*matcher.button: 1
"I'm Winston Wolfe. I solve problems."
~ Need moar games? [arch-games] ~ [aurcheck] AUR haz updates? ~
Offline
I've searched through tons of pages trying to see if this is possible and I've never found a solution. This is the only thing keeping me using urxvt over xterm.
Offline
I've searched through tons of pages trying to see if this is possible and I've never found a solution. This is the only thing keeping me using urxvt over xterm.
What about transparency and unicode (I know of uxterm but from what I remember the last time I've used it it does a really poor job.)
Archlinux | ratpoison + evilwm | urxvtc | tmux
Offline
xterm works perfectly with unicode.
And the way it is compiled in Arch, there is no need to even use uxterm (which is just a basic wrapper setting some env variables anyway).
I also use the config/regex to be able to select URL, this is a must-have indeed.
And then , it's really not so hard. There are 4 steps but they can be done very quickly !
double click on url, alt tab to firefox, ctrl+t new tab, middleclick.
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
xterm works perfectly with unicode.
And the way it is compiled in Arch, there is no need to even use uxterm (which is just a basic wrapper setting some env variables anyway).I also use the config/regex to be able to select URL, this is a must-have indeed.
And then , it's really not so hard. There are 4 steps but they can be done very quickly !
double click on url, alt tab to firefox, ctrl+t new tab, middleclick.
Or 3 steps if you use vimperator: double click on url, alt tab to firefox, hit P
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...
Offline
Or 3 steps if you use vimperator: double click on url, alt tab to firefox, hit P
Ah yeah indeed, vimperator was quite cool, I used P all the time !
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
Cheers guys, I think I will stick with the regex approach. Need to check if Conkeror has a go-to-clipboard shortcut, and write one if not!
Offline
I also use the config/regex to be able to select URL, this is a must-have indeed.
What regex do you use? I thought I had mine working, but... no
Offline
shining wrote:I also use the config/regex to be able to select URL, this is a must-have indeed.
What regex do you use? I thought I had mine working, but... no
I had one for a long time that I found in an article somewhere, or from another user config.
Recently I realized the xterm package itself actually provided one.
See pacman -Ql xterm
grep -r charClass /usr/share/app/X11/app-defaults/
Note that it is disabled by default.
Also if you are curious how this option works / what it does, xterm has a complete section CHARACTER CLASSES.
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
Cheers shining, that's a great help. That file makes interesting reading actually...
Offline
skottish wrote:I've searched through tons of pages trying to see if this is possible and I've never found a solution. This is the only thing keeping me using urxvt over xterm.
What about transparency and unicode (I know of uxterm but from what I remember the last time I've used it it does a really poor job.)
As shining pointed out, unicode works as well as in urxvt. I don't bother with transparency or any other desktop effects.
Offline
I guess posting to this thread is not necrobumping since the information seems to be still relevant.
Is it still impossible to open URLs from XTerm? I came across this page: http://lukas.zapletalovi.com/2013/07/hi … xterm.html, where the following settings in the .Xresource described as enabling the URL opening, but I hasn't managed to get it worked with FireFox (having replaced 'google-chrome' with 'firefox'):
*VT100*translations: #override Shift <Btn1Up>: exec-formatted("google-chrome '%t'", PRIMARY)
bing different
Offline
I guess posting to this thread is not necrobumping since the information seems to be still relevant.
It is still necrobumping, but posting a solution and bringing closure to a thread is acceptable.
Your findings would still be better documented on the wiki though.
Closing.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
Pages: 1
Topic closed