Commit Graph

31 Commits

Author SHA1 Message Date
Michael Jennings 0ceb458457 Tue Aug 16 10:48:12 2005 Michael Jennings (mej)
Applied a fix from benny@sweetfactory.org for a typo in keysym
handling.

Fixed percent signs in menu files thanks to Yasufumi Haga
<yasufumi.haga@nifty.com>.

Fixed E IPC version check to work with old and new schemes.
----------------------------------------------------------------------


SVN revision: 16213
2005-08-16 14:50:49 +00:00
Michael Jennings e8d4086a4b Tue Mar 2 10:56:20 2004 Michael Jennings (mej)
New SRPM.


SVN revision: 9193
2004-03-02 15:50:00 +00:00
Michael Jennings b879cae5c2 Mon Mar 1 16:53:34 2004 Michael Jennings (mej)
Merging in new backgrounds.


SVN revision: 9178
2004-03-01 21:47:28 +00:00
Michael Jennings 2ed3fc01d4 Mon Dec 22 16:04:52 2003 Michael Jennings (mej)
Insert boobie prize here:  ---------------------------^
:(


SVN revision: 8183
2003-12-22 21:05:38 +00:00
Michael Jennings 159f33d376 Mon Dec 22 15:56:51 2003 Michael Jennings (mej)
Backported changes to menu generation.


SVN revision: 8181
2003-12-22 20:57:12 +00:00
Michael Jennings 35b9852363 Thu Oct 31 11:52:59 2002 Michael Jennings (mej)
Argh!  Last-minute discoveries....


SVN revision: 6438
2002-10-31 16:53:30 +00:00
Michael Jennings a74ae94c5a Sun Oct 13 00:57:37 2002 Michael Jennings (mej)
Moved "Escreen" menu to the new Escreen theme so it's no longer
hard-coded.

Added interactive prompting to search() script routine.

Changed dialog() routine to exec_dialog() and added editing of its
command line.

Added msgbox() script routine to display a message and wait for a
keypress.

Fixed a memory leak in the menu_dialog() function.  Also cleaned up
its event handling.

Added comments to the script routines that were missing them.

Make sure we exit cleanly if our window is destroyed.

Fixed the missing menus in the Escreen theme.  You'll still get an
error message when it loads, but I'm not that worried about it.


SVN revision: 6421
2002-10-13 05:03:47 +00:00
Michael Jennings 3be1081fc4 Mon Feb 25 23:10:59 2002 Michael Jennings (mej)
Fixed a warning that got missed before.  Also removed the colour
scheme that no one liked.  I left it in the Eterm theme, though...just
commented it out.  I also put back the old font lines and commented
those out too.  The Eterm theme config file is intended as a teaching
tool as well as a theme config. :)


SVN revision: 5982
2002-02-26 04:13:57 +00:00
tzz bff50aaeee applied automatic encodings patch, see ChangeLog. Also a minor CONFIG_BUFF
missing define fix.


SVN revision: 5962
2002-02-20 14:44:46 +00:00
Michael Jennings e65a9e34aa Thu Aug 23 14:00:02 2001 Michael Jennings (mej)
I got tired of having to maintain half a gazillion menus.cfg files
considering that the vast majority of them are identical or have
large identical sections.  Thus, I took the m4-based menus.cfg from
the chooser theme and hacked on it a bunch.  I can now regenerate
the menu files for all Eterm themes from a single source file using
the gen-menus script in doc/.

I also removed the comments from the theme.cfg files of all themes
except "Eterm" itself.


SVN revision: 5263
2001-08-23 21:04:36 +00:00
Michael Jennings 2770621c7d Tue Aug 21 12:51:54 2001 Michael Jennings (mej)
Updating menus for some themes, and removing some themes that really
don't demonstrate anything spectacular.  They'll go on the web site.


SVN revision: 5250
2001-08-21 19:52:55 +00:00
Michael Jennings e3f87013da Fri Jul 13 17:07:45 2001 Michael Jennings (mej)
This is mostly cosmetic, but fairly important nonetheless.  Saved
config files should not contain the "main" context.


