View previous topic :: View next topic |
Author |
Message |
John5788 Advocate
Joined: 06 Apr 2004 Posts: 2140 Location: 127.0.0.1
|
Posted: Mon Mar 28, 2005 7:51 am Post subject: |
|
|
any screenshots? _________________ John5788 |
|
Back to top |
|
|
amne Bodhisattva
Joined: 17 Nov 2002 Posts: 6378 Location: Graz / EU
|
Posted: Mon Mar 28, 2005 11:26 am Post subject: |
|
|
Moved from OTW. _________________ Dinosaur week! (Ok, this thread is so last week) |
|
Back to top |
|
|
Lews_Therin l33t
Joined: 03 Oct 2003 Posts: 657 Location: Banned
|
Posted: Mon Mar 28, 2005 5:41 pm Post subject: |
|
|
John5788 wrote: | any screenshots? |
Yep |
|
Back to top |
|
|
Illissius Guru
Joined: 31 Jul 2004 Posts: 395 Location: Hungary
|
Posted: Mon Mar 28, 2005 10:41 pm Post subject: |
|
|
Konsole also has tab renaming, but, the more, the merrier _________________ Work is punishment for failing to procrastinate effectively.
last.fm |
|
Back to top |
|
|
Lews_Therin l33t
Joined: 03 Oct 2003 Posts: 657 Location: Banned
|
Posted: Mon Mar 28, 2005 11:08 pm Post subject: |
|
|
Illissius wrote: | Konsole also has tab renaming, but, the more, the merrier |
Damn, I'm not as insightful as I thought I was |
|
Back to top |
|
|
Legoguy Apprentice
Joined: 22 Dec 2003 Posts: 166 Location: Edmonton, Alberta, Canada
|
Posted: Mon Mar 28, 2005 11:29 pm Post subject: |
|
|
One thing I'd like to see in this is
A. ability to set the colors
B. ability to set the font
C. ability to set the scrollback buffer size...
other than that.. very nice!
Maybe pseudo (or real!) transparency too... but... I dont think you want to start duplicating gnome-terminal |
|
Back to top |
|
|
nmcsween Guru
Joined: 12 Nov 2003 Posts: 381
|
Posted: Mon Mar 28, 2005 11:35 pm Post subject: |
|
|
Does this terminal emulator read ~.Xdefaults? if not can it be implimented to read Xterm options in .Xdefaults? _________________ Great Resources |
|
Back to top |
|
|
Chickpea l33t
Joined: 03 Jun 2002 Posts: 846 Location: Vancouver WA
|
Posted: Tue Mar 29, 2005 12:23 am Post subject: |
|
|
I got an error when I tried to emerge this:
Code: | g++ -c -Wall `pkg-config gtk+-2.0 --cflags` `pkg-config vte --cflags` -Os -ansi -fvisibility=hidden -fvisibility-inlines-hidden gterm.cpp
cc1plus: error: unrecognized option `-fvisibility=hidden'
cc1plus: error: unrecognized option `-fvisibility-inlines-hidden'
make: *** [gterm.o] Error 1
|
|
|
Back to top |
|
|
Lews_Therin l33t
Joined: 03 Oct 2003 Posts: 657 Location: Banned
|
Posted: Tue Mar 29, 2005 12:43 am Post subject: |
|
|
Chickpea wrote: | I got an error when I tried to emerge this:
Code: | g++ -c -Wall `pkg-config gtk+-2.0 --cflags` `pkg-config vte --cflags` -Os -ansi -fvisibility=hidden -fvisibility-inlines-hidden gterm.cpp
cc1plus: error: unrecognized option `-fvisibility=hidden'
cc1plus: error: unrecognized option `-fvisibility-inlines-hidden'
make: *** [gterm.o] Error 1
|
|
Oh crap, I forgot I left those in there. Change the line
Code: | # For running normally
CFLAGS = -Wall `pkg-config gtk+-2.0 --cflags` `pkg-config vte --cflags` -Os -ansi -fvisibility=hidden -fvisibility-inlines-hidden |
to
Code: | # For running normally
CFLAGS = -Wall `pkg-config gtk+-2.0 --cflags` `pkg-config vte --cflags` -Os -ansi |
I was testing if I could get any flags that made bugs, guess I forgot to remove the last few. |
|
Back to top |
|
|
Lews_Therin l33t
Joined: 03 Oct 2003 Posts: 657 Location: Banned
|
Posted: Tue Mar 29, 2005 4:00 am Post subject: |
|
|
Legoguy wrote: | One thing I'd like to see in this is
A. ability to set the colors
B. ability to set the font
C. ability to set the scrollback buffer size...
other than that.. very nice!
Maybe pseudo (or real!) transparency too... but... I dont think you want to start duplicating gnome-terminal |
A. Probably coming. I've not done any commandline parsing yet
B. *
C. *
I'll stick in Pseudo trans when I do the three above things, since VTE supports it natively, but real transparency will probably have to wait until either it's done in VTE or I write my own terminal widget (looking more attractive every day).
I've been spending time trying to get memory usage down, but appears to be down as far as I can get it until I write a new term widget. VTE takes about 500k for each terminal (konsole takes 50k), and I plan to rip some code out of something like rxvt, combine it with the real transparency from konsole, and making it a compile-time option.
nmcsween wrote: | Does this terminal emulator read ~.Xdefaults? if not can it be implimented to read Xterm options in .Xdefaults? |
It doesn't, as far as I know - would be an interesting side-project for the new widget implementation. |
|
Back to top |
|
|
Lews_Therin l33t
Joined: 03 Oct 2003 Posts: 657 Location: Banned
|
Posted: Tue Mar 29, 2005 8:02 am Post subject: |
|
|
New ebuild, new tarball, new ways to save!
Code: | # $Header: $
inherit eutils flag-o-matic
DESCRIPTION="Lightweight GTK2 terminal emulator"
HOMEPAGE=""
SRC_URI="http://gterm.php-scripter.com/${P}.tar.bz2"
LICENSE="GPLv2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="virtual/x11
>=x11-libs/gtk+-2.6
>=x11-libs/vte-0.11.11-r2"
src_compile() {
emake || die
}
src_install() {
mkdir -p ${D}usr/bin/
cp ${S}/gterm ${D}usr/bin/gterm
}
|
Save to gterm-0.2.ebuild, and enjoy. Fair warning: I had to bump the dependency to gtk+-2.6, since the commandline parsing was apparently introduced then. Sorry, but I'm just too lazy to learn a new way to do that at midnight (if somebody wants to rewrite it for 2.4 folks, I'll #ifdef it in).
It now has transparency, antialias mode selection, font selection, foreground and backround color selection, and scrollback line selection. Also, a nify --help mode thanks to GTK. |
|
Back to top |
|
|
dol-sen Retired Dev
Joined: 30 Jun 2002 Posts: 2805 Location: Richmond, BC, Canada
|
Posted: Tue Mar 29, 2005 2:56 pm Post subject: |
|
|
Hi, nice project. I have been playing with vte off and on to use with porthole using it's python interface.
I have been having a problem trying to get a signal back from bash when a command has completed. I have been trying to use the interactive session so that it could su, chroot, etc..
Do you know if it is possible to extract thoses signals from vte's c interface?
I am also interested in your own terminal widget if you go that route. _________________ Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch... |
|
Back to top |
|
|
Lews_Therin l33t
Joined: 03 Oct 2003 Posts: 657 Location: Banned
|
Posted: Tue Mar 29, 2005 7:08 pm Post subject: |
|
|
dol-sen wrote: | Hi, nice project. I have been playing with vte off and on to use with porthole using it's python interface.
I have been having a problem trying to get a signal back from bash when a command has completed. I have been trying to use the interactive session so that it could su, chroot, etc..
Do you know if it is possible to extract thoses signals from vte's c interface?
I am also interested in your own terminal widget if you go that route. |
Lets say that you wanted to get the output from "emerge -pv foo bar". I would do this:
Code: |
// You should connect signal handlers for text_scrolled and child_exited //
// Whenever the text scrolls up N lines, get the bottom N lines and add them to a global buffer //
// When the command has finished, child_exited will be emitted and you can parse the buffer //
gchar* packages = "foo bar"; // Get this however you want //
gchar* emerge_options = "-pv"; // example //
gchar* command_string = g_strconcat("bash -c \"emerge ", emerge_options, packages, "\"", NULL);
// At this point, command_string is what you want to invoke //
vte_terminal_fork_command(VTE_TERMINAL(terminal_widget), command_string, NULL, NULL, NULL, false, false, false);
// Cleanup in aisle 6 //
g_free(command_string);
|
You'll have to look in the source code of VTE for text_scrolled signal handling, since they didn't bother to put it in the documentation. |
|
Back to top |
|
|
uman Apprentice
Joined: 20 Dec 2004 Posts: 223
|
Posted: Wed Mar 30, 2005 5:18 am Post subject: |
|
|
I like it, thanks. _________________ Gentoo Stable (some ~x86 in package.keywords)
Pentium 4 3.0 GHz w/HT
Reiser4 root partition
Nvidia GeForce 6800
The Anti-1337 Manifesto |
|
Back to top |
|
|
Lews_Therin l33t
Joined: 03 Oct 2003 Posts: 657 Location: Banned
|
Posted: Wed Mar 30, 2005 7:11 am Post subject: |
|
|
It's official - I'm a dumbass when I'm tired...
I was doing some testing, and commented out the code to update tab/window titles. Then I forgot to un-comment the code - thus, titles are stuck with the defaults. So, you'll want to grab the new ebuild (0.2-r1) and save it to your overlay, then get the patch (gtw_window_comments.patch) and save it to your overlay files (eg, on mine it is /usr/local/portage/x11-terms/gterm/files).
The site to grab that stuff from is http://gterm.php-scripter.com/ |
|
Back to top |
|
|
Chickpea l33t
Joined: 03 Jun 2002 Posts: 846 Location: Vancouver WA
|
Posted: Wed Mar 30, 2005 9:03 pm Post subject: |
|
|
Okay, I tried this and i like it. Does what it is supposed to do. Curious however how the font gets set and if you can set a size.
i tried
Nothing happens. Am I doing it wrong? |
|
Back to top |
|
|
wdreinhart Guru
Joined: 11 Jun 2003 Posts: 569 Location: 4QFJ12345678
|
Posted: Wed Mar 30, 2005 10:09 pm Post subject: |
|
|
Chickpea wrote: | Okay, I tried this and i like it. Does what it is supposed to do. Curious however how the font gets set and if you can set a size.
i tried
Nothing happens. Am I doing it wrong? |
It needs the full name of a font. Try gterm -f "Bitstream Vera Sans Mono Bold 11" |
|
Back to top |
|
|
Lews_Therin l33t
Joined: 03 Oct 2003 Posts: 657 Location: Banned
|
Posted: Wed Mar 30, 2005 10:25 pm Post subject: |
|
|
Chickpea wrote: | Okay, I tried this and i like it. Does what it is supposed to do. Curious however how the font gets set and if you can set a size.
i tried
Nothing happens. Am I doing it wrong? |
It needs the full name of the font, and optionally the size. For example,
Quote: | gterm -f "Bitstream Vera Sans Mono" |
or
Quote: | gterm -f "Bitstream Vera Sans Mono 12" |
or
Quotes are only required for fonts with more than 1 word, or if you want to specify a size and font together. Putting them on is a good idea though, since it can't hurt. |
|
Back to top |
|
|
feld Guru
Joined: 29 Aug 2004 Posts: 593 Location: WI, USA
|
Posted: Thu Mar 31, 2005 4:13 pm Post subject: |
|
|
Code: | # $Header: $
inherit eutils flag-o-matic
DESCRIPTION="Lightweight GTK2 terminal emulator"
HOMEPAGE=""
SRC_URI="http://gterm.php-scripter.com/${P}.tar.bz2"
LICENSE="GPLv2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="virtual/x11
>=x11-libs/gtk+-2.6
>=x11-libs/vte-0.11.11-r2"
src_compile() {
cd ${S}
epatch ${FILESDIR}/gtw_window_comments.patch
cd -
emake || die
}
src_install() {
mkdir -p ${D}usr/bin/
cp ${S}/gterm ${D}usr/bin/gterm
}
|
you forgot the ${FILESDIR}/ for the epatch. It fails without.
-Feld _________________ < bmg505> I think the first line in reiserfsck is
if (random(65535)< 65500) { hose(partition); for (i=0;i<100000000;i++) print_crap(); } |
|
Back to top |
|
|
Lews_Therin l33t
Joined: 03 Oct 2003 Posts: 657 Location: Banned
|
Posted: Thu Mar 31, 2005 6:16 pm Post subject: |
|
|
feld wrote: |
you forgot the ${FILESDIR}/ for the epatch. It fails without.
-Feld |
It works on mine...anyway, thanks. Just changed the ebuild to 0.2-r2. |
|
Back to top |
|
|
chunderbunny Veteran
Joined: 31 May 2004 Posts: 1281 Location: 51°24'27" N, 0°57'15" W
|
Posted: Thu Mar 31, 2005 9:44 pm Post subject: |
|
|
Wow, this is just what I wanted, a simple GTk based term with tabs! Thanks!
Anyway, on with the the obligatory feature requests:- Any danger of a config file? I know there aren't many options yet, but it would be nice to have set of global (and user specific) options
- Is it possible to have a shortcut key for a new tab? I'm thinking ctrl-t (same as in Firefox) would be best
- Similarly, either the ability to middle click on a tab to close it, or a close button on each tab. I don't like using menus!
|
|
Back to top |
|
|
feld Guru
Joined: 29 Aug 2004 Posts: 593 Location: WI, USA
|
Posted: Thu Mar 31, 2005 9:50 pm Post subject: |
|
|
yes I really like this project. It is going to be my main terminal. I really hope you continue to work on it and add lots of features
-Feld _________________ < bmg505> I think the first line in reiserfsck is
if (random(65535)< 65500) { hose(partition); for (i=0;i<100000000;i++) print_crap(); } |
|
Back to top |
|
|
Lews_Therin l33t
Joined: 03 Oct 2003 Posts: 657 Location: Banned
|
Posted: Thu Mar 31, 2005 9:50 pm Post subject: |
|
|
chunderbunny wrote: | Wow, this is just what I wanted, a simple GTk based term with tabs! Thanks! |
No problem
chunderbunny wrote: | Anyway, on with the the obligatory feature requests:- Any danger of a config file? I know there aren't many options yet, but it would be nice to have set of global (and user specific) options
- Is it possible to have a shortcut key for a new tab? I'm thinking ctrl-t (same as in Firefox) would be best
- Similarly, either the ability to middle click on a tab to close it, or a close button on each tab. I don't like using menus!
|
1) Eventually, I want to be able to use .Xdefaults to set options automatically. I have to find out how first though...
2) It did at first, but it was interfering with some applications, so I removed it.
3) I plan to put a toggleable toolbar on with such things as New/Close Tab/Window. It's doubtful that you'll ever be able to close a tab by middle-clicking on it, since GTK+ won't tell me when that happens. If I wanted to do so, I would need to hack GTK+ itself. |
|
Back to top |
|
|
chunderbunny Veteran
Joined: 31 May 2004 Posts: 1281 Location: 51°24'27" N, 0°57'15" W
|
Posted: Thu Mar 31, 2005 10:05 pm Post subject: |
|
|
That's ok, as long as I can open/close tabs with one click instead of two. |
|
Back to top |
|
|
numerodix l33t
Joined: 18 Jul 2002 Posts: 743 Location: nl.eu
|
Posted: Thu Mar 31, 2005 10:42 pm Post subject: |
|
|
I had to change the cflags to make it compile.
Code: | # ebuild gterm-0.1.1.ebuild compile
>>> md5 src_uri ;-) gterm-0.1.1.tar.bz2
>>> Checking gterm-0.1.1.tar.bz2's mtime...
>>> WORKDIR is up-to-date, keeping...
g++ -c -Wall `pkg-config gtk+-2.0 --cflags` `pkg-config vte --cflags` -Os -ansi -fvisibility=hidden -fvisibility-inlines-hidden gterm.cpp
g++ -c -Wall `pkg-config gtk+-2.0 --cflags` `pkg-config vte --cflags` -Os -ansi -fvisibility=hidden -fvisibility-inlines-hidden gtw_tab.cpp
cc1plus: error: unrecognized option `-fvisibility=hidden'
cc1plus: error: unrecognized option `-fvisibility-inlines-hidden'
make: *** [gtw_tab.o] Error 1
make: *** Waiting for unfinished jobs....
cc1plus: error: unrecognized option `-fvisibility=hidden'
cc1plus: error: unrecognized option `-fvisibility-inlines-hidden'
make: *** [gterm.o] Error 1
!!! ERROR: x11-terms/gterm-0.1.1 failed.
!!! Function src_compile, Line 19, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message. |
gcc version 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)
EDIT: just realized you already know _________________ undvd - ripping dvds should be as simple as unzip |
|
Back to top |
|
|
|