Commit Graph

189 Commits

Author SHA1 Message Date
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
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
Michael Jennings dfc718de71 Wed Apr 12 21:18:19 PDT 2000 Michael Jennings <mej@eterm.org>
This is the initial commit with Imlib2 support.  READ THIS CAREFULLY.
	There is important information in this commit message that will keep
	you from getting screwed.

	First off, support for Imlib 1.x is GONE.  It is no longer supported
	as of now.  If you want to continue using it, do NOT install this
	version.  I tried to support both for awhile, but the code ended up
	being way too ugly and hackish.  Imlib2 is the future.  And trust me,
	when you see what we do with this future, you'll be happy for the
	switch.

	The good news is that most of the basics work.  Transparency still
	works, and the basic image stuff works.  Most users won't notice any
	major problems, so long as your Imlib2 is 100% up-to-date.

	However, a few things still don't work:

	1.  Auto mode is a bit broken.  You'll get X errors in XFree86 4.0.
	Don't use it if you're running XFree 4.

	2.  Color modifiers for images don't work.  At all.

	3.  Transparency shading/tinting will not work in 8bpp or lower.  Life
	blows sometimes.  Sorry.  Time for a real video card. :-)

	4.  The built-in icon is broken.

	5.  You WILL need to update your theme.cfg files.  The borders on the
	horizontal and vertical bar images were incorrect when combined with
	the new anti-aliased scaling.  The horizontal bars should have a right
	border of 3.  Vertical bars should have a bottom border of 3.  The
	menu images should have both right *and* bottom borders of 3.  You can
	either make those changes by hand, or use the --with-theme-update
	option to autogen.sh.  Your call.

	I think that covers everything I've run into.  I will point out that
	I don't really take advantage of a lot of the Imlib2 features just
	yet.  My first priority is to make all the stuff that worked before
	work again (or at least the important stuff).  Then I'll work on
	new features.

	So there it is.  If you're not ready for it, don't use it.  But if you
	are, I hope you like it.


SVN revision: 2478
2000-04-13 04:19:05 +00:00
Michael Jennings ac4f703548 Wed Apr 5 21:48:39 PDT 2000 Michael Jennings <mej@eterm.org>
There are now two different sets of settings you can save.  You can
	save user settings, which are the things that one would generally
	consider to be user-specific (toggles, text colors, etc.).  You can
	also save theme settings, which saves *everything*, including the
	stuff that user settings don't include (like imageclasses, menus,
	etc.).  Settings are saved to user.cfg and theme.cfg, respectively.

	Also, Eterm will now detect if it cannot write to the location from
	which it got the theme (i.e., a system-wide directory), and will fall
	back on ~/.Eterm/themes/<theme>.  It WILL create this directory tree
	if it does not already exist.

	Hopefully this will make more people happy. :-)


SVN revision: 2440
2000-04-06 04:52:52 +00:00
Michael Jennings d922e2ce53 Mon Apr 3 16:42:06 PDT 2000 Michael Jennings <mej@eterm.org>
Added a --buttonbar option to force on/off all your buttonbars.


SVN revision: 2423
2000-04-03 23:43:15 +00:00
Michael Jennings f2badab9b8 Fri Mar 31 15:12:37 PST 2000 Michael Jennings <mej@eterm.org>
Added the escape sequence for the "no input" option.  "\e]6;27\a".


SVN revision: 2401
2000-03-31 23:13:57 +00:00
Michael Jennings 94f00a7923 Thu Mar 30 20:34:10 PST 2000 Michael Jennings <mej@eterm.org>
Quick little option -q/--no-input.  It keeps Eterm from accepting
	keyboard input, and keeps the window manager from focusing it.  Useful
	for log tailers and such, maybe.  This feature was requested by
	Peter Ward <than@ilm.com>.  I will be adding an escape sequence to
	toggle this.


SVN revision: 2398
2000-03-31 04:38:01 +00:00
Michael Jennings 4835a373b6 Tue Mar 28 18:42:09 PST 2000 Michael Jennings <mej@eterm.org>
Tint by number or color, and shade by percentage, are now available
	via the "\e]6;2;" escape sequence.  For example, "\e]6;2;shade;10\a"
	will shade the background by 10%.  "\e]6;2;tint;lightblue\a" will give
	the background a light blue tint.  "\e]6;2;shade;sa;30\a" will give a
	30% shade to the scrollbar anchor.


