Commit Graph

220 Commits

Author SHA1 Message Date
Michael Jennings c567ebcf33 Fri Sep 1 21:03:53 PDT 2000 Michael Jennings <mej@eterm.org>
I'm working on some deallocators now.  The idea is that when Eterm
	exits and memory debugging is on, several routines get called to free
	the in-use memory (menus, font cache, etc.) that we still know about.
	Anything left after that would be either unavoidable leaks (like
	environment variables...read the putenv() man page sometime...sigh)
	or genuine memory leaks that need fixing.  I'm down to about 4.5K of
	leftover malloc'd memory now.  Making progress....


SVN revision: 3295
2000-09-02 04:12:16 +00:00
Michael Jennings e1573e95c8 Fri Sep 1 15:25:28 PDT 2000 Michael Jennings <mej@eterm.org>
Okay, everything seems hunky-dorey now.  If you have memory debugging
	turned on, exiting Eterm will give a dump of the leftover allocated
	memory including where it came from and how much there is.  You'll
	also get a listing of all the remaining Pixmap ID's and GC ID's along
	with where they were created.

	I also added some macros to the debugging stuff in libmej.h so that
	if you pass the --without-debugging option to ./configure, it will
	optimize out all the ASSERT and REQUIRE goop.  This will make it
	harder to trap bugs before they cause problems, so don't do it if you
	want to help development, but if speed is critical to you, give it a
	shot.


SVN revision: 3294
2000-09-01 22:14:17 +00:00
Michael Jennings f1bf2bfb54 Fri Sep 1 00:39:41 PDT 2000 Michael Jennings <mej@eterm.org>
That should fix the crashes.  Somehow I managed to temporarily forget
	about pointer arithmetic.  And somehow I thought trying to dereference
	a pixmap ID would be a good thing.  Sigh.  I need sleep.


SVN revision: 3292
2000-09-01 07:23:08 +00:00
Michael Jennings cdbb53b4bf Thu Aug 31 23:02:10 PDT 2000 Michael Jennings <mej@eterm.org>
Still more big changes.  Working on adding pixmap and GC tracking to
	libmej using the existing allocation tracking routines.


SVN revision: 3291
2000-09-01 05:46:04 +00:00
Michael Jennings d981295368 Thu Aug 31 11:22:30 PDT 2000 Michael Jennings <mej@eterm.org>
Crap.  That was not supposed to be committed.


SVN revision: 3285
2000-08-31 18:05:14 +00:00
Michael Jennings 9a6507f458 Wed Aug 30 22:58:18 PDT 2000 Michael Jennings <mej@eterm.org>
Massive reorganization/rewrite to libmej.  It should now be 100%
	independent of Eterm.  There still may be some gremlins in the memory
	debugging code, so don't use too high a number with --debug....


SVN revision: 3282
2000-08-31 05:41:44 +00:00
Michael Jennings eb4400feea Tue Aug 22 21:35:50 PDT 2000 Michael Jennings <mej@eterm.org>
This should fix the selection problems between Eterm and other apps.


SVN revision: 3242
2000-08-23 04:18:34 +00:00
Michael Jennings f86bba3775 Tue Aug 22 21:21:20 PDT 2000 Michael Jennings <mej@eterm.org>
Color modifiers for images now work once again.  Please report any
	problems you find with them as soon as possible; I want to get 0.9.1
	out the door in the fairly near future since the TODO list for 0.9.2
	is already sizeable.


SVN revision: 3241
2000-08-23 04:04:55 +00:00
Michael Jennings 8f89a08af4 Move along, nothing to see here.
SVN revision: 2919
2000-07-15 07:12:09 +00:00
Michael Jennings 9d19817dfa Wed Jul 12 22:35:34 PDT 2000 Michael Jennings <mej@eterm.org>
Added a --cache option (and the config file attribute "cache") to
	facilitate changing the Imlib2 cache size.


SVN revision: 2917
2000-07-13 05:18:46 +00:00
Michael Jennings 49b05abd47 Mon Jul 10 20:01:53 PDT 2000 Michael Jennings <mej@eterm.org>
We no longer care about gravity.  This should help Sawfish users.


