summaryrefslogtreecommitdiff
path: root/src/screen.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Sat Feb 3 18:25:45 PST 2001 Michael Jennings <mej@eterm.org>Michael Jennings2001-02-041-1/+1
| | | | | | | | Applied a patch from Sung-Hyun Nam <namsh@lgic.co.kr> to fix a seg fault bug in multi-byte pasting. SVN revision: 4165
* Fri Dec 29 14:39:09 PST 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-12-291-0/+22
| | | | | | | | | | | | | | | | | 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
* Thu Nov 16 16:40:54 PST 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-11-161-4/+4
| | | | | | | | | | | | | | | 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
* Wed Nov 15 14:20:13 PST 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-11-151-7/+45
| | | | | | | | | | 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
* Sun Sep 17 17:29:26 PDT 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-09-181-2/+2
| | | | | | | Got rid of the useless backing_store option. SVN revision: 3520
* Fri Sep 1 21:03:53 PDT 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-09-021-2/+2
| | | | | | | | | | | | | 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
* Wed Aug 30 22:58:18 PDT 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-08-311-6/+2
| | | | | | | | | 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
* Tue Aug 22 21:35:50 PDT 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-08-231-4/+7
| | | | | | | This should fix the selection problems between Eterm and other apps. SVN revision: 3242
* Thu Jul 6 23:56:54 PDT 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-07-071-9/+1
| | | | | | | | 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
* Wed Jul 5 20:48:10 PDT 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-07-061-1/+1
| | | | | | | Dammit. I missed an occurance of XA_COMPOUND_TEXT(). SVN revision: 2906
* Wed Jul 5 19:48:10 PDT 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-07-061-8/+6
| | | | | | | | | | 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
* Wed Jun 28 14:14:53 PDT 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-06-281-0/+4
| | | | | | | | | 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
* Mon Jun 26 16:54:04 PDT 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-06-261-21/+24
| | | | | | | | 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
* Mon Jun 26 09:50:37 PDT 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-06-261-16/+41
| | | | | | | | Another multi-byte font support patch from Sung-Hyun Nam <namsh@lgic.co.kr>. SVN revision: 2890
* Tue Jun 20 20:01:07 PDT 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-06-211-15/+28
| | | | | | | | | 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
* Mon Jun 12 19:18:56 PDT 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-06-131-1/+2
| | | | | | | | | 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
* Fri Jun 9 22:33:29 PDT 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-06-101-1/+4
| | | | | | | | | 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
* Tue May 30 08:49:43 PDT 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-05-301-2/+2
| | | | | | | | Fix to multibyte screen rendering from Sung-Hyun Nam <namsh@lgic.co.kr>. SVN revision: 2730
* Fri May 26 20:43:03 PDT 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-05-271-60/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Doh. I broke Imlib2-based builds. =PMichael Jennings2000-05-021-9/+11
| | | | SVN revision: 2591
* Tue May 2 16:56:47 PDT 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-05-021-13/+18
| | | | | | | | | | | | | | | 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
* Wed Apr 12 21:18:19 PDT 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-04-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Tue Mar 14 19:11:26 PST 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-03-151-41/+24
| | | | | | | | | | 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
* Fri Mar 3 20:23:37 PST 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-03-041-247/+88
| | | | | | | | | 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
* Thu Mar 2 21:40:09 PST 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-03-031-2/+9
| | | | | | | | | | | | | 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
* Thu Mar 2 09:47:30 PST 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-03-021-2/+2
| | | | | | | Right. How the hell did I miss that?! Thanks again Valdis. SVN revision: 2169
* Wed Mar 1 18:37:18 PST 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-03-021-8/+44
| | | | | | | | | | | | | | | | | | | | 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
* Thu Feb 17 15:13:20 PST 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-02-171-1/+41
| | | | | | | | | | | 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
* Wed Feb 16 14:58:51 PST 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-02-161-3/+4
| | | | | | | Fix the XIM input positioning to work with the buttonbar. SVN revision: 2082
* Tue Feb 15 19:31:04 PST 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-02-161-1/+8
| | | | | | | | | | | | | | | | | 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
* Thu Feb 10 15:10:01 PST 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-02-111-23/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Hopefully this fixes that hard-to-reproduce crash....Michael Jennings2000-02-011-17/+14
| | | | SVN revision: 2001
* Mon Jan 17 13:09:37 PST 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-01-171-1/+4
| | | | | | | Fixed the faulty assumption that font->per_char is always non-NULL. SVN revision: 1934
* Wed Jan 5 21:23:56 PST 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-01-051-3/+0
| | | | | | | Copyright date updates. SVN revision: 1860
* Not needed.Michael Jennings2000-01-041-4/+0
| | | | SVN revision: 1849
* Mon Jan 3 19:36:16 PST 2000 Michael Jennings <mej@eterm.org>Michael Jennings2000-01-031-4/+5
| | | | | | | | Fixed a seg fault on large resizes. Also redid some of the memory tracking code to provide more information. SVN revision: 1837
* Thu Dec 30 14:55:59 PST 1999 Michael Jennings <mej@eterm.org>Michael Jennings1999-12-301-212/+168
| | | | | | | | | | | | | | 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
* Tue Dec 28 11:44:10 PST 1999 Michael Jennings <mej@eterm.org>Michael Jennings1999-12-281-17/+18
| | | | | | | | Thanks to a cl00 from raster, double buffering is much more efficient now. :-) SVN revision: 1780
* Fri Dec 10 23:33:16 PST 1999 Michael Jennings <mej@eterm.org>Michael Jennings1999-12-111-35/+50
| | | | | | | | | | | | | 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
* Thu Nov 18 21:47:02 PST 1999 Michael Jennings <mej@eterm.org>Michael Jennings1999-11-191-1/+1
| | | | | | | | | | 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
* Wed Nov 17 18:34:43 PST 1999 Michael Jennings <mej@eterm.org>Michael Jennings1999-11-181-13/+29
| | | | | | | | | 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
* Thu Oct 28 16:09:26 PDT 1999 Michael Jennings <mej@eterm.org>Michael Jennings1999-10-281-4/+4
| | | | | | | | | | | | 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
* Wed Oct 27 18:46:04 PDT 1999 Michael Jennings <mej@eterm.org>Michael Jennings1999-10-271-6/+8
| | | | | | | | | | | 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
* Tue Oct 19 16:34:51 PDT 1999 Michael Jennings <mej@eterm.org>Michael Jennings1999-10-191-8/+9
| | | | | | | | | | | | | | | | | 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
* Mon Oct 18 19:33:26 PDT 1999 Mandrake <mandrake@mandrake.net>Mandrake1999-10-181-4/+15
| | | | | | | | | | 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
* Mon Oct 11 16:48:22 PDT 1999 Michael Jennings <mej@eterm.org>Michael Jennings1999-10-111-46/+3
| | | | | | | | More useless, hackish, and/or poorly-written code meets an untimely end. SVN revision: 799
* Mon Oct 11 15:54:52 PDT 1999 Michael Jennings <mej@eterm.org>Michael Jennings1999-10-111-6/+0
| | | | | | | | | | 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
* Thu Oct 7 18:48:31 PDT 1999 Michael Jennings <mej@eterm.org>Michael Jennings1999-10-071-1/+1
| | | | | | | | | 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
* Tue Sep 28 14:18:44 PDT 1999 Michael Jennings <mej@eterm.org>Michael Jennings1999-09-281-0/+3
| | | | | | | | Several fixes here, some of which I forgot to commit a couple days ago. Oopsie. =) SVN revision: 438
* Tue Sep 14 16:41:08 PDT 1999 Michael Jennings <mej@eterm.org>Michael Jennings1999-09-141-16/+0
| | | | | | | | | Worked around a XF86 3.9.16 (perhaps Xinerama) problem. Also added some XIM changes from Sung-Hyun Nam <namsh@lgic.co.kr> to handle buffer overflows. SVN revision: 274