SVN revision: 2370
2000-03-29 02:44:41 +00:00
Michael Jennings 2d1e1a8e07 Tue Mar 28 12:31:06 PST 2000 Michael Jennings <mej@eterm.org>
You can tint by X color values (like "grey75" or "MidnightBlue" or
	"#8080ff").  Severely twisted. :-)


SVN revision: 2363
2000-03-28 20:32:42 +00:00
Michael Jennings 411c5312c9 Mon Mar 27 19:08:03 PST 2000 Michael Jennings <mej@eterm.org>
--shade and --tint have returned with the same syntax as before.


SVN revision: 2357
2000-03-28 03:08:46 +00:00
Michael Jennings 46c04cd733 Mon Mar 27 12:48:09 PST 2000 Michael Jennings <mej@eterm.org>
Some quick fixes from Cale Gibbard <gibbard@bfree.on.ca> for the color
	changing stuff.


SVN revision: 2352
2000-03-27 20:49:34 +00:00
Michael Jennings 6d3c3ff6dc Fri Mar 24 18:16:02 PST 2000 Michael Jennings <mej@eterm.org>
Added a patch from Kimball Thurston <kimball@sgrail.com> for XIM.  I
	also added support for two new escape sequences at the request of
	Cale Gibbard <gibbard@bfree.on.ca>.  "\e]Pnrrggbb" can now be used
	to modify the color palette at runtime, and "\e]R" will restore the
	defaults.  These are compatible with the Linux console.


SVN revision: 2323
2000-03-25 02:18:14 +00:00
Michael Jennings 22160247e4 Fri Mar 17 18:27:51 PST 2000 Michael Jennings <mej@eterm.org>
I added accelerated scrollwheel support.  I also added a #define in
	src/feature.h for specifying the number of lines of context to keep
	when paging up or down.

	Also, we're back to the old behavior where home on input won't be
	triggered unless the key pressed has an associated string value.  I
	went back on this because Shift causing a jump to the bottom was
	really annoying when trying to Shift-PgUp or Shift-PgDown.  Sorry,
	Darren, but you lose.


SVN revision: 2270
2000-03-18 04:55:14 +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 c9a97e46be Wed Mar 8 19:35:36 PST 2000 Michael Jennings <mej@eterm.org>
Added a new --pipe-name option to allow Eterm to read from a console
	device/tty/pipe other than /dev/console.  This is useful for folks on
	Debian, where "console" messages actually go to the /dev/xconsole
	named pipe rather than to /dev/tty0.


SVN revision: 2212
2000-03-09 03:38:31 +00:00
Michael Jennings 607268f595 Mon Mar 6 21:11:13 PST 2000 Michael Jennings <mej@eterm.org>
Added a new option.  -0 (that's a zero) or --itrans will invoke the
	immotile optimization for transparency, so named because it works best
	on windows that don't move around much on the desktop.  It works even
	better for windows that are sticky between desktops.  So if you have
	logging windows (running tail -f and the like) that are shaded/tinted,
	you definitely want to have this.  It will even benefit ordinary Eterm
	windows, provided you don't move them around a lot.  Eterms that do
	not change desktops may be better off with the other way; Eterms that
	are not shaded or tinted at all will not behave any differently.

	Here's the technical explanation for those who are interested.  The
	old (and still the default) behavior is for Eterm to check to see if
	any color modifiers are applied to the image_bg class, and if so, to
	make a copy of the *entire* desktop image which is then shaded/tinted
	appropriately.  It then snapshots a portion of that for the actual
	background.  This way, if the Eterm window is moved, all the shading
	and tinting will have already been done, so all it has to do is grab
	another portion of the desktop and use it.  However, this involves a
	LOT of calculations (one per pixel of the desktop pixmap) on startup
	and at every desktop switch.

	The immotile optimization is intended to reverse that logic by
	optimizing for windows that do not move (hence the term "immotile").
	It takes the snapshot of the desktop pixmap and applies any shading
	or tinting *after* taking the portion it needs.  This requires much
	fewer calculations on startup and when changing desktops, but the
	entire set of calculations must be repeated whenever the window is
	moved.  This is fine for small windows or windows that don't move
	very often, but that's not always the case.  So it is to your
	advantage to pick one or the other depending on how you use each
	particular theme or window.

	Two notes.  One, keep in mind that the -0/--itrans option doesn't
	*activate* transparency; you still need -O/--trans for that.  Two,
	this does not affect Eterms with no color modifiers applied to the
	background.  In that case, Eterm still references the existing
	desktop pixmap to save memory.


SVN revision: 2191
2000-03-07 05:30:33 +00:00
Michael Jennings 32a72bb631 Fri Mar 3 21:05:11 PST 2000 Michael Jennings <mej@eterm.org>
Tom Gilbert <gilbertt@tomgilbert.freeserve.co.uk> spotted a fallback
	issue with colors which I have now fixed.  Tom, your e-mail address is
	too damned long.  Just thought you should know.


SVN revision: 2181
2000-03-04 05:07:14 +00:00
Michael Jennings 2234e70dd9 Fri Mar 3 20:23:37 PST 2000 Michael Jennings <mej@eterm.org>
I did some optimizations for expose handling and full-screen redraws.
	It will have a greater impact on those who don't use double buffering.
	:-)


