Commit Graph

75 Commits

Author SHA1 Message Date
Michael Jennings 243e65e5a2 Sun Aug 24 11:07:54 2003 Michael Jennings (mej)
I redid the options variables and constants to try and make things
more standardized, and to make room for future toggles as well.  This
should make David Lloyd a bit happier, 'cause now we can get his patch
in here. :)

Hopefully I didn't break anything....


SVN revision: 7370
2003-08-24 15:09:32 +00:00
Michael Jennings 0784d8336b Thu Aug 21 23:51:12 2003 Michael Jennings (mej)
Oops, that wasn't *quite* what I had in mind....


SVN revision: 7362
2003-08-22 03:52:02 +00:00
Michael Jennings 6b43700de1 Thu Aug 21 23:18:23 2003 Michael Jennings (mej)
A few cosmetic changes to the source code, and a fix for Debian Bug
#176274 reported by Gerhard Tonn <GerhardTonn@gammatau.de>.


SVN revision: 7361
2003-08-22 03:19:43 +00:00
Michael Jennings 1eafc3aca5 Tue Jul 29 22:47:18 2003 Michael Jennings (mej)
Patch from David Lloyd <dmlloyd@tds.net> to support ANSI sequences for
bright colors.  I haven't tested this, so I hope it works. *grin*

Also, commented out the F1-F10 bindings in the Escreen theme; they're
too intrusive.

Added support for Ctrl-t to open a new Escreen "tab" (as with
Mozilla).


SVN revision: 7261
2003-07-30 02:50:13 +00:00
Michael Jennings 7408857d22 Tue Apr 22 11:12:26 2003 Michael Jennings (mej)
Fixed a couple minor type issues on 64-bit systems.

Cleaned up all the warnings in libscream.c and Esetroot.c.

Updated the spec file to depend on imlib2 and the JPEG/PNG loaders.
I hate to do that, but it seems necessary.


SVN revision: 6874
2003-04-22 15:14:20 +00:00
Michael Jennings 4547d54583 Wed Feb 19 11:41:00 2003 Michael Jennings (mej)
Patch from Paul Brannan <pbrannan@atdesk.com> to fix a conflict
between twin's non-standard mouse drag reporting and vim when twin
support is not enabled.


SVN revision: 6696
2003-02-19 16:42:27 +00:00
Michael Jennings ea06545d9e Mon Oct 7 22:16:38 2002 Michael Jennings (mej)
This should clean up and consolidate the size-setting and reporting to
eliminate the discrepencies sometimes seen in Escreen mode when
coupled, for example, with --buttonbar 0.  Azundris spotted this ages
ago, and I've been putting off fixing it.  But it should be all
straightened out now.


SVN revision: 6416
2002-10-08 02:18:09 +00:00
Michael Jennings 47841ac519 Sun Sep 22 00:34:42 2002 Michael Jennings (mej)
Added an option to disable the secondary screen as requested by Marc
Merlin <marc@merlins.org>.


SVN revision: 6395
2002-09-22 04:35:54 +00:00
Michael Jennings b8c1785c39 Sat Jun 8 12:46:44 2002 Michael Jennings (mej)
My own Escreen updates, primarily for devoting a dedicated buttonbar
to Escreen's use.  This keeps Escreen from trodding on your existing
buttonbar, if you have one.  It's hard-coded to bottom-dock right
now; we'll look at configuration later. :-)


SVN revision: 6308
2002-06-08 16:50:38 +00:00
Michael Jennings 92937f46a7 Sat Jun 8 11:41:37 2002 Michael Jennings (mej)
Escreen update with Twin support from Azundris <scream@azundris.com>.


SVN revision: 6307
2002-06-08 15:44:08 +00:00
Michael Jennings 981b29c895 Sun Jun 2 20:23:07 2002 Michael Jennings (mej)
Latest Escreen patch along with twin support from Azundris.


SVN revision: 6297
2002-06-03 00:24:22 +00:00
Michael Jennings 6df3396a5d Thu May 23 14:12:28 2002 Michael Jennings (mej)
More cleanups and warning removals.


SVN revision: 6275
2002-05-23 18:14:41 +00:00
Michael Jennings 9ce5b286eb Wed May 22 11:37:19 2002 Michael Jennings (mej)
Latest Escreen work from Azundris <scream@azundris.com>.


SVN revision: 6270
2002-05-22 15:38:35 +00:00
Michael Jennings 0bdd7edc63 Mon May 13 18:46:06 2002 Michael Jennings (mej)
Latest Escreen patch from Azundris <hacks@azundris.com>.


SVN revision: 6251
2002-05-13 22:47:08 +00:00
Michael Jennings 6f6ebe924f Sat May 4 11:12:19 2002 Michael Jennings (mej)
Added a --enable-escreen option for those who wish to try it out.
Also fixed the compile with Escreen and profiling are both enabled,
and disabled Escreen debugging.


SVN revision: 6203
2002-05-04 15:12:59 +00:00
Michael Jennings 92ca20bcba Sat May 4 10:23:38 2002 Michael Jennings (mej)
Ran reformat-code on the tree.

Also merged in Azundris' Escreen patch.  It's disabled by default for
the moment pending further testing, but you can enable it manually by
defining ESCREEN.


SVN revision: 6202
2002-05-04 14:25:30 +00:00
Michael Jennings e23c811747 Tue Apr 23 14:23:00 2002 Michael Jennings (mej)
Redraw the buttonbar properly when moved.  Spotted by Azundris
<hacks@azundris.com>.