SVN revision: 4947
2001-07-14 00:08:32 +00:00
Michael Jennings 3dd429a1fc Tue Jul 3 18:15:55 2001 Michael Jennings (mej)
Shit!  Missed a bunch. :(


SVN revision: 4920
2001-07-04 01:15:50 +00:00
Michael Jennings 85fdcf3f30 Tue Jul 3 18:01:24 2001 Michael Jennings (mej)
All the docs and themes should now be up-to-date.  Unless a
showstopping bug turns up in the near future, this is pretty much it
for 0.9.1.  Now we just need some testing to make sure there's
nothing horridly wrong....  So you all can test while we finish up
the web site and the backgrounds. :-)


SVN revision: 4919
2001-07-04 01:02:37 +00:00
Michael Jennings afc51e774a Mon Jun 25 17:41:55 2001 Michael Jennings (mej)
Several changes here, many of which come from the Debian bug list or
from bug reports on IRC.  First off, I believe I've fixed an install
issue with the bg/ directory.  I also put an alternative acsc line in
the terminfo file to see if it fixes anything on Debian.  (RH works
fine.)  I removed the "main" context from all the theme files...which
is something I should've done ages ago, but I forgot.

I made a couple things options which were not previously configurable.
The proportional font thingie which shrank the character cell width is
now the --proportional option.  The automatic window gravity on resize
is now the --resize-gravity option.  Both are boolean, and both are
documented in the man page.

And finally, I added the kill() function to the script language.  At
this point it can only take signals as numbers, but that's good enough
for now.


SVN revision: 4857
2001-06-26 00:46:33 +00:00
Michael Jennings a286152df9 Wed May 9 17:18:11 PDT 2001 Michael Jennings <mej@eterm.org>
Fixed several bugs in the saving of settings and the support of
	scripts in menus.  Also fixed the definition of term_name in the theme
	files as pointed out by Laurence J. Lane <ljlane@debian.org>.


SVN revision: 4750
2001-05-10 00:20:15 +00:00
Michael Jennings 0291d6b7a1 Tue May 8 19:53:56 PDT 2001 Michael Jennings <mej@eterm.org>
You can now create key, mouse button, menu item, and buttonbar button
	bindings which trigger the parsing of a "script."  I've thrown in a
	few functions already to replace some icky escape sequences; there
	will be many more functions forthcoming, although I don't know how
	many of them (if any) will make it in prior to release.

	The usage is pretty simple.  Where before you might've said:

	    action string "\e]6;70\a"

	you would now say:

	    action script "exit();"

	You can call as many functions as you like per script.  Use a
	semi-colon (';') to separate each function call.  If you only call
	one function, the ';' is optional.  If you aren't passing parameters
	to the function, the parentheses are also optional.  Parameters are
	separated by commas and/or whitespace.

	Valid functions currently are:

	    die():     die() is a synonym for exit().
	    exec():    exec() is a synonym for spawn().
	    exit():    Exit Eterm.  Takes an optional exit code or message.
	    quit():    quit() is a synonym for exit().
	    save():    Save the config.  Specify "theme" to save the theme
	               config.  Also takes an optional path & filename.
	    search():  Search the scrollback buffer for a string.
	    spawn():   Spawns a sub-program.  Defaults to "Eterm".

	You will need the libast dated today to build and run this Eterm.
	You will also need to update your themes.


SVN revision: 4748
2001-05-09 03:14:18 +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 718ea96410 Tue Nov 14 17:17:53 PST 2000 Michael Jennings <mej@eterm.org>
Since someone wanted it, if no name is given but an exec line (the -e
	option) is given, the name defaults to the first word in the exec line
	instead of "Eterm-<version>".  For example, Eterm -e ssh foo would get
	the title "ssh".  NOTE:  Most Eterm themes already specify a name, so
	this will not work with those themes.


SVN revision: 3886
2000-11-15 01:30:02 +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 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 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 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 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 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 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 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 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 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