SVN revision: 2180
2000-03-04 04:25:23 +00:00
Michael Jennings 202912084a Thu Mar 2 21:40:09 PST 2000 Michael Jennings <mej@eterm.org>
This fixes yet another resize-to-crash bug, this time with various
	applications which use the secondary screen (mutt, mc, vim, etc.).
	The fix is deceptively simple and does not convey the fact that it
	took around 3 hours to track this bastard down.  Credit to Marc Merlin
	<marc@merlins.org> for first pointing this out and for helping me
	track it down.  And credit to Gray Watson for dmalloc, which has saved
	my ass once again.


SVN revision: 2172
2000-03-03 05:43:53 +00:00
Michael Jennings 1ce4f9c088 Thu Mar 2 09:47:30 PST 2000 Michael Jennings <mej@eterm.org>
Right.  How the hell did I miss that?!  Thanks again Valdis.


SVN revision: 2169
2000-03-02 17:48:30 +00:00
Michael Jennings 8e9f100232 Wed Mar 1 18:37:18 PST 2000 Michael Jennings <mej@eterm.org>
I'm still not done with the commenting work I've been doing, but I've
	made some fixes, so I figured it was time to commit what I've done so
	far.

	I've added support for multi-byte selection/pastes from programs like
	Netscape, thanks in part to a patch from Yasuyuki Furukawa
	<yasu@on.cs.keio.ac.jp>.  I've also applied a bugfix for pty
	allocation on Irix from David Kaelbling <drk@sgi.com>, a display
	bugfix pointed out by Valdis Kletnieks <Valdis.Kletnieks@vt.edu>, and
	a fix for a missing menu in the auto theme discovered by someone on
	IRC.

	I've also added quite a few comments to term.c to help people grok
	the parsing of escape sequences a little better.


SVN revision: 2168
2000-03-02 03:31:41 +00:00
Michael Jennings d2ca8950e1 Fri Feb 18 21:09:29 PST 2000 Michael Jennings <mej@eterm.org>
Okay, I've added a new option to configure.  --config-buffer-size=NNNN
	will set the theme parser's line buffer size.  What does this mean?
	Well, this determines how big a line being parsed can get at any one
	stage of parsing.  So if you use %dirscan() on a large directory, or
	you use %random() on a large list, or you simply have some very large
	lines in your config file, making this buffer size larger will enable
	them to be handled.  The down side to this is that your Eterms will
	appear to take up more memory.  In reality they don't, since all that
	memory gets freed, but it isn't returned to the OS until Eterm exits,
	and the RSS won't go down unless part or all of Eterm is swapped out
	by the OS.  So you've been warned. :-)

	For those who didn't go digging by themselves, what I added yesterday
	were three new builtin functions:

	%get(variable)         Retrieves the value of a theme variable
	%put(variable value)   Sets the value of a theme variable
	%put(variable)         Removes a theme variable
	%dirscan(directory)    Returns a list of the files in a directory

	Everything here should be fairly self-explanatory.  The variables
	are internal to Eterm.  They will last until Eterm exits, so you
	can refer to them in later theme files, unless of course you call
	%put() with a variable but no value (which removes the variable).
	Also note that %dirscan() returns only the filenames, not the
	full pathnames.  This is for two reasons:  One, you already know the
	path to the file since you specified it.  Two, it enables handling of
	directories with larger numbers of files since the path isn't
	uselessly duplicated for each entry it generates.

	These new functions will be the backbone for a new random background
	system since the *.list files are rather clumsy in a lot of ways.  I
	am not yet sure how it will work exactly, but I know I'll need these
	functions to do it. :-)


