Commit Graph

33 Commits

Author SHA1 Message Date
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 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 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 4d1fd23d7e Tue Mar 14 19:11:26 PST 2000 Michael Jennings <mej@eterm.org>
Some further fixes for inline functions, 2 new winop actions, brand
	new and improved profiling macros, some miscellaneous fixes for SGI
	from Kimball Thurston <kimball@sgrail.com>, and more robust checking
	in the pasting code.


SVN revision: 2235
2000-03-15 03:17:45 +00:00
Michael Jennings 5a2899ac7f Thu Feb 17 21:38:23 PST 2000 Michael Jennings <mej@eterm.org>
Fixed a bug in the menu code reported by Sung-Hyun Nam
	<namsh@lgic.co.kr>.  There's also some new stuff here, but I haven't
	tried testing it at *all*, so I'm not prepared to talk about it.


SVN revision: 2093
2000-02-18 05:39:39 +00:00
Michael Jennings 42fde9c99d Thu Feb 10 15:10:01 PST 2000 Michael Jennings <mej@eterm.org>
This is the first public availability of the work thus far on Eterm
	0.9.1.  There's quite a bit of new stuff here.

	* Added scrollbar thumb support.

	* Completely redid the terminfo/termcap stuff.  The terminfo file is
	now compiled (by tic) and installed by default (unless you specify
	--without-terminfo).  The config files still say xterm, though,
	because some programs (like SLang and GNU mc) use the silly algorithm
	of "Is $TERM set to xterm?" to detect mouse reporting support in a
	terminal. =P  But if you don't ever use xterm, you can use Eterm's
	termcap and just name it "xterm" instead.  Thanks to Marius Gedminas
	<mgedmin@takas.lt> for his patch that started this whole revamp.

	* Added the kEsetroot script for KDE users from Dax Games
	<dgames@isoc.net>.

	* You can now configure the Home and End emulation via --with-home=
	and --with-end= options to configure.  The --with-terminfo option is
	also new, and --enable-xim is now the default.

	* Added a new image state, disabled, for when Eterm loses focus.  This
	is supported by all widgets (well, all those that could possibly be
	on screen when Eterm lost focus), even the background image.  So you
	could actually have all your images darken on focus out and restore
	to normal on focus in.

	* Widget colors formerly dealt with as colors (menu text color,
	scrollbar color, etc.) are now handled by the imageclasses.  Each
	image state can have a foreground and background color defined.  The
	current exception is the background image; I hope to add that later.
	The foreground is the text color and the background is the object
	color (for solid color mode).  So menu text color is set by the menu
	imageclass.  And again, for unfocused colors, use the disabled state
	of the imageclass.

	* Proportionally-spaced fonts are now handled much better.  They are
	still forced into evenly-spaced columns (it's a terminal for crying
	out loud!) but at least you don't end up with Eterm's wider than your
	screen. :-)

	* Home on refresh is gone, as is home on echo.  It's now much simpler.
	There are two options:  home on output, and home on input, the former
	being a combination of echo and refresh.  Also, keypresses that don't
	necessarily have corresonding output can trigger a home on input,
	like Ctrl-End or whatever...ones that don't have special meaning.
	Credit to Darren Stuart Embry <dse@louisville.edu> for pointing out
	this issue and the one with "m-" in font names.

	* I finally got around to re-merging the new parser stuff from my
	work on the Not Game.  Closed up some old potential behavior quirks
	with theme parsing.

	* Added a new escape sequence to fork-and-exec a program.  Also added
	a scrollback search capability to highlight all occurances of a string
	in your scrollback buffer.  Use the new "Etsearch" utility to access
	it.  "Etsearch string" to search for a string, then "Etsearch" by
	itself to reset the highlighting.

	* And of course, the biggie.  Eterm now supports a completely-
	customizeable buttonbar.  Not a menubar, a buttonbar.  It can have an
	arbitrary number of buttons, and each button can perform an action,
	just like a menuitem.  So a button could bring up a menu (like a
	menubar) or launch a program (like a launchbar) or perform an
	operation (like a toolbar).  Each button can have an icon, text, or
	both.  And you can have buttons left- or right-justified in the
	buttonbar.  You will eventually be able to have an arbitrary number
	of buttonbars, but I'm still working on that.

	As with any change this big, things could very easily be broken.  So
	beware. :-)  I have tested this myself, and everything seems to work,
	but I can't test every possibility.  Let me know if you find anything
	that's broken, and enjoy!


