summaryrefslogtreecommitdiff
path: root/src/screen.c
Commit message (Collapse)AuthorAgeFilesLines
* src/*.c, Eterm.spec: Various build fixesMichael Jennings2020-02-281-5/+5
| | | | | | | | | | | | | | | Several changes here to make it build on RHEL/CentOS 8: - Replace outdated MEMSET() macro with (g)libc memset() - Update Release field to use `git describe` just like LibAST - Fix `make distcheck` by adding an uninstall-hook for src/gdb.scr - At long last, remove the ancient RPM %changelog content - Fix incompatibility with my traditional choices for CFLAGS (-O0 -g3) and modern RHEL security/hardening goop which, due to being implemented in the GCC optimizer, is rendered non-functional by building with -O0! - Rename backgrounds tarball so that it doesn't have the Eterm version in its name since, shockingly, it never changes based on the version of Eterm!
* Patch from Pavel Sanda <ps@ucw.cz> to fix copy/paste behavior withMichael Jennings2014-03-261-0/+1
| | | | some Qt-based apps (e.g., LyX).
* Revert and re-apply badnull patchLucas De Marchi2010-08-261-18/+18
| | | | | | | | | | | Revert previous patch generated by badnull.cocci script, and apply the new one. The main difference is that assert and assert-like functions are not touched anymore. SVN revision: 51650
* Revert coccinelle changes.Michael Jennings2010-08-231-20/+20
| | | | | | | | | | Using !! instead of != NULL results in significantly and unacceptably less readable code, and I refuse to accept those changes. Unfortunately, since they were all done at once, I have to revert the whole thing. Oh well. :( SVN revision: 51583
* Convert (hopefully) all comparisons to NULLLucas De Marchi2010-08-211-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apply badzero.cocci, badnull.coci and badnull2.cocci This should convert all cases where there's a comparison to NULL to simpler forms. This patch applies the following transformations: code before patch ||code after patch =============================================================== return a == NULL; return !a; return a != NULL; return !!a; func(a == NULL); func(!a); func(a != NULL); func(!!a); b = a == NULL; b = !a; b = a != NULL; b = !!a; b = a == NULL ? c : d; b = !a ? c : d; b = a != NULL ? c : d; b = a ? c : d; other cases: a == NULL !a a != NULL a SVN revision: 51487
* Eliminate use of Xmu.Kim Woelders2010-08-101-10/+5
| | | | | | | | | This causes the following change: In script.c and term.c XA_CLIPBOARD(Xdisplay) used to expand to XA_PRIMARY, i.e. the identifier of the "PRIMARY" atom, now it will be the identifier of the "CLIPBOARD" atom. SVN revision: 50969
* Sun Aug 8 16:32:44 2010 Michael Jennings (mej)Michael Jennings2010-08-081-4/+24
| | | | | | | | | | | | | | | Modified patch from Paolo Ferrario <skooks@tiscali.it> based on input from Kim Woelders <kim@woelders.dk> to allow Eterm to respond to selection requests in UTF-8, compound text, or string only. Previously, exotic selection request types would receive a string back, but it would claim to be whatever type was requested. Now it claims to be a string, which is probably more correct. This should also eliminate server round-trips when clients ask for UTF-8, get a string, then ask for a string (Opera). ---------------------------------------------------------------------- SVN revision: 50916
* Sun Oct 25 14:07:07 2009 Michael Jennings (mej)Michael Jennings2009-10-251-1/+1
| | | | | | | | | Fix off-by-one error that was causing crashes with visual bell. Found by d_willsc@cojobo.bonn.de. ---------------------------------------------------------------------- SVN revision: 43285
* Sun Oct 25 13:52:40 2009 Michael Jennings (mej)Michael Jennings2009-10-251-15/+43
| | | | | | | | | Support font effects in 8 directions. Patch supplied by Joern Bernhardt <Joern.Bernhardt@gmx.net>. ---------------------------------------------------------------------- SVN revision: 43283
* Sun Oct 25 12:39:34 2009 Michael Jennings (mej)Michael Jennings2009-10-251-1/+1
| | | | | | | | Fix for scrolling limitations from Cliff Miller <cbm@whatexit.org>. ---------------------------------------------------------------------- SVN revision: 43282
* Yet another attempt to fix selection issues on 64 bit systems.Kim Woelders2009-08-211-11/+4
| | | | SVN revision: 41918
* add patch from fedora to try and fix qt copy & paste problems on 64bit systemsMike Frysinger2009-08-201-1/+1
| | | | SVN revision: 41896
* Tue Dec 16 22:03:54 2008 Michael Jennings (mej)Michael Jennings2008-12-171-1/+1
| | | | | | | | | Fix compile errors related to the removal of unnecessary typecasting macros. ---------------------------------------------------------------------- SVN revision: 38171
* Wed May 14 15:26:13 2008 Michael Jennings (mej)Michael Jennings2008-05-141-3/+3
| | | | | | | | | Patch from Emmanuel Anne <emmanuel.anne@gmail.com> to fix cut/paste with KDE applications. ---------------------------------------------------------------------- SVN revision: 34573
* Wed May 14 14:54:16 2008 Michael Jennings (mej)Michael Jennings2008-05-141-0/+8
| | | | | | | | | Modified patch from hsim@gmx.li to allow setting of the "Urgent" hint on beep. ---------------------------------------------------------------------- SVN revision: 34572
* Mon Feb 13 14:51:56 2006 Michael Jennings (mej)Michael Jennings2006-02-131-1/+1
| | | | | | | | Update to libast 0.6+ API. ---------------------------------------------------------------------- SVN revision: 20440
* Mon Feb 6 01:02:15 2006 Michael Jennings (mej)Michael Jennings2006-02-061-19/+15
| | | | | | | | Fixed paste from clipboard. ---------------------------------------------------------------------- SVN revision: 20304
* Tue Apr 26 14:38:20 2005 Michael Jennings (mej)Michael Jennings2005-04-261-0/+13
| | | | | | | | | Patch from Bryan Kadzban <bryan@kdzbn.homelinux.net> to fix unsetting of bold/blink attribute. ---------------------------------------------------------------------- SVN revision: 14384
* Mon Apr 25 15:34:49 2005 Michael Jennings (mej)Michael Jennings2005-04-251-1/+1
| | | | | | | | | | | Added --enable-escreen-fx flag to ./configure to enable/disable the Escreen startup effects (bosconian, matrix, etc.). Fixed some warnings. ---------------------------------------------------------------------- SVN revision: 14359
* Mon Apr 18 21:49:08 2005 Michael Jennings (mej)Michael Jennings2005-04-191-267/+289
| | | | | | | | Re-indent code. ---------------------------------------------------------------------- SVN revision: 14229
* Mon Apr 18 18:00:17 2005 Michael Jennings (mej)Michael Jennings2005-04-181-1/+1
| | | | | | | | | | | | Applied a patch from Fredrik Svensson <fred@ludd.ltu.se> for 256-color support (a la xterm). I also renamed and imported a couple of his test scripts into utils/, and in playing around with them, I found and fixed an X server resource leak. Use Etpalette to view the 256-color palette. ---------------------------------------------------------------------- SVN revision: 14228
* Tue Mar 15 16:44:09 2005 Michael Jennings (mej)Michael Jennings2005-03-151-1/+1
| | | | | | | | | | | | | | | | | Reverted part of a patch from Chris Schoeneman <crs23@bigfoot.com> (changelog entry "Fri Jun 25 17:48:24 2004") which broke dead keys and compose-key sequences. Fixed autoSHIT for dist/distcheck/distclean/maintainer-clean and newer autoSHIT versions. Fixed error in saving of cut_chars attribute. Fixed saving/handling of beep_command attribute. ---------------------------------------------------------------------- SVN revision: 13745
* Wed Feb 23 15:37:40 2005 Michael Jennings (mej)Michael Jennings2005-02-231-1/+4
| | | | | | | | | | | Merged in previous autoFUCK changes from libast. Added a feature to specify a command to be run in place of the normal PC speaker beep. ---------------------------------------------------------------------- SVN revision: 13484
* Mon Dec 20 14:31:33 2004 Michael Jennings (mej)Michael Jennings2004-12-201-0/+15
| | | | | | | | | | | | | | Okay, so my first problem was that I didn't pay close enough attention to the iconv_open() man page and got the parameter order wrong. Duh. Thanks to Sytse Wielinga <s.b.wielinga@student.utwente.nl> for noticing that. kwo suggested using XmbDrawString(), but that causes font problems I'm not ready to diagnose just yet. ---------------------------------------------------------------------- SVN revision: 12526
* Fri Dec 17 16:35:31 2004 Michael Jennings (mej)Michael Jennings2004-12-171-1/+4
| | | | | | | | | | | | Another attempt (and failure) at UTF-8 support. Disabled until someone can help me out. If you know iconv(), please have a look at the FIXME_BLOCK starting at line 3509 of src/command.c. ---------------------------------------------------------------------- SVN revision: 12495
* Tue Dec 14 17:22:23 2004 Michael Jennings (mej)Michael Jennings2004-12-141-6/+12
| | | | | | | | | | The benefits of being a passenger on a long road trip... The beginnings of EWMH opacity (a la xcompmgr) support and (hopefully) UTF-8 support. Both as yet untested. ---------------------------------------------------------------------- SVN revision: 12471
* Mon Jan 19 21:02:30 2004 Michael Jennings (mej)Michael Jennings2004-01-201-6/+23
| | | | | | | Patch from David Lloyd <dmlloyd@tds.net> for overstrike support. SVN revision: 8577
* Mon Aug 25 21:08:20 2003 Michael Jennings (mej)Michael Jennings2003-08-261-17/+14
| | | | | | | | | | | | Patch from David Lloyd <dmlloyd@tds.net>. Removed the NO_BRIGHTCOLOR and NO_BOLDOVERSTRIKE defines. If you want to do NO_BRIGHTCOLOR, set colors 8-16 the same as 0-7. :P For bold overstrike, it's now an option (--overstrike-bold). There are also options to deactivate the "bold" and "blink" attributes' setting of high-intensity colors, and to allow non-default foreground colors to be bolded. SVN revision: 7377
* Sun Aug 24 11:07:54 2003 Michael Jennings (mej)Michael Jennings2003-08-241-16/+16
| | | | | | | | | | | | 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
* Thu Aug 21 23:51:12 2003 Michael Jennings (mej)Michael Jennings2003-08-221-16/+16
| | | | | | | Oops, that wasn't *quite* what I had in mind.... SVN revision: 7362
* Thu Aug 21 23:18:23 2003 Michael Jennings (mej)Michael Jennings2003-08-221-17/+17
| | | | | | | | 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
* Tue Jul 29 22:47:18 2003 Michael Jennings (mej)Michael Jennings2003-07-301-5/+1
| | | | | | | | | | | | | | 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
* Tue Apr 22 11:12:26 2003 Michael Jennings (mej)Michael Jennings2003-04-221-2/+2
| | | | | | | | | | | | 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
* Wed Feb 19 11:41:00 2003 Michael Jennings (mej)Michael Jennings2003-02-191-1/+1
| | | | | | | | | 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
* Mon Oct 7 22:16:38 2002 Michael Jennings (mej)Michael Jennings2002-10-081-157/+152
| | | | | | | | | | | 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
* Sun Sep 22 00:34:42 2002 Michael Jennings (mej)Michael Jennings2002-09-221-30/+32
| | | | | | | | Added an option to disable the secondary screen as requested by Marc Merlin <marc@merlins.org>. SVN revision: 6395
* Sat Jun 8 12:46:44 2002 Michael Jennings (mej)Michael Jennings2002-06-081-1/+4
| | | | | | | | | | 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
* Sat Jun 8 11:41:37 2002 Michael Jennings (mej)Michael Jennings2002-06-081-24/+25
| | | | | | | Escreen update with Twin support from Azundris <scream@azundris.com>. SVN revision: 6307
* Sun Jun 2 20:23:07 2002 Michael Jennings (mej)Michael Jennings2002-06-031-68/+69
| | | | | | | Latest Escreen patch along with twin support from Azundris. SVN revision: 6297
* Thu May 23 14:12:28 2002 Michael Jennings (mej)Michael Jennings2002-05-231-0/+3
| | | | | | | More cleanups and warning removals. SVN revision: 6275
* Wed May 22 11:37:19 2002 Michael Jennings (mej)Michael Jennings2002-05-221-1/+17
| | | | | | | Latest Escreen work from Azundris <scream@azundris.com>. SVN revision: 6270
* Mon May 13 18:46:06 2002 Michael Jennings (mej)Michael Jennings2002-05-131-1/+1
| | | | | | | Latest Escreen patch from Azundris <hacks@azundris.com>. SVN revision: 6251
* Sat May 4 11:12:19 2002 Michael Jennings (mej)Michael Jennings2002-05-041-2/+2
| | | | | | | | | 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
* Sat May 4 10:23:38 2002 Michael Jennings (mej)Michael Jennings2002-05-041-2398/+2401
| | | | | | | | | | | 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
* Tue Apr 23 14:23:00 2002 Michael Jennings (mej)Michael Jennings2002-04-231-3/+8
| | | | | | | | | | 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
* Sun Apr 7 21:15:09 2002 Michael Jennings (mej)Michael Jennings2002-04-081-1/+10
| | | | | | | Be even more anal when dumping a buffer to a file.... SVN revision: 6110
* Mon Dec 3 20:16:39 2001 Michael Jennings (mej)Michael Jennings2001-12-041-1/+14
| | | | | | | | | | | | | 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
* Mon Jun 11 17:49:55 PDT 2001 Michael Jennings <mej@eterm.org>Michael Jennings2001-06-121-42/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Thu May 24 00:14:54 PDT 2001 Michael Jennings <mej@eterm.org>Michael Jennings2001-05-241-39/+54
| | | | | | | | | | | 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
* This is work in progress, cleaning up the selection stuff. Still more toMichael Jennings2001-05-191-107/+65
| | | | | | | do, though. SVN revision: 4777