SVN revision: 2104
2000-02-19 06:29:37 +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 98797354ac Thu Feb 17 15:13:20 PST 2000 Michael Jennings <mej@eterm.org>
Fixed a bug with background colors and proportional fonts.  Also added
	an escape sequence, \e]30;<filename>\a, to dump the scrollback buffer
	to a file.  You will not get colors, or bold, or underlining, or any
	other rendering information.  Just the text.  Linebreaks will appear
	as they do on the screen.


SVN revision: 2090
2000-02-17 23:15:19 +00:00
Michael Jennings 738565cd80 Wed Feb 16 14:58:51 PST 2000 Michael Jennings <mej@eterm.org>
Fix the XIM input positioning to work with the buttonbar.


SVN revision: 2082
2000-02-16 22:59:54 +00:00
Michael Jennings af082c9a22 Tue Feb 15 19:31:04 PST 2000 Michael Jennings <mej@eterm.org>
The buttonbar can now be toggled on and off both in the config file
	and via an escape sequence.  The themes in CVS use Ctrl-Shift-Button3.
	You can also specify in the config file whether to dock the buttonbar
	at the top or the bottom of the Eterm window.  You can't move it on
	the fly yet, but that will come.

	I also fixed resizing so that the term window didn't redraw itself
	unnecessarily.  Hopefully I didn't break anything in the process.  :-)

	Plus, I fixed poor handling of X-generated ConfigureNotify events, and
	the terminfo stuff is now done at install time instead of build time.


SVN revision: 2077
2000-02-16 03:37:34 +00:00
Michael Jennings 16580dfd29 Mon Feb 14 16:35:01 PST 2000 Michael Jennings <mej@eterm.org>
Oops.  Little variable clash there.  Always ended up with
	$ETERM_*_ROOT set to "in".  I finally got around to investigating it.
	:-)


SVN revision: 2076
2000-02-15 00:36:43 +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 ee7c001c4a Fri Jan 21 18:40:13 PST 2000 Michael Jennings <mej@eterm.org>
Apparently someone was confused by the out-of-date README file, so I
	updated it.


SVN revision: 1959
2000-01-22 02:40:49 +00:00
Michael Jennings 8cb728ab7f Fri Jan 21 12:52:26 PST 2000 Michael Jennings <mej@eterm.org>
Fixed an off-by-one error in the scrollbar click-handling pointed out
	by Malcolm Tredinnick <malcolmt@smart.net.au>.


SVN revision: 1958
2000-01-21 20:53:49 +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 369cb91d6d Tue Jan 18 16:47:54 PST 2000 Michael Jennings <mej@eterm.org>
Some background-related changes since I'm redoing the backgrounds
	collection (i.e., removing the cool-but-too-busy-or-bright pics).


SVN revision: 1943
2000-01-19 00:49:05 +00:00
Michael Jennings 0350f7dead Mon Jan 17 13:27:52 PST 2000 Michael Jennings <mej@eterm.org>
Fix XK_KP_Insert and XK_KP_Delete to respond to the application keypad
	setting.


SVN revision: 1935
2000-01-17 21:29:27 +00:00
Michael Jennings b452a54bee Mon Jan 17 13:09:37 PST 2000 Michael Jennings <mej@eterm.org>
Fixed the faulty assumption that font->per_char is always non-NULL.


SVN revision: 1934
2000-01-17 21:10:44 +00:00
Michael Jennings 0739b291c2 Fri Jan 14 16:34:13 PST 2000 Michael Jennings <mej@eterm.org>
Fixed a minor emulation problem pertaining to the down arrow on the
	keypad thanks to a patch from Marius Gedminas <mgedmin@takas.lt>.


SVN revision: 1918
2000-01-15 00:37:22 +00:00
Michael Jennings 7baf006cd3 Wed Jan 12 00:14:11 PST 2000 Michael Jennings <mej@eterm.org>
This should fix the NONE problem.


SVN revision: 1906
2000-01-12 08:14:45 +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 48000815d7 Mon Jan 10 16:55:51 PST 2000 Michael Jennings <mej@eterm.org>
Fixed some transparency issues noticed by keebler
	<keebler@sandwich.net>.