SVN revision: 2048
2000-02-11 00:25:07 +00:00
Michael Jennings c61eca1900 Try this....
SVN revision: 1974
2000-01-25 21:26:16 +00:00
Michael Jennings baa4e7ee51 Tue Jan 18 21:17:24 PST 2000 Michael Jennings <mej@eterm.org>
Finally got around to adding a bevel to the edges and solid-color
	menus.  Also added arrows for submenus.


SVN revision: 1950
2000-01-19 05:18:14 +00:00
Michael Jennings b329b52608 Tue Jan 18 20:16:01 PST 2000 Michael Jennings <mej@eterm.org>
Updated the menu files to include all the new images in the background
	collection.  Also fixed a bug with solid-color menus and menus where
	the selected state was not defined.


SVN revision: 1949
2000-01-19 04:17:20 +00:00
Michael Jennings 67e4e8d959 Tue Jan 11 23:47:36 PST 2000 Michael Jennings <mej@eterm.org>
More fixes with menus and transparency.  After you build this version,
	check out the brand new "glass" theme at http://www.eterm.org/.  It
	looks sweet. :-)


SVN revision: 1905
2000-01-12 07:49:02 +00:00
Michael Jennings 8654a43109 Mon Jan 10 14:47:33 PST 2000 Michael Jennings <mej@eterm.org>
Fixed the problem with menus in auto mode.


SVN revision: 1884
2000-01-10 09:41:12 +00:00
Michael Jennings 0c66bab547 Wed Jan 5 21:23:56 PST 2000 Michael Jennings <mej@eterm.org>
Copyright date updates.


SVN revision: 1860
2000-01-05 17:34:32 +00:00
Michael Jennings b1d55e271d Wed Dec 29 12:32:19 PST 1999 Michael Jennings <mej@eterm.org>
I think I've finally got the menu behavior working right.  Menus now
	move themselves if needed, and exposes are now handled properly.


SVN revision: 1782
1999-12-29 10:36:38 +00:00
Michael Jennings fa9da4f7eb Thu Dec 2 22:18:51 PST 1999 Michael Jennings <mej@eterm.org>
A good number of changes here.  First off, since nobody reported any
	bugs with the new font stuff, I switched the multibyte fonts over to
	use it as well.  They do use the same font index, however, in order to
	keep the sizes matched up.

	I also fixed up the modifier stuff so that Meta and Alt are matched
	by KeySym rather than assuming Mod1.  I also took care of the action
	dispatcher so it would keep up with these changes.

	To go along with this, I added 3 new options and config file
	attributes which allow you to set the modifier that should represent
	Meta, Alt, and NumLock.  This overrides the automatically-detected
	X server settings.

	I also applied some fixes to the XIM code from Sung-Hyun Nam
	<namsh@lgic.co.kr>.


SVN revision: 1482
1999-12-03 02:31:33 +00:00
Michael Jennings c00ecb143c Fri Nov 19 23:05:31 PST 1999 Michael Jennings <mej@eterm.org>
Once again, I've rendered old themes obselete. :-)

	I added a new config file attribute and command-line parameter.  The
	option is --default-font-index, but I wouldn't necessarily use it.
	The config file attribute makes more sense. :-)

	Anyway, your themes will now need to have a line like this:

	    font default <index>

	in the attributes section.  This tells Eterm which font it should use
	on startup.  (<index> is a number between 0 and the highest-numbered
	font you define.)  You can now have up to 256 fonts.  Font 0 is no
	longer necessarily the default font; it is the smallest font.  And the
	larger the font index, the larger the font should be.  (Of course,
	this assumes you want Ctrl-> and Ctrl-< to increase/decrease your font
	size.  In reality, you can have your fonts in any order, and those
	keys will cycle through them in order.)

	Before, font 0 was always the default, and you didn't have much
	freedom in rearranging your fonts.  Plus, you were limited to 5.  Not
	any more. :-)  The new system is much more straight-forward, logical,
	and powerful.

	So please be sure to update your themes by hand, or remove your theme
	directory before installing this new version.  If your theme lacks
	the "font default" line, your Eterms will start with the wrong font.
	:-]


SVN revision: 1344
1999-11-20 05:17:29 +00:00
Michael Jennings c58c7d411b Thu Nov 18 21:47:02 PST 1999 Michael Jennings <mej@eterm.org>
I've rewritten almost the entire scrollbar.  It mostly works, but it
	still has issues.  I've put an #error directive in so that it won't
	compile; take it out if you *really* wanna try it.  It's much more
	efficient than before.