SVN revision: 2913
2000-07-11 02:44:28 +00:00
Michael Jennings 7dc3b7cafb Mon Jul 10 14:28:28 PDT 2000 Michael Jennings <mej@eterm.org>
Two more patches from Marius Gedminas <mgedmin@takas.lt>.  The first
	one allows for customization of the message displayed when Eterm goes
	into pause mode.  There are actually two; one goes in the titlebar,
	and the other is displayed in the text window.

	His second patch makes Eterm's behavior a little smarter when it
	resizes itself.  It tries to figure out which quadrant of the screen
	it's on and resizes in the most appropriate direction.  (For example,
	Ctrl-GreaterThan on an Eterm in the lower right corner will cause the
	upper left corner of the Eterm to move; the lower right corner will
	stay put.)

	Thanks again to Marius for saving me time by sending patches. :-)


SVN revision: 2912
2000-07-10 21:14:56 +00:00
Michael Jennings 6c2fb97641 Fri Jul 7 11:45:49 PDT 2000 Michael Jennings <mej@eterm.org>
Some more bits from last night's work.


SVN revision: 2908
2000-07-07 18:29:10 +00:00
Michael Jennings b05a37a6af Thu Jul 6 23:56:54 PDT 2000 Michael Jennings <mej@eterm.org>
I think I've finally fixed all those XPolyText8() errors with pixmap
	support disabled.  Solid color mode buttonbars seem to work now also.


SVN revision: 2907
2000-07-07 06:41:12 +00:00
Michael Jennings 2319bab108 Wed Jul 5 20:48:10 PDT 2000 Michael Jennings <mej@eterm.org>
Dammit.  I missed an occurance of XA_COMPOUND_TEXT().


SVN revision: 2906
2000-07-06 03:30:42 +00:00
Michael Jennings 1cab57d8d8 Wed Jul 5 20:07:09 PDT 2000 Michael Jennings <mej@eterm.org>
Hopefully this will fix the problem where the titlebar wouldn't always
	get updated with the pause mode message.


SVN revision: 2905
2000-07-06 02:49:45 +00:00
Michael Jennings d5b5f49ae8 Wed Jul 5 19:48:10 PDT 2000 Michael Jennings <mej@eterm.org>
The multibyte font size patches caused weird behavior if your
	multibyte font sizes didn't match your regular font sizes for those
	who don't actually use the multibyte support.  So I fixed that.  I
	also fixed the XA_TEXT problem for people using old/broken X.


SVN revision: 2904
2000-07-06 02:32:08 +00:00
Michael Jennings 9648bcd0a0 Wed Jul 5 18:31:39 PDT 2000 Michael Jennings <mej@eterm.org>
Several people have asked for the spec file to be in the tarball so
	that rpm -ta <tarball> works properly.  I've put it in there, but I
	don't recommend doing it that way.  I use /usr/local as my prefix, and
	there's a good chance I'll forget to change it before doing a dist
	tarball.

	I also put some dummy crap in pixmap.h so that compiling without
	Imlib2.h works again.


SVN revision: 2903
2000-07-06 01:17:20 +00:00
Michael Jennings b4fbe2a9a0 Mon Jul 3 12:50:00 PDT 2000 Michael Jennings <mej@eterm.org>
I think this --pause mechanism will be agreeable to everyone.  You can
	once again exit with any key (well, any key that has an actual
	character/string associated with it by X...not Insert, Home, etc.),
	but keys Eterm uses (like Shift-PgUp) will still work as expected.


SVN revision: 2902
2000-07-03 19:33:55 +00:00
Michael Jennings db2f3e7394 Mon Jul 3 12:17:53 PDT 2000 Michael Jennings <mej@eterm.org>
Marius Gedminas <mgedmin@takas.lt> reported a couple of issues back
	when he was on his bug-spotting binge that I didn't have time to fix
	just then.  Well, now I've fixed them.  ~/.Eterm/user.cfg will now
	be found if there isn't a theme-specific one; this allows you to have
	a single user.cfg which specifies some options you want all your
	Eterms to have.

	Along those same lines, the action code now searches for duplicate
	bindings and changes the existing one rather than adding a new one
	to the end of the list.  This allows bindings in user.cfg to override
	those in theme.cfg (as they should).  Also, bindings are added in
	reverse order, so newer ones (like in user.cfg) take precedence over
	older ones (like in theme.cfg) if there is a conflict (e.g., if your
	theme.cfg binds "anymod button2" and user.cfg binds "ctrl button2,"
	user.cfg wins).