SVN revision: 1887
2000-01-10 11:48:13 +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 653e879909 Fri Jan 7 20:11:48 PST 2000 Michael Jennings <mej@eterm.org>
A patch from Sung-Hyun Nam <namsh@lgic.co.kr> to improve multi-byte
	font configuration in the default theme files.


SVN revision: 1870
2000-01-07 15:51:22 +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 7830619d07 Tue Jan 4 14:13:48 PST 2000 Michael Jennings <mej@eterm.org>
Some minor optimizations I did while looking into a bug report.


SVN revision: 1842
2000-01-04 10:46:47 +00:00
Michael Jennings d7aae78488 Mon Jan 3 19:36:16 PST 2000 Michael Jennings <mej@eterm.org>
Fixed a seg fault on large resizes.  Also redid some of the memory
	tracking code to provide more information.


SVN revision: 1837
2000-01-03 16:23:56 +00:00
Michael Jennings ea41c7f739 Mon Jan 3 12:47:59 PST 2000 Michael Jennings <mej@eterm.org>
Fixed the bug with a solid scrollbar not updating colors when the
	focus changed.  Pointed out by cirin <stevenr@houston.rr.com>.


SVN revision: 1824
2000-01-03 09:40:14 +00:00
Michael Jennings 04b6556890 Mon Jan 3 11:14:27 PST 2000 Michael Jennings <mej@eterm.org>
First commit of the new year!  (Notice I didn't say the new millenium,
	since *that* doesn't start until Jan 1, 2001.)

	This should hopefully fix the bug where dead keys would bring up the
	menu.


SVN revision: 1823
2000-01-03 08:07:32 +00:00
Michael Jennings 31afa9e2a8 Thu Dec 30 14:55:59 PST 1999 Michael Jennings <mej@eterm.org>
Finally fixed the seg fault pointed out by Tom Gilbert
	<gilbertt@tomgilbert.freeserve.co.uk> back in mid-September where
	small Eterms with little or no scrollback would crash when receiving
	large amounts of data all at once.

	I also fixed a clearing issue with double buffering, and I worked
	around a really lame gdb/glibc2 bug that has prevented me from using
	gdb with Eterm for ages.


SVN revision: 1804
1999-12-30 12:44:45 +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 cebe627ab6 Tue Dec 28 11:44:10 PST 1999 Michael Jennings <mej@eterm.org>
Thanks to a cl00 from raster, double buffering is much more efficient
	now. :-)


SVN revision: 1780
1999-12-28 10:05:43 +00:00
Michael Jennings d5373ead6a Tue Dec 21 16:04:39 PST 1999 Michael Jennings <mej@eterm.org>
Fixed a little issue with setting the background pixmap to None via
	the menu.


SVN revision: 1729
1999-12-21 16:04:02 +00:00
Michael Jennings d4edaa77fc Tue Dec 21 13:19:06 PST 1999 Michael Jennings <mej@eterm.org>
Fixed the geometry handling again.  Also fixed the parsing of geometry
	strings like '-0+0'.


SVN revision: 1724
1999-12-21 13:20:32 +00:00
Michael Jennings d9251f002d Mon Dec 20 19:38:40 PST 1999 Michael Jennings <mej@eterm.org>
I fixed a bunch of double-buffering stuff here.  I'm going to use it
	by default on my own Eterms for awhile, and if I don't hit any snags,
	I'll make it the default in the themes.


SVN revision: 1708
1999-12-20 19:52:10 +00:00
Michael Jennings 1b605f362f Mon Dec 20 18:51:10 PST 1999 Michael Jennings <mej@eterm.org>
Son of a Gnea.  How did I ever get away with having *these* frikkin'
	bugs in there?! =P


SVN revision: 1704
1999-12-20 19:08:00 +00:00
Michael Jennings ce9352799c Mon Dec 13 10:00:40 PST 1999 Michael Jennings <mej@eterm.org>
A patch from Sung-Hyun Nam <namsh@lgic.co.kr> for some default Korean
        fonts.


SVN revision: 1606
1999-12-13 12:10:50 +00:00
Michael Jennings ea23f130e8 Mon Dec 13 09:42:44 PST 1999 Michael Jennings <mej@eterm.org>
Oops.  I intended to test without multi-charset before committing, but
        I seem to have forgotten to do that.  Lots and lots of people
        submitted various patches for this, but I didn't use any of them.  But
        thanks to all for pointing out my error. :-)