SVN revision: 1333
1999-11-19 04:05:24 +00:00
Michael Jennings 91187b41b2 Thu Oct 28 16:09:26 PDT 1999 Michael Jennings <mej@eterm.org>
Nothing really important here.  I may have fixed the refresh problem
	that a lot of people see when switching desktops and IRC-ing in an
	Eterm, but I'm not sure.  And I have once again discovered (well,
	re-discovered actually) that the remaining bits of rxvt code in the
	scrollbar are smelly piles of poop that I really need to get around
	to fixing one of these days.


SVN revision: 1032
1999-10-28 15:22:58 +00:00
Michael Jennings c554f5917e Thu Oct 28 13:12:17 PDT 1999 Michael Jennings <mej@eterm.org>
I fixed the popup scrollbar bug with transparency, but I fixed lots
	more than that.  I removed a lot of duplicate event handling, lots of
	duplicate redraws, and lots of unnecessary transparency updates.  In
	doing so, I fixed the latency problem people had been reporting with
	several shaded/tinted transparent Eterms while changing desktops.  I
	also threw solid color transparency support in the mix while I was at
	it.  All in all, you should notice significant speedups in transparent
	Eterms.


SVN revision: 1031
1999-10-28 14:02:35 +00:00
Michael Jennings 5c930667ec Wed Oct 27 18:46:04 PDT 1999 Michael Jennings <mej@eterm.org>
Fixed lots of issues revealed by the -ansi -pedantic flags.  The only
	warnings you get with those flags now are implicit declaration
	warnings for non-ANSI functions and warnings specific to certain OS's
	and their non-ANSI implementations of ANSI functions, neither of
	which I can do much about. :-)


SVN revision: 1010
1999-10-27 18:10:40 +00:00
Michael Jennings dad7bc5f2c Wed Oct 27 14:11:11 PDT 1999 Michael Jennings <mej@eterm.org>
64-bit cleanliness changes.


SVN revision: 998
1999-10-27 13:39:30 +00:00
Michael Jennings 11b7b87dad Fri Oct 8 15:31:49 PDT 1999 Michael Jennings <mej@eterm.org>
This should fix all the weird menu behavior from time to time (well,
	I hope it does anyway).


SVN revision: 719
1999-10-08 18:49:57 +00:00
Michael Jennings dd84c6abab Thu Oct 7 18:48:31 PDT 1999 Michael Jennings <mej@eterm.org>
Shaved off around 100 KB of memory usage per Eterm by moving more
	code into the shared library, removing lots of unneeded variables, and
	fixing some small leaks here and there.


SVN revision: 710
1999-10-07 22:18:14 +00:00
Michael Jennings 83146208c7 Thu Oct 7 16:12:38 PDT 1999 Michael Jennings <mej@eterm.org>
Auto mode has been fixed to work with the newest E.  If you don't have
	the newest E, it won't work.  So don't bug me about it; just upgrade.
	Your version of E must be dated October 7th or later, or all bets are
	off.

	I also cleaned up some stuff to save lots of unnecessary redraws and
	(if you're in auto mode) E IPC transactions.

	A bug in the value set for $IFS was also fixed.  Thanks to Kimball
	Thurston <kimball@sgrail.com> for pointing out my oversight.

	Furthermore, I added a parameter to the --enable-multi-charset option
	for configure.  You can now specify =utf-8 to get UTF-8 fonts for the
	multi-byte mode stuff.  If you pass =kanji (or no value at all), you
	will still get the old Kanji fonts.  If you use multi-byte Eterm and
	have a set of fonts for other setups (Big 5, Cyrillic, etc.), please
	let me know and I'll add a parameter for those too.


SVN revision: 706
1999-10-07 19:47:14 +00:00
Michael Jennings c4163c0062 Thu Sep 23 17:15:27 PDT 1999 Michael Jennings <mej@eterm.org>
Well, we're to the point of asking E to render the submenu image, but
	it keeps returning null pixmaps. =]  I'll have to dig deeper.


SVN revision: 388
1999-09-23 23:27:16 +00:00
Michael Jennings f3c6a56ace Tue Sep 21 20:00:50 PDT 1999 Michael Jennings <mej@eterm.org>
Initial work on font caching.  WARNING:  This code is broken and will
	not compile, but I'm going home anyway.