SVN revision: 2901
2000-07-03 19:08:41 +00:00
Michael Jennings 892e32ec86 Wed Jun 28 14:14:53 PDT 2000 Michael Jennings <mej@eterm.org>
Oops!  The font size patch from the other day broke without multibyte
	font support enabled, which meant the XFree86 3.3.x people were
	screwed.  Fixed now.


SVN revision: 2893
2000-06-28 20:57:52 +00:00
Michael Jennings e458986d63 Mon Jun 26 16:54:04 PDT 2000 Michael Jennings <mej@eterm.org>
Between myself and Marius Gedminas <mgedmin@takas.lt>, I think we
	licked that BCE issue that was talked about on the mutt-dev list.


SVN revision: 2891
2000-06-26 23:37:05 +00:00
Michael Jennings 20dd18b325 Mon Jun 26 09:50:37 PDT 2000 Michael Jennings <mej@eterm.org>
Another multi-byte font support patch from Sung-Hyun Nam
	<namsh@lgic.co.kr>.


SVN revision: 2890
2000-06-26 16:33:23 +00:00
Michael Jennings 2a5d87d204 Tue Jun 20 20:01:07 PDT 2000 Michael Jennings <mej@eterm.org>
Patch from Sung-Hyun Nam <namsh@lgic.co.kr> to fix multi-byte font
	handling when the ISO-8859 font size doesn't match the multi-byte font
	size.


SVN revision: 2846
2000-06-21 02:44:29 +00:00
Michael Jennings 93c90b74bb Sat Jun 17 19:52:25 PDT 2000 Michael Jennings <mej@eterm.org>
Patch from Martin Grimm <grimm.martin@gmx.de> to fix the parsing of
	the font fx stuff.


SVN revision: 2818
2000-06-18 02:35:07 +00:00
Michael Jennings a6f80249cf Fri Jun 16 13:29:59 PDT 2000 Michael Jennings <mej@eterm.org>
Merged in a patch from Ariel Glenn <ariel@columbia.edu> to do mirrored
	image tiling in Esetroot.


SVN revision: 2785
2000-06-16 20:13:09 +00:00
Michael Jennings b24a23a052 Mon Jun 12 19:18:56 PDT 2000 Michael Jennings <mej@eterm.org>
Fixed an old rxvt bug in the handling of "\e[0m".  I *really* wish I
	had time to rewrite that damned thing.  Such a piece of crap.  Thanks
	again to Marius Gedminas <mgedmin@takas.lt> for pointing it out.


SVN revision: 2780
2000-06-13 02:02:06 +00:00
Michael Jennings 1130cf37f8 Mon Jun 12 13:33:39 PDT 2000 Michael Jennings <mej@eterm.org>
Fixes from Willem Monsuwe <willem@stack.nl> to his MMX routines.


SVN revision: 2778
2000-06-12 20:16:43 +00:00
Michael Jennings 63475cb86c Sat Jun 10 11:38:36 PDT 2000 Michael Jennings <mej@eterm.org>
Some terminfo fixes, also from Marius Gedminas <mgedmin@takas.lt>.


SVN revision: 2774
2000-06-10 18:21:35 +00:00
Michael Jennings 63a63fbec3 Fri Jun 9 22:33:29 PDT 2000 Michael Jennings <mej@eterm.org>
Fixed a seg fault when resizing to one row while on the secondary
	screen.  I have no clue how that bug crept in there all of a sudden,
	but thanks to Marius Gedminas <mgedmin@takas.lt> for pointing it out.


SVN revision: 2772
2000-06-10 05:16:26 +00:00
Michael Jennings 9286591200 Thu Jun 1 20:05:49 PDT 2000 Michael Jennings <mej@eterm.org>
Dammit!  I did something really stupid.  For anyone who doesn't know
	already, calling X from a signal handler is a NO-NO.  The *really*
	stupid part is that I already KNEW that!  *slaps self*


SVN revision: 2745
2000-06-02 02:48:47 +00:00
Michael Jennings c59b324201 Thu Jun 1 19:31:18 PDT 2000 Michael Jennings <mej@eterm.org>
Fix a potential DoS pointed out on BUGTRAQ by Kit Knox
	<kit@rootshell.com>.