SVN revision: 1603
1999-12-13 11:53:54 +00:00
Michael Jennings 55ddc328cd Fri Dec 10 23:33:16 PST 1999 Michael Jennings <mej@eterm.org>
I finally got around to implementing double-buffering, although it
	seems to still have some issues with font changes.  But if you don't
	change fonts, it works great. :-)

	I also fixed the multibyte font stuff with help from Sung-Hyun Nam
	<namsh@lgic.co.kr>.  There seem to be some new issues here, though,
	with the background pixmap.  But I'm to tired to look deeper tonight.


SVN revision: 1588
1999-12-11 02:06:33 +00:00
Michael Jennings 4b9a04b001 Wed Dec 8 19:05:06 PST 1999 Michael Jennings <mej@eterm.org>
Updated the man page once again.


SVN revision: 1559
1999-12-08 21:57:44 +00:00
Michael Jennings 4af86536a7 Tue Dec 7 22:10:19 PST 1999 Michael Jennings <mej@eterm.org>
Support for RedHat's utempter library and some other fixes.  Thanks to
	Erik Troan <ewt@redhat.com> and Tim Powers <timp@redhat.com> for their
	help with this.


SVN revision: 1547
1999-12-08 01:13:44 +00:00
Michael Jennings b9864e98fe Mon Dec 6 21:53:23 PST 1999 Michael Jennings <mej@eterm.org>
Update our modifier masks when the mappings change.  Note that this
	will supercede any config file settings you have; that's life.


SVN revision: 1529
1999-12-07 01:03:49 +00:00
Michael Jennings 489e161a8e Mon Dec 6 17:30:21 PST 1999 Michael Jennings <mej@eterm.org>
I'm an idiot.  Thanks to Matthew Hawkins <matthew@topic.com.au> for
	catching my blunder.


SVN revision: 1520
1999-12-06 20:42:17 +00:00
Michael Jennings 8856f0a225 Mon Dec 6 14:05:36 PST 1999 Michael Jennings <mej@eterm.org>
Added support for the Pablo Performance Analysis Toolkit
	(http://www-pablo.cs.uiuc.edu/Software/Pablo/pablo.htm).


SVN revision: 1510
1999-12-06 17:20:16 +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 eeab8b0a87 Fri Nov 19 18:43:58 PST 1999 Michael Jennings <mej@eterm.org>
Fixed some other stuff I found, and cleaned up the remaining
	occurances of calls to the old scrollbar_show() function.


SVN revision: 1343
1999-11-20 00:51:26 +00:00
Michael Jennings eec575c1e3 Fri Nov 19 16:55:22 PST 1999 Michael Jennings <mej@eterm.org>
Okay, I think I have everything back in working order.  PLEASE test
	this thoroughly, as an awful lot has changed.  Let me know what I
	broke. :)


SVN revision: 1339
1999-11-19 23:21:09 +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 5894debb3a Wed Nov 17 18:34:43 PST 1999 Michael Jennings <mej@eterm.org>
Some selection changes and escape sequence fixes.  You can now
	specify multiple color modifier commands in a single escape sequence.
	You can also remove any existing color modifiers using "clear".


SVN revision: 1324
1999-11-18 01:21:26 +00:00
Michael Jennings 5b5d19e63b Mon Nov 15 13:20:05 PST 1999 Michael Jennings <mej@eterm.org>
Two more bugs fixed.  One, Trevor Powell <vulpine@zikzak.net> spotted
	an issue with left-side scrollbars which is now fixed.  Two...um...
	ahem.  Fixed the auto mode titlebar thing.  *cough*  Turns out I was
	doing something stupid with my IPC window (i.e., not having one) that
	caused E to ignore lots of events on my window.  Oops, sorry folks.
	raster has given me the cl00bat beating, so it's fixed now. :-]


SVN revision: 1314
1999-11-15 20:33:44 +00:00
Michael Jennings 1b2977a3d4 Fri Nov 12 19:37:35 PST 1999 Michael Jennings <mej@eterm.org>
Okay, I've fixed a lot here.  First off, I fixed the bug Gnea
	<gnea@rochester.rr.com> pointed out with toggling Max Size in E.
	Turned out to be a symptom of a much larger problem, but it should be
	fixed now.  Then I corrected the XIM issues pointed out by Sung-Hyun
	Nam <namsh@lgic.co.kr> and Jerome De Greef
	<jerome_degreef@hotmail.com>, as well as a stupid typo on my part that
	Jerome happened upon.  Next I fixed the bug Adam Lucas
	<ALucas@wcom.net> spotted with changing the scrollbar type.  While
	fixing that, I also fixed changing the scrollbar width.  Both
	operations are a lot smoother and cleaner now.