SVN revision: 362
1999-09-22 02:34:13 +00:00
Michael Jennings e700e69dff Mon Sep 20 18:32:01 PDT 1999 Michael Jennings <mej@eterm.org>
Lots of changes here.  First off, this should fix the background draw
	bug with transparency that several people pointed out.  While I was
	at it, I also cleaned up a lot of other related stuff.  Three-state
	images should be a lot more robust now.

	Then again, some stuff may be broken entirely from this, so let me
	know. :-)

	For one thing, the various image modes should work as expected now.
	You can allow and disallow modes for the various widgets.  The
	fallback mode is "solid" now, rather than "image," so you can cause
	a certain widget to refuse to use an image if you want to.  If you
	specify an image without specifying a "mode" line that allows the
	"image" mode, your image will not appear. <-- READ THIS TWICE!  I
	had to go back and fix all the theme files because of this, so you
	will need to remove your current theme directory and allow Eterm's
	"make install" to put the new ones in place; otherwise, everything
	will go back to being solid colors. =]

	Anytime something changes this drastically, there are bound to be
	problems.  Let me know if you find any of them. :)


SVN revision: 348
1999-09-21 01:16:46 +00:00
Michael Jennings e4070d2075 Reverting last change for now. Something's very wrong here.
SVN revision: 347
1999-09-20 23:57:57 +00:00
Michael Jennings 933cb583be Mon Sep 20 16:08:41 PDT 1999 Michael Jennings <mej@eterm.org>
Lots of changes here.  First off, this should fix the background draw
	bug with transparency that several people pointed out.  While I was
	at it, I also cleaned up a lot of other related stuff.  Three-state
	images should be a lot more robust now.

	Then again, some stuff may be broken entirely from this, so let me
	know. :-)

	For one thing, the various image modes should work as expected now.
	You can allow and disallow modes for the various widgets.  The
	fallback mode is "solid" now, rather than "image," so you can cause
	a certain widget to refuse to use an image if you want to.  If you
	specify an image without specifying a "mode" line that allows the
	"image" mode, your image will not appear. <-- READ THIS TWICE!  I
	had to go back and fix all the theme files because of this, so you
	will need to remove your current theme directory and allow Eterm's
	"make install" to put the new ones in place; otherwise, everything
	will go back to being solid colors. =]

	Anytime something changes this drastically, there are bound to be
	problems.  Let me know if you find any of them. :)


SVN revision: 345
1999-09-20 23:08:00 +00:00
Michael Jennings 7ee0bc1332 Thu Sep 16 16:21:22 PDT 1999 Michael Jennings <mej@eterm.org>
Fixed a possible null-byte overflow in the menu code.

	Also, there seems to be a memory leak in XLoadQueryFont() in some
	versions of XFree86 3.9.x, so I removed the unnecessary "font" lines
	from the themes for the time being.


SVN revision: 296
1999-09-16 22:40:44 +00:00
Michael Jennings 0ac77bdb2f Mon Sep 13 12:23:36 PDT 1999 Michael Jennings <mej@eterm.org>
Removed the tn3270 theme, which nobody uses, and added the cEterm
	theme.  You get the same colors as Alfredo's original script, but
	without all the crap on the command line. :-)


SVN revision: 261
1999-09-13 19:18:20 +00:00
Michael Jennings b89ca88e52 Fri Aug 20 13:23:44 PDT 1999 Michael Jennings <mej@eterm.org>
Since Mr. Kletnieks reminded me that I never finished it, I finally
	implemented support for right-justified menu text. :-)  Now you'll
	know why some of those menus seemed unnecessarily wide.


SVN revision: 64
1999-08-20 20:25:04 +00:00
Michael Jennings 022e3021d3 Thu Aug 19 16:45:36 PDT 1999 Michael Jennings <mej@eterm.org>
Applied patch from Valdis Kletnieks <valdis.kletnieks@vt.edu> which
	reduces the amount of excess space in menus when using proportional
	fonts.


SVN revision: 61
1999-08-19 23:48:05 +00:00
Michael Jennings 661b1b9448 Tue Aug 17 18:06:01 PDT 1999 Michael Jennings <mej@eterm.org>
Now that we have a fixed CVS server....  This includes the old 0.8.10
	code, but it's now 0.9.  It also includes a timer subsystem.


SVN revision: 52
1999-08-18 01:12:47 +00:00