SVN revision: 2744
2000-06-02 02:13:46 +00:00
Michael Jennings 47e8788bc8 Wed May 31 22:34:12 PDT 2000 Michael Jennings <mej@eterm.org>
Okay, first off I need to thank Marius Gedminas <mgedmin@takas.lt>.
	Not only did he point out several issues, he was even willing to send
	a patch. :-)

	This commit includes Marius' patch which keeps MappingNotify events
	from overriding users' modifier settings.  It also includes a fix to
	a seg fault that he pointed out when menus were loaded without the
	menu imageclass having been defined.

	He also pointed out that --pause tends to sit and spin, taking up 100%
	of the CPU time.  Funny how E-Cpu never seemed to get too bent out of
	shape over it, but he was indeed correct.

	Thus I have fixed it, and while doing so, I have changed the way it
	works.  It no longer waits for a keypress per se.  Actually, it just
	ignores the fact that its child went away and keeps right on taking
	X events.  There are a few exceptions though.  Either ESC or Ctrl-C
	will exit a paused Eterm.  Any other input that doesn't have special
	meaning to Eterm will be ignored.  (Shift-PgUp and Shift-PgDn still
	work however, as do any action bindings you may have.)


SVN revision: 2739
2000-06-01 05:24:47 +00:00
Michael Jennings cf3f7ca572 Tue May 30 08:49:43 PDT 2000 Michael Jennings <mej@eterm.org>
Fix to multibyte screen rendering from Sung-Hyun Nam
	<namsh@lgic.co.kr>.


SVN revision: 2730
2000-05-30 15:32:49 +00:00
Michael Jennings 47d87f02b0 Sun May 28 14:45:03 PDT 2000 Michael Jennings <mej@eterm.org>
My attempt to track down the strange X errors have revealed that a
	pixmap given to me by Imlib2 is getting freed somehow behind my back.
	Probably because this part of Imlib2 hadn't been tested before Eterm
	was converted. =P

	It doesn't seem to happen in XFree86 4.0; I'm wondering if XFree 4 is
	smart enough to detect double-frees of old XID's and just ignore them?
	Well, I'm going to have to add some debugging code to Imlib2 and see
	if I can track down where it's freeing my pixmaps.  But I have some
	errands to run first, so I'm going to commit this for now.  It
	shouldn't actually change any functionality.


SVN revision: 2722
2000-05-28 21:28:31 +00:00
Michael Jennings e64307644d Fri May 26 20:43:03 PDT 2000 Michael Jennings <mej@eterm.org>
Okay, there are a few changes here.  First off, I made multi-byte font
	support the default now, as long as you have ISO 10646 fonts.  In
	order to do this, I made the default encoding type "Latin1" so as not
	to interfere with 8-bit ISO 8859-1 characters.  This means that if you
	relied on the default multi-byte encoding method to be SJIS, you'll
	need to update your theme files.

	I also set it up so that Eterm will ignore SIGHUP, at least until I do
	something with it (like reloading the theme or something).

	I fixed the proportional font size algorithm.  If there is more than
	a 3-pixel variance between the minimum and maximum sizes for glyphs in
	a proportional font, Eterm will set the size to 2 standard deviations
	above the average width.  This is so that they won't look so spread
	out and ugly, but it still doesn't look perfect.  Not much I can do on
	that front...terminals must have fixed-width columns.

	And then there's the biggie.  I put in the ability to configure the
	now-infamous font effects.  I left a black drop shadow in as the
	default, but you can now customize it via the --font-fx option or in
	the config file using "font effects <stuff>" in the attributes
	context.  You can even use "fx" instead of "effects" for short.

	So what goes in the <stuff> part?  Well, you have several options.
	To use a single-color outline, say "outline <color>".  Likewise, a
	single-color drop shadow is "shadow [corner] <color>"; "bottom_right"
	is the default corner if you don't specify one.  For a 3-D embossed
	look, "emboss <dark_color> <light_color>".  The opposite, a carved-
	out look, can be had with "carved <dark_color> <light_color>".  (Of
	course, with those last two, the 3-D look will only work if you
	choose the colors wisely.)

	Those are all the shortcuts.  The long way is to specify a series of
	corner/color pairs, like "tl blue" for top-left blue, or
	"bottom_right green".  You can abbreviate using "tl," "tr," "bl," or
	"br," or you can spell out "top_left," "top_right," "bottom_left," or
	"bottom_right."  If you omit a corner name, the first one defaults to
	top-left, the second to top-right, and so on as listed above.


SVN revision: 2714
2000-05-27 03:41:22 +00:00
llane 970728fcce This is minor, mostly temporary build stuff. dh.tar.gzis uncompressed in
e/debian/. End and home keys are configured for type "linux' in Eterm.