SVN revision: 1292
1999-11-13 03:15:18 +00:00
Michael Jennings e6e0a230e6 Fri Nov 12 17:55:05 PST 1999 Michael Jennings <mej@eterm.org>
This should bring the technical reference up-to-date.  Eterm IPC is
	now documented for the first time.


SVN revision: 1290
1999-11-13 01:29:53 +00:00
Michael Jennings 9cc86a983b Thu Nov 11 18:25:07 PST 1999 Michael Jennings <mej@eterm.org>
The man page should now be up-to-date for Eterm 0.9.  Please check it
	to make sure. :-)  I also fixed a few minor nits here.


SVN revision: 1259
1999-11-12 02:12:20 +00:00
Michael Jennings 1848961d4c Mon Nov 8 20:17:50 PST 1999 Michael Jennings <mej@eterm.org>
All the settings should save now, so if something doesn't work or I
	missed something, report it as a bug.

	HOWEVER!  Keep in mind that "Save Settings..." saves to a file called
	user.cfg in the current theme directory.  This means two things.  One,
	if you do not have write permissions to the current theme directory
	($ETERM_THEME_ROOT), it will fail.  Two, if you save settings to the
	default (Eterm) theme, these settings will override ALL your other
	themes!  If you save settings to the default theme, you better expect
	to get those settings everywhere, unless the other themes also contain
	user.cfg files.


SVN revision: 1214
1999-11-08 18:28:48 +00:00
Michael Jennings a1d79cbefe Mon Nov 8 18:46:52 PST 1999 Michael Jennings <mej@eterm.org>
Saving settings now works, for the most part.  Still some stuff to get
	cleaned up, but it's basically there now.


SVN revision: 1212
1999-11-08 16:52:29 +00:00
Michael Jennings da6c1894fb Fri Nov 5 13:04:36 PST 1999 Michael Jennings <mej@eterm.org>
Fixed a small geometry bug pointed out by Sung-Hyun Nam
	<namsh@lgic.co.kr>.


SVN revision: 1183
1999-11-05 11:46:33 +00:00
Michael Jennings e8e8127832 Tue Nov 2 16:53:56 PST 1999 Michael Jennings <mej@eterm.org>
Several bugs fixed here, most notably a potential seg fault in
	Esetroot, and remembering an Eterm's size works again.  Also a minor
	redraw speedup.  And %exec() now works properly instead of just
	causing Eterm to crash. :-)


SVN revision: 1153
1999-11-02 16:08:57 +00:00
Michael Jennings dfed60dd34 Fri Oct 29 16:43:19 PDT 1999 Michael Jennings <mej@eterm.org>
You can now apply additional color modifiers to the various widgets
	in transparent mode that further modify the background.  So, in other
	words, you could have a scrollbar anchor that, in the normal state,
	is darker than the transparent background, and in selected/clicked
	state, is brighter.  Or any variation on that theme. :-)

	Once you've got this version going, try the following changes to your
	trans theme's config file:

	    begin image
	      type anchor
	      mode trans allow image trans auto
	      state normal
	      file bar_vertical_1.png
              geom :scale
              border 3 3 2 2
              cmod image 192
              bevel up 1 1 1 1
              state selected
              file bar_vertical_2.png
              geom :scale
              border 3 3 2 2
              cmod image 320
              bevel up 1 1 1 1
            end image

	You'll see what I'm talking about. :-)


SVN revision: 1043
1999-10-29 15:47:25 +00:00
Michael Jennings 04bba08a8b Thu Oct 28 20:11:15 PDT 1999 Michael Jennings <mej@eterm.org>
Fixed a couple problems pointed out by Joel Lesher
	<filgy@blazenet.net> and Rahsheen Porter <strider@cipher.neuplanet.cx>
	regarding tinted/shaded transparency and a typo in the auto mode
	theme file.  Doh!


