Closed esn89 closed 11 years ago
You have to use a patched version of vte. Stock vte(without a patch) simply won't work there are functions exposed with the patch that aren't normally exposed. I can't recall but I am fairly certain that as long as the patch is applied you can use the latest version though I may be wrong (usually I am).
thanks. i bumped into another problem though, when i clone this, the "util" folder doesn't get included...is there a reason why?
ps: i'll jump through hoops of fire if it means getting this terminal working again.. i moved away from arch because work, and i really miss this terminal.
Don't worry about the util folder iirc it doesn't need to be copied and compiled
i actually have to cuz the terminal i'm using right now, when i run "make" it complains about the util/clamp.hh missing.
Oh damn forgot the command when you clone add --recursive-branch I think. Then it should compile
From the readme. "git clone --recursive https://github.com/thestinger/termite.git cd termite && make "
Thank for your help up to now, I have follow the --recursive part and that worked wonders. I think i have all the dependencies met, and I am at the met stage with gcc 4.8.1. This is the error I am getting:
I feel that I am close. I read in the readme that I needed the vte patch is required to fix the functions needed for the keyboard select. Any ideas?
Git clone vte I can't recall if apt has a method to fetch source code or not, any how I'm fairly certain the patch is in this repo, then patch thePatch.patch /path/to/vte/src, where thePatch is the file name of the patch.
**/path/to/vte/vte.c, apparently you only need a version greater than 0.34 providing there is no major upstream changes.
Gotcha. So from the top down:
Grab the vte 0.34 from here: http://ie.archive.ubuntu.com/gnome/sources/vte/0.34/
Apply the expose_select_text.patch into the folder which contains the vte.c file. And by apply, it just is a simple act of copying right? Because I tried to run it and it didn't work.
Then finally ./configure && make && make install?
I don't think there is a bug here.
no but there is a question.
Esn89 honestly ask in arch offtopic on IRC
has anyone managed to install termite on Ubuntu (i have 14.04)? I tried everything and can't manage to get it working :(
@toogy: Did you build a patched VTE?
You need to build a patched VTE.
I would first remove the default libvte that comes installed and hunt down a libvte that's > 0.34
This was helpful to me in getting it building on debian stretch, I'm glad it wasn't asked on IRC, as I'd have likely just given up on using termite. Not sure why you'd want to avoid this kind of thread, but if you do, I'd put a recommended IRC channel (or other means of support) in the readme.
If you guys like, I could make a wiki page for this project on how to get termite up and running from scratch.
@esn89 :+1: go on
That'd be great. The main things I remember were finding the vte source, figuring out how to patch it by copying the patch file to the vte dir and running "patch -p1 -i expose_select_text.patch", and figuring how where to get vapigen (valac). I also needed to install libgirepository1.0-dev, but I can't really remember why, but I don't think it was straight obvious from the configure error message.
edit: I suspect I applied the patch wrong as going into select mode crashes termite, though I didn't get an errors applying the patch and everything compiled.
Installing termite on Ubuntu is way too complicated... Can't we do something about it?
It wouldn't need to patch VTE if upstream exposed the necessary functions for setting the cursor position, setting the text selection, toggling block selection and pausing/unpausing output. It doesn't add a significant amount of new API surface, especially since the coordinates for the cursor and selection are already exposed. They're apparently only interested in doing things that directly benefit GNOME Terminal. That's why this is unnecessary difficult. Take it up with the GNOME developers.
See the last few comments in that bugzilla thread.
There's now a fork of VTE, so you can download the tagged release from there and do the usual ./autogen.sh && make
to build it.
Are they saying they want to implement selection and just provide an api for customizing keybindings? Feels more like an app than a library, maybe I don't fully understand their goals. Thanks for forking, I just compiled against the fork and everything seems to work for me now.
I think now that thestinger forked the vte and patched it, we don't really need no guide, since most of the problems come from people struggling with vte patching and installation.
@cgag: Yes, they're saying they won't accept a simple patch exposing the necessary APIs because terminals won't implicitly gain keyboard selection. Instead, they'll only accept a patch somehow implementing this inside VTE. I have no idea how that would be done considering how specific it is to the chosen design (i.e. they're probably not going to want a Vim mode). It also rules out the ability to do things like URL hints.
Anyway, I've had very bad experiences with GNOME so there's no way I'm developing large features for them only to have it be rejected. It's not clear that they're actually willing to merge keyboard selection in any form, only that they're not going to merge it in this form. The vague statement that it should be done in VTE coupled with the refusal to give more details than that is a bad sign. It indicates to me that there's no solution they would be happy with, because they cannot describe what they want.
I've made a little script to install termite on a fresh Ubuntu installation. It works on my machine, on which I installed Ubuntu 2 hours ago. It should work on any Ubuntu-based distribution but please let me know if there is a problem.
https://github.com/Corwind/termite-install/blob/master/termite-install.sh
@Corwind Thank you for the script, however it didn't work out for me by simply running it. I kept on getting permission errors for some reason, even after running as sudo. The solution was to simply do each step on its own line and waiting a little longer. Worked on my Linux Mint 17.2, 64 bit.
On a side note, I am not getting color the correct colors and don't mean to highjack the thread, but might be related to a dependency? My colors for outputting the files and directories do work on Terminator but don't seem to work on Termite. Little overlap from this other issue No right color
Terminator
Termite
Has anyone managed to get this working? There are quite a few vtes in there, but no mention of one bigger than 0.34.
I tried vte-common but that didn't seem to cut it.