SVN revision: 2699
2000-05-24 17:48:03 +00:00
Michael Jennings dda8ccf31f Thu May 4 00:32:45 PDT 2000 Michael Jennings <mej@eterm.org>
Added new shade/tint routines, including some done in MMX assembly, by
	Willem Monsuwe <willem@stack.nl>.  Thanks Willem!  These should prove
	to be faster than the old stuff, probably by quite a bit.


SVN revision: 2595
2000-05-04 07:22:07 +00:00
Michael Jennings e6facd5833 Wed May 3 21:04:37 PDT 2000 Michael Jennings <mej@eterm.org>
Fixed a bug in the handling of resize events thanks to a tip from
	Teodor Zlatanov <tzz@iglou.com>.  While I was at it, I also fixed a
	couple remaining issues with the popup menu system.  You shouldn't
	get any more cases where items remain selected after you've moved your
	mouse off of the menu, or where a submenu would stay up even though
	another menuitem is selected.


SVN revision: 2594
2000-05-04 03:54:28 +00:00
Michael Jennings 8d2b2125c3 Doh. I broke Imlib2-based builds. =P
SVN revision: 2591
2000-05-02 23:53:27 +00:00
Michael Jennings 4bb04764b3 Tue May 2 16:56:47 PDT 2000 Michael Jennings <mej@eterm.org>
After getting sick of hearing people whining about the obscure error
	messages that resulted from trying to build without pixmap support, I
	hacked it until it at least built without it.  I also added warnings
	to configure.in so that people would know if that happened.

	It's still not very happy running that way, which is something I need
	to fix.  But hopefully it will stop the whining.

	Yeah, right. =P


SVN revision: 2590
2000-05-02 23:46:08 +00:00
Michael Jennings afda3ff59a Thu Apr 27 19:54:28 PDT 2000 Michael Jennings <mej@eterm.org>
Made some changes to the build process that should fix things for
	people without shared library dependencies working.


SVN revision: 2570
2000-04-28 02:42:26 +00:00
Michael Jennings 3c8fa7809d Tue Apr 25 11:45:15 PDT 2000 Michael Jennings <mej@eterm.org>
Updated per changes to Imlib2 API.


SVN revision: 2536
2000-04-25 18:33:08 +00:00
Michael Jennings b3f1428d23 Mon Apr 24 20:43:00 PDT 2000 Michael Jennings <mej@eterm.org>
Found the Imlib2 bug and fixed it, so revert this hack.


SVN revision: 2534
2000-04-25 03:30:45 +00:00
Michael Jennings cd259557d7 Mon Apr 24 18:46:25 PDT 2000 Michael Jennings <mej@eterm.org>
Work around that polka-dot-making Imlib2 problem until it can be
	fixed properly.


SVN revision: 2531
2000-04-25 01:38:42 +00:00
Michael Jennings 94b6a6d426 Tue Apr 18 23:55:42 PDT 2000 Michael Jennings <mej@eterm.org>
Added the pixmap beveling support back in so that the glass theme will
	work again.  Once again, you poor 8 bpp saps are SOL.

	I also added the icon support back in, along with a new built-in icon
	courtesy of Brian McFee <keebler@sandwich.net>.


SVN revision: 2501
2000-04-19 06:46:03 +00:00
llane 2781ea571c something odd happened with DESTIR on the way to the build
SVN revision: 2497
2000-04-18 19:44:36 +00:00
Michael Jennings 1e9bf450c4 Mon Apr 17 22:25:27 PDT 2000 Michael Jennings <mej@eterm.org>
I fixed the problem reported by Joakim Bodin <bodin@dreamhosted.com>
	with spawned processes.  Also fixed Esetroot as reported by Wayne
	Johnson <bigman1@alltel.net>.

	Support for buttons higher than 5 was also added to the action
	bindings code for those (like me) with IntelliMouse Explorers and
	XFree86 4.0. :-)


SVN revision: 2494
2000-04-18 05:16:00 +00:00
Michael Jennings 84e12faee3 Thu Apr 13 21:15:03 PDT 2000 Michael Jennings <mej@eterm.org>
Fixed an image loading problem.


SVN revision: 2489
2000-04-14 04:02:42 +00:00
Michael Jennings bf64d68ef5 Wed Apr 12 21:46:41 PDT 2000 Michael Jennings <mej@eterm.org>
Fixed auto mode problems.  That was a really dumb oversight.


SVN revision: 2479
2000-04-13 04:34:33 +00:00