SVN revision: 1038
1999-10-28 19:22:35 +00:00
Michael Jennings 6675db306f Thu Oct 28 16:17:21 PDT 1999 Michael Jennings <mej@eterm.org>
Added an "auto" theme.  So now the correct answer to the question,
	"How do I turn on auto mode in Eterm?" is "Eterm -t auto"

	I also finally got around to fixing (again) the version numbers in the
	theme files.


SVN revision: 1034
1999-10-28 15:29:31 +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 9ce25b6ae7 Wed Oct 27 17:36:35 PDT 1999 Michael Jennings <mej@eterm.org>
Modified libtool flags per recommendation of HJ Lu <hjl@gnu.org>.


SVN revision: 1008
1999-10-27 17:00:37 +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
Mandrake 0193b323db Tue Oct 26 16:28:34 PDT 1999
(Mandrake)

    I hate the default behaviour for tripleclick, and there's an option
    to turn it off.  however, it isn't documented in the default theme
    anywhere.  So, I fixed that annoyance and put it in the sample
    Eterm theme.cfg file (set to the default value, not the OTW)


SVN revision: 990
1999-10-26 16:00:16 +00:00
Michael Jennings a54e99b6d5 Tue Oct 19 16:34:51 PDT 1999 Michael Jennings <mej@eterm.org>
This should get rid of all the warnings.  If you're running Linux and
	get warnings about setresuid, setresgid, grantpt, and unlockpt not
	having prototypes, feel free to add the following lines to your copy
	of /usr/include/unistd.h:

	/* Linux- and HP-UX-only setres?id() calls -- mej */
	extern int setresuid(uid_t ruid, uid_t euid, uid_t suid);
	extern int setresgid(gid_t rgid, gid_t egid, gid_t sgid);
	/* SVR4 PTY functions */
	extern int grantpt(int fd);
	extern int unlockpt(int fd);


SVN revision: 886
1999-10-19 17:44:02 +00:00
Mandrake 664c44bb96 Tue Oct 19 00:13:17 PDT 1999 Mandrake <mandrake@mandrake.net>
Almost all the warnings are gone.  only 3 remain on my system at home.
    two in command.c (where do I get proper prototypes for grantpt() and
    unlockpt()?) and one in options.c that is bizarre:
    options.c:3433: warning: `%x' yields only last 2 digits of year in some
    locales


SVN revision: 871
1999-10-19 01:22:10 +00:00
Mandrake fd604f2878 Mon Oct 18 23:59:17 PDT 1999 Mandrake <mandrake@mandrake.net>
More warning bashing in Esetroot.c


SVN revision: 869
1999-10-19 01:07:09 +00:00
Mandrake 4c7dd8c3b9 Mon Oct 18 19:33:26 PDT 1999 Mandrake <mandrake@mandrake.net>
Warnings begone!
	    Eterm/src/command.c still has two warnings but I don't know why
		    I didn't get rid fo them.  there are still warnings in
			    Esetroot.c and in Etbg, but I'll fix those later.


SVN revision: 866
1999-10-18 20:43:03 +00:00
Michael Jennings 85006099b6 Tue Oct 12 16:24:20 PDT 1999 Michael Jennings <mej@eterm.org>
Fixed a scrollbar refresh bug pointed out by Sung-Hyun Nam
	<namsh@lgic.co.kr>.


SVN revision: 802
1999-10-12 18:51:56 +00:00
Michael Jennings 8cab1e0245 Mon Oct 11 22:24:12 PDT 1999 Michael Jennings <mej@eterm.org>
Sync after resize in auto mode.


SVN revision: 800
1999-10-12 01:01:32 +00:00
Michael Jennings 8e252e121d Mon Oct 11 16:48:22 PDT 1999 Michael Jennings <mej@eterm.org>
More useless, hackish, and/or poorly-written code meets an untimely
	end.


SVN revision: 799
1999-10-11 19:29:45 +00:00
Michael Jennings 332269133d Mon Oct 11 15:54:52 PDT 1999 Michael Jennings <mej@eterm.org>
Lots of cleanups here, including a couple fixes for bugs noticed by
	Tom Gilbert <gilbertt@tomgilbert.freeserve.co.uk> and Martin Tyler
	<martin@boo.org>.  Also removed the requirement of glibc 2.1 for using
	SVR4-style pty's (/dev/pts/*) under Linux.


SVN revision: 798
1999-10-11 18:37:55 +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