Also fixed the display of underlining with fonts lacking descent.


SVN revision: 6166
2002-04-23 18:25:01 +00:00
Michael Jennings e662a53967 Sun Apr 7 21:15:09 2002 Michael Jennings (mej)
Be even more anal when dumping a buffer to a file....


SVN revision: 6110
2002-04-08 02:16:09 +00:00
Michael Jennings 1e97991b6a Mon Dec 3 20:16:39 2001 Michael Jennings (mej)
Patches from Paul Brannan <pbranna@clemson.edu>, Klaus Elsbernd
<elsbernd@dfki.uni-kl.de>, and Derrick Moser
<d2moser@calum.csclub.uwaterloo.ca> which appeared while I was away.
Fixes for mouse wheel reporting and reset handling (Paul), Solaris
portability (Klaus), and XIM (Derrick).

Getting ready to release 0.9.2 soonish.


SVN revision: 5745
2001-12-04 01:22:07 +00:00
Michael Jennings c3f775c1b5 Mon Jun 11 17:49:55 PDT 2001 Michael Jennings <mej@eterm.org>
Okay, first off, I removed 3 scaled backgrounds.  See www.kainx.org or
	my post to enlightenment-devel for details.

	Second, I redid the default bindings for the mouse wheel.  Basically,
	the wheel alone will scroll by pages.  Ctrl+wheel will scroll by pages
	in groups of 5.  Shift+wheel will scroll by a single line.  If you
	hold down the Alt key, the same combinations will work the same way,
	but instead of scrolling within Eterm, they'll scroll the application
	in the terminal (by sending PgUp/PgDn and up/down arrows).  This works
	in less, bash, and any other application which groks those keys.

	I also added a --without-mousewheel option to configure that will turn
	off the default scrollwheel bindings.  Of course, you can always use
	action bindings in the config file to bind/rebind these any way you
	like.

	While I was at it, I found and fixed a bug in the handling of the
	Alt and Meta keys.

	I added a scroll() function to the script stuff which allows you to
	bind keys/buttons to scroll up and down.  While I was at it, I added
	comments to script.c for each function you can use.

	And finally, the config file parser was moved to libast.


SVN revision: 4806
2001-06-12 01:04:45 +00:00
Michael Jennings d6cf164837 Thu May 24 00:14:54 PDT 2001 Michael Jennings <mej@eterm.org>
Finally got the selection stuff cleaned up.  Hopefully this will be
	the last time I have to deal with it for awhile.  While I was at it,
	I implemented incremental selection transfers.  Unfortunately, it
	doesn't seem like too many people support it.  kedit doesn't, and it's
	broken in Emacs (*grumble*).  Works in gvim though.


SVN revision: 4784
2001-05-24 07:17:03 +00:00
Michael Jennings bd1ed42760 This is work in progress, cleaning up the selection stuff. Still more to
do, though.


SVN revision: 4777
2001-05-19 06:56:45 +00:00
Michael Jennings 19b7d524df Sat Feb 3 18:25:45 PST 2001 Michael Jennings <mej@eterm.org>
Applied a patch from Sung-Hyun Nam <namsh@lgic.co.kr> to fix a seg
	fault bug in multi-byte pasting.


SVN revision: 4165
2001-02-04 02:27:27 +00:00
Michael Jennings 683627b0e9 Fri Dec 29 14:39:09 PST 2000 Michael Jennings <mej@eterm.org>
Moved the HAVE_SAVED_UIDS define into a configure option so that the
	FreeBSD folks will have an easier time with it.

	Fixed "make distcheck" which broke at some point.

	That X stuff in clean_exit() should only happen if we're debugging.
	Nobody but me should have to deal with those random hangs. :-)

	Added a patch for multibyte cursor support from Michael C. Wu
	<keichii@iteration.net> and Sung-Hyun Nam <namsh@lgic.co.kr>, along
	with some other FreeBSD-related patches from Mr. Wu.


SVN revision: 4065
2000-12-29 22:59:13 +00:00
Michael Jennings 2b30d160f4 Thu Nov 16 16:40:54 PST 2000 Michael Jennings <mej@eterm.org>
VA bought some licenses for Insure++, so I've been using it to audit
	Eterm.  These are just the initial results of the collaboration; there
	will most likely be more.  So far things are looking pretty good.  I
	just wish Insure++ had more helpful messages.  I'd really love to be
	able to track down those reads/writes involving freed pointers that
	it claims to have found in Imlib2....

	I also had to try and make the build work without MMX.  I did so; I
	just hope it still works *with* MMX.... =)


SVN revision: 3895
2000-11-16 23:45:01 +00:00
Michael Jennings 1bcfa73217 Wed Nov 15 14:20:13 PST 2000 Michael Jennings <mej@eterm.org>
As requested by Chris Morton <chris.morton@ericsson.com>, I added
	support for the SunCut, SunCopy, SunPaste, and SunFront keys.  The 1st
	3 operate on the xclipboard-managed "ClipBoard" buffer.  The SunFront
	key will activate Eterm's "steal focus" mechanism.


SVN revision: 3891
2000-11-15 22:21:02 +00:00
Michael Jennings f964562863 Sun Sep 17 17:29:26 PDT 2000 Michael Jennings <mej@eterm.org>
Got rid of the useless backing_store option.


SVN revision: 3520
2000-09-18 00:13:07 +00:00
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 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 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 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 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 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 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 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 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
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 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 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 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 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