*** empty log message ***
authorpcg <pcg>
Thu, 8 Apr 2004 20:31:45 +0000 (20:31 +0000)
committerpcg <pcg>
Thu, 8 Apr 2004 20:31:45 +0000 (20:31 +0000)
28 files changed:
Changes
doc/yodl/versioninfo.yo
src/command.C
src/defaultfont.C
src/encoding.C
src/init.C
src/logging.C
src/main.C
src/menubar.C
src/misc.C
src/netdisp.C
src/ptytty.C
src/rxvt.C
src/rxvtc.C
src/rxvtcolor.C
src/rxvtd.C
src/rxvtdaemon.C
src/salloc.C
src/screen.C
src/scrollbar-next.C
src/scrollbar-plain.C
src/scrollbar-rxvt.C
src/scrollbar-xterm.C
src/scrollbar.C
src/strings.C
src/version.h
src/xdefaults.C
src/xpm.C

diff --git a/Changes b/Changes
index 5cd9d6a93d27c99db7dcb4c8dc95b43e87e21c58..20f4f2f079b371db5c93c19a2884c8733f89c785 100644 (file)
--- a/Changes
+++ b/Changes
@@ -2,6 +2,11 @@ Lines marked with "xterm:" indicate either xterm features ported to rxvt
 or changed rxvt behaviour to make it more compatible to xterm (usually
 xfree86's xterm).
 
+2.8  Thu Apr  8 22:44:36 CEST 2004
+       - replace PF_LOCAL by PF_UNIX (portability).
+        - try to detect -lnsl and -lsocket (portability).
+        - fix some minor bugs.
+
 2.7  Mon Apr  5 02:11:15 CEST 2004
        - this version should now work fine with TERM=xterm.
         - don't leave the X or rxvtd sockets open in child processes.
index 38fcb25395af931937838846b90a30dc41e80ee6..3003a0d52d4aaa5057f6b4eb5a3f019e73903d77 100644 (file)
@@ -1,4 +1,4 @@
-COMMENT(-- $Id: versioninfo.yo,v 1.11 2004-04-05 15:54:23 pcg Exp $ --)
+COMMENT(-- $Id: versioninfo.yo,v 1.12 2004-04-08 20:34:43 pcg Exp $ --)
 DEFINEMACRO(RXVTNAME)(0)
        (rxvt)
 DEFINEMACRO(RXVTDATE)(0)
index da765d203730dfc3c7b8a9eb820d8b2fcffa505d..1ad4771e2d67d05fc2c9e4a367df1869dae7f4ee 100644 (file)
@@ -1,5 +1,5 @@
 /*--------------------------------*-C-*---------------------------------*
- * File:       command.c
+ * File:       command.C
  *----------------------------------------------------------------------*
  *
  * All portions of code are copyright by their respective author/s.
@@ -674,7 +674,6 @@ rxvt_term::flush ()
 #ifdef USE_XIM
       IMSendSpot ();
 #endif
-
     }
 
   display->flush ();
@@ -718,6 +717,12 @@ rxvt_term::pty_fill ()
 {
   ssize_t n = cmdbuf_endp - cmdbuf_ptr;
 
+  if (CBUFSIZ == n)
+    {
+      rxvt_warn ("pty_fill on full buffer, draining input, continuing.\n");
+      n = 0;
+    }
+
   memmove (cmdbuf_base, cmdbuf_ptr, n);
   cmdbuf_ptr = cmdbuf_base;
   cmdbuf_endp = cmdbuf_ptr + n;
@@ -744,23 +749,10 @@ rxvt_term::pty_cb (io_watcher &w, short revents)
   if (revents & EVENT_WRITE)
     tt_write (0, 0);
   else if (revents & EVENT_READ)
-    {
-      // loop, but don't allow a single term to monopolize us
-      // the number of loops is fully arbitrary, and thus wrong
-      while (pty_fill ())
-        {
-          if (!seen_input)
-            {
-              seen_input = 1;
-              /* once we know the shell is running, send the screen size.  Again! */
-              // I don't know why, btw.
-              tt_winch ();
-            }
-
-          if (cmd_parse ())
-            break;
-        }
-    }
+    // loop, but don't allow a single term to monopolize us
+    while (pty_fill ())
+      if (cmd_parse ())
+        break;
 }
 
 #ifdef POINTER_BLANK
@@ -1015,10 +1007,10 @@ rxvt_term::x_cb (XEvent &ev)
                      || ev.xclient.data.l[0] == DndLink))
           {
             /* Get Dnd data */
-            Atom            ActualType;
-            int             ActualFormat;
-            unsigned char  *data;
-            unsigned long   Size, RemainingBytes;
+            Atom ActualType;
+            int ActualFormat;
+            unsigned char *data;
+            unsigned long Size, RemainingBytes;
 
             XGetWindowProperty (display->display, display->root,
                                xa[XA_DNDSELECTION],
@@ -1031,6 +1023,7 @@ rxvt_term::x_cb (XEvent &ev)
                             XA_CUT_BUFFER0, XA_STRING,
                             8, PropModeReplace,
                             data, STRLEN (data));
+            XFree (data);
             selection_paste (display->root, XA_CUT_BUFFER0, True);
             XSetInputFocus (display->display, display->root, RevertToNone, CurrentTime);
           }
@@ -1998,7 +1991,7 @@ rxvt_term::check_our_parents ()
   else
     {
       have_pixmap = 1;
-      rootpixmap = * ((Pixmap *)prop);
+      rootpixmap = *(Pixmap *)prop;
       XFree (prop);
     }
 
@@ -2193,7 +2186,7 @@ rxvt_term::cmd_parse ()
       if (ch == NOCHAR) // TODO: improve
         break;
 
-      if (!IS_CONTROL (ch) || ch == '\t' || ch == '\n' || ch == '\r')
+      if (!IS_CONTROL (ch) || ch == C0_LF || ch == C0_CR || ch == C0_HT)
         {
           /* Read a text string from the input buffer */
           unicode_t buf[UBUFSIZ];
@@ -2208,12 +2201,12 @@ rxvt_term::cmd_parse ()
               seq_begin = cmdbuf_ptr;
               ch = next_char ();
 
-              if (ch == NOCHAR || (IS_CONTROL (ch) && ch != '\t' && ch != '\n' && ch != '\r'))
+              if (ch == NOCHAR || (IS_CONTROL (ch) && ch != C0_LF && ch != C0_CR && ch != C0_HT))
                 break;
 
               *str++ = ch;
 
-              if (ch == '\n')
+              if (ch == C0_LF)
                 {
                   nlines++;
                   refresh_count++;
@@ -2258,8 +2251,8 @@ rxvt_term::cmd_parse ()
             {
               if ((Options & Opt_jumpScroll) && refresh_limit < REFRESH_PERIOD)
                 refresh_limit++;
-
-              scr_refresh (refresh_type);
+              else
+                scr_refresh (refresh_type);
             }
 
         }
@@ -2599,7 +2592,7 @@ rxvt_term::process_escape_seq ()
         /* 8.3.87: NEXT LINE */
       case C1_NEL:             /* ESC E */
         {
-          unicode_t nlcr[] = { L'\n', L'\r' };
+          unicode_t nlcr[] = { C0_LF, C0_CR };
           scr_add_lines (nlcr, 1, 2);
         }
         break;
@@ -3094,7 +3087,7 @@ rxvt_term::process_window_ops (const int *args, unsigned int nargs)
 /*----------------------------------------------------------------------*/
 /*
  * get input up until STRING TERMINATOR (or BEL)
- * ends_how is terminator used. returned input must be free ()d
+ * ends_how is terminator used. returned input must be free()'d
  */
 unsigned char *
 rxvt_term::get_to_st (unicode_t &ends_how)
@@ -3121,9 +3114,9 @@ rxvt_term::get_to_st (unicode_t &ends_how)
           seen_esc = 1;
           continue;
         }
-      else if (ch == '\t')
+      else if (ch == C0_HT)
         ch = ' ';      /* translate '\t' to space */
-      else if (ch < 0x20 && (ch != 0x0a && ch != 0x0d))
+      else if (ch < 0x20 && (ch != C0_LF && ch != C0_CR))
         return NULL;   /* other control character - exit */
 
       if (n >= sizeof (string) - 1)
@@ -3702,12 +3695,19 @@ rxvt_term::process_sgr_mode (unsigned int nargs, const int *arg)
           case 5:
             rendset = 1, rendstyle = RS_Blink;
             break;
+          //case 6: // scoansi light background
           case 7:
             rendset = 1, rendstyle = RS_RVid;
             break;
           case 8:
             // invisible. NYI
             break;
+          //case 10: // scoansi acs off
+          //case 11: // scoansi acs on
+          //case 12: // scoansi acs on, |0x80
+          case 21: // disable bold, blink and invis (some terminals use this)
+            rendset = 0, rendstyle = RS_Bold | RS_Blink;
+            break;
           case 22:
             rendset = 0, rendstyle = RS_Bold;
             break;
@@ -3809,7 +3809,7 @@ rxvt_term::process_sgr_mode (unsigned int nargs, const int *arg)
 }
 /*}}} */
 
-/*{{{ process Rob Nation's own graphics mode sequences */
+/*{{{ (do not) process Rob Nation's own graphics mode sequences */
 void
 rxvt_term::process_graphics ()
 {
index 6eb9c7f0da3b0d834d1d82bf49cd99544d66aa64..56d1b4f5a11c2643abe65869ed38b08d2a434816 100644 (file)
@@ -1,4 +1,4 @@
-/*--------------------------------*-C-*---------------------------------*;
+/*--------------------------------*-C-*---------------------------------*
  * File:       defaultfont.C
  *----------------------------------------------------------------------*
  * Copyright (c) 2003-2004 Marc Lehmann <pcg@goof.com>
index 59de1ff0236c0e8000af886d02e68ecae37b7bb9..972b12d056aa9f2ec8ceb7d1e4d671164c587c40 100644 (file)
@@ -1,3 +1,25 @@
+/*--------------------------------*-C-*---------------------------------*
+ * File:       encoding.C
+ *----------------------------------------------------------------------*
+ *
+ * All portions of code are copyright by their respective author/s.
+ * Copyright (c) 2003-2004 Marc Lehmann <pcg@goof.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *----------------------------------------------------------------------*/
+
 #include "../config.h"
 
 #include "encoding.h"
index 789b0ffc64e2db5296fde06d182184d6094fc3cf..27ecb1b0342d7100550b5e457a78c313a1c2ebd5 100644 (file)
@@ -1,5 +1,5 @@
 /*--------------------------------*-C-*---------------------------------*
- * File:        init.c
+ * File:        init.C
  *----------------------------------------------------------------------*
  *
  * All portions of code are copyright by their respective author/s.
index f6d19adb30ee15b24b00d3322b8b554502658a11..fd7d2fc453f1a33a4afa1bf9c8e77128d0827e2e 100644 (file)
@@ -1,5 +1,5 @@
 /*--------------------------------*-C-*---------------------------------*
- * File:       logging.c
+ * File:       logging.C
  *----------------------------------------------------------------------*
  *
  * All portions of code are copyright by their respective author/s.
@@ -14,6 +14,7 @@
  *                             - extensive modifications
  * Copyright (c) 1999      D J Hawkey Jr <hawkeyd@visi.com>
  *                             - lastlog support
+ * Copyright (c) 2004      Marc Lehmann <pcg@goof.com>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index a87fc23efb9c548d935906d3e898df394f226676..415e94fee00d5ec3dcab2d18ea049df04e2b21d2 100644 (file)
@@ -1,5 +1,5 @@
-/*--------------------------------*-C-*---------------------------------*;
- * File:        main.c
+/*--------------------------------*-C-*---------------------------------*
+ * File:        main.C
  *----------------------------------------------------------------------*
  *
  * All portions of code are copyright by their respective author/s.
index bd404dc7d08b5f8943d0754c7085fa6a04b8c7a2..c7040b8b8a8169af08c9737549074c1e6c0093c7 100644 (file)
@@ -1,8 +1,9 @@
 /*--------------------------------*-C-*---------------------------------*
- * File:       menubar.c
+ * File:       menubar.C
  *----------------------------------------------------------------------*
  *
  * Copyright (c) 1997,1998  mj olesen <olesen@me.QueensU.CA>
+ * Copyright (c) 2004       Marc Lehmann <pcg@goof.com>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index f11227d92b19c8a8db544ea88d33fa85ac6d722f..714415605fbbf0f5186030d8e76207b21c071ce3 100644 (file)
@@ -1,5 +1,5 @@
 /*--------------------------------*-C-*---------------------------------*
- * File:       misc.c
+ * File:       misc.C
  *----------------------------------------------------------------------*
  *
  * All portions of code are copyright by their respective author/s.
index ec29850d6114a863024e298c655a69868e5ca371..c36b9a4767c764b1ad6c90f9fd5cd8f624025a79 100644 (file)
@@ -1,5 +1,5 @@
 /*--------------------------------*-C-*---------------------------------*
- * File:       netdisp.c
+ * File:       netdisp.C
  *----------------------------------------------------------------------*
  *
  * All portions of code are copyright by their respective author/s.
index 61cd352d4c954775bee32eee0a5bd9a471ea17d7..5b07c8dba8b70fcbe78be7217dc11963b252e1ea 100644 (file)
@@ -1,9 +1,10 @@
 /*--------------------------------*-C-*---------------------------------*
- * File:       ptytty.c
+ * File:       ptytty.C
  *----------------------------------------------------------------------*
  *
  * All portions of code are copyright by their respective author/s.
  * Copyright (c) 1999-2001 Geoff Wing <gcw@pobox.com>
+ * Copyright (c) 2004      Marc Lehmann <pcg@goof.com>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index 68bc1d5d3cad2b1b4cf04b1f96d97456b10d4f5f..f0009d018dcda1ab643620311e97abb19fa9b50b 100644 (file)
@@ -1,8 +1,28 @@
+/*--------------------------------*-C-*---------------------------------*
+ * File:       rxvt.C
+ *----------------------------------------------------------------------*
+ *
+ * All portions of code are copyright by their respective author/s.
+ * Copyright (c) 2003-2004 Marc Lehmann <pcg@goof.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *----------------------------------------------------------------------*/
+
 #include "../config.h"
 #include "rxvt.h"
 
-/*----------------------------------------------------------------------*/
-/* main () */
 int
 main (int argc, const char *const *argv)
 try
@@ -22,3 +42,4 @@ catch (const class rxvt_failure_exception &e)
   {
     return EXIT_FAILURE;
   }
+
index 39807b1f7fab134281dd391547848ec227ed8bf2..3ff1ba3c603baf7d6a078a94e70c37319109bf3c 100644 (file)
@@ -1,3 +1,25 @@
+/*--------------------------------*-C-*---------------------------------*
+ * File:       rxvtc.C
+ *----------------------------------------------------------------------*
+ *
+ * All portions of code are copyright by their respective author/s.
+ * Copyright (c) 2003-2004 Marc Lehmann <pcg@goof.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *----------------------------------------------------------------------*/
+
 #include "../config.h"
 #include "rxvtdaemon.h"
 
@@ -17,7 +39,7 @@ struct client : rxvt_connection {
 
 client::client ()
 {
-  if ((fd = socket (PF_LOCAL, SOCK_STREAM, 0)) < 0)
+  if ((fd = socket (PF_UNIX, SOCK_STREAM, 0)) < 0)
     {
       perror ("unable to create communications socket");
       exit (EXIT_FAILURE);
index 30cb10e4ebd4f18288df596b0e5907b3e97cc252..596423c70dfe066be98a3a103278c040c5e4a23f 100644 (file)
@@ -1,3 +1,25 @@
+/*--------------------------------*-C-*---------------------------------*
+ * File:       rxvtcolor.C
+ *----------------------------------------------------------------------*
+ *
+ * All portions of code are copyright by their respective author/s.
+ * Copyright (c) 2003-2004 Marc Lehmann <pcg@goof.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *----------------------------------------------------------------------*/
+
 #include "../config.h"
 #include <rxvt.h>
 #include <rxvtcolor.h>
index f0330ffcdd671f403703026c9c6e01c4047cd2c3..29216189cf3053c9661af82985928ef183127682 100644 (file)
@@ -1,3 +1,25 @@
+/*--------------------------------*-C-*---------------------------------*
+ * File:       rxvtd.C
+ *----------------------------------------------------------------------*
+ *
+ * All portions of code are copyright by their respective author/s.
+ * Copyright (c) 2003-2004 Marc Lehmann <pcg@goof.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *----------------------------------------------------------------------*/
+
 #include "../config.h"
 #include "rxvt.h"
 #include "rxvtdaemon.h"
@@ -47,7 +69,7 @@ struct unix_listener {
 unix_listener::unix_listener (const char *sockname)
 : accept_ev (this, &unix_listener::accept_cb)
 {
-  if ((fd = socket (PF_LOCAL, SOCK_STREAM, 0)) < 0)
+  if ((fd = socket (PF_UNIX, SOCK_STREAM, 0)) < 0)
     {
       perror ("unable to create listening socket");
       exit (EXIT_FAILURE);
index a9cb785672d3bb5c2768b025cca26528775f0ec3..f51a1a41396e96f3c540f4143a72b566e5686add 100644 (file)
@@ -1,3 +1,25 @@
+/*--------------------------------*-C-*---------------------------------*
+ * File:       rxvtdaemon.C
+ *----------------------------------------------------------------------*
+ *
+ * All portions of code are copyright by their respective author/s.
+ * Copyright (c) 2003-2004 Marc Lehmann <pcg@goof.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *----------------------------------------------------------------------*/
+
 #include <stdint.h>
 #include <cstdlib>
 #include <cstring>
index c970822283598d93645c460839521488b65758ef..8e12d9920cbb8d058078bdb4a7a5d72468f577e6 100644 (file)
@@ -1,3 +1,25 @@
+/*--------------------------------*-C-*---------------------------------*
+ * File:       salloc.C
+ *----------------------------------------------------------------------*
+ *
+ * All portions of code are copyright by their respective author/s.
+ * Copyright (c) 2003-2004 Marc Lehmann <pcg@goof.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *----------------------------------------------------------------------*/
+
 #include "salloc.h"
 
 #define SALLOC_BLOCK 65536 // size of basic block to allocate
index f4e2b4a33ad2ea51e9123b69c31a224cba812a60..c10449f2924d6e9086138a17d61689e9faaf772e 100644 (file)
@@ -1,5 +1,5 @@
 /*--------------------------------*-C-*--------------------------------------*
- * File:        screen.c
+ * File:        screen.C
  *---------------------------------------------------------------------------*
  *
  * Copyright (c) 1997-2001 Geoff Wing <gcw@pobox.com>
@@ -513,6 +513,7 @@ rxvt_term::scr_cursor (int mode)
         s->s_charset = s->charset;
         s->s_charset_char = charsets[s->charset];
         break;
+
       case RESTORE:
         want_refresh = 1;
         s->cur.row = s->s_cur.row;
@@ -812,11 +813,11 @@ rxvt_term::scr_add_lines (const unicode_t *str, int nlines, int len)
       if (c < 0x20)
         switch (c)
           {
-            case '\t':
+            case C0_HT:
               scr_tab (1);
               continue;
 
-            case '\n':
+            case C0_LF:
               if (screen.tlen[row] != -1)      /* XXX: think about this */
                 MAX_IT (screen.tlen[row], screen.cur.col);
 
@@ -831,7 +832,7 @@ rxvt_term::scr_add_lines (const unicode_t *str, int nlines, int len)
               srp = screen.rend[row];  /* _must_ refresh */
               continue;
 
-            case '\r':
+            case C0_CR:
               if (screen.tlen[row] != -1)      /* XXX: think about this */
                 MAX_IT (screen.tlen[row], screen.cur.col);
 
@@ -989,6 +990,7 @@ void
 rxvt_term::scr_backspace ()
 {
   want_refresh = 1;
+
   if (screen.cur.col == 0)
     {
       if (screen.cur.row > 0)
@@ -1003,6 +1005,7 @@ rxvt_term::scr_backspace ()
     }
   else if ((screen.flags & Screen_WrapNext) == 0)
     scr_gotorc (0, -1, RELATIVE);
+
   screen.flags &= ~Screen_WrapNext;
 }
 
@@ -1116,8 +1119,7 @@ rxvt_term::scr_gotorc (int row, int col, int relative)
 
   D_SCREEN ((stderr, "rxvt_scr_gotorc (r:%s%d,c:%s%d): from (r:%d,c:%d)", (relative & R_RELATIVE ? "+" : ""), row, (relative & C_RELATIVE ? "+" : ""), col, screen.cur.row, screen.cur.col));
 
-  screen.cur.col = ((relative & C_RELATIVE) ? (screen.cur.col + col)
-                    : col);
+  screen.cur.col = relative & C_RELATIVE ? screen.cur.col + col : col;
   MAX_IT (screen.cur.col, 0);
   MIN_IT (screen.cur.col, (int32_t)TermWin.ncol - 1);
 
@@ -1166,7 +1168,7 @@ rxvt_term::scr_gotorc (int row, int col, int relative)
 void
 rxvt_term::scr_index (enum page_dirn direction)
 {
-  int             dirn;
+  int dirn;
 
   want_refresh = 1;
   dirn = ((direction == UP) ? 1 : -1);
@@ -1519,6 +1521,7 @@ void
 rxvt_term::scr_cursor_visible (int mode)
 {
   want_refresh = 1;
+
   if (mode)
     screen.flags |= Screen_VisibleCursor;
   else
@@ -1844,6 +1847,7 @@ rxvt_term::scr_changeview (uint16_t oldviewstart)
       want_refresh = 1;
       num_scr -= (TermWin.view_start - oldviewstart);
     }
+
   return (int) (TermWin.view_start - oldviewstart);
 }
 
@@ -2519,8 +2523,8 @@ rxvt_term::paste (const unsigned char *data, unsigned int len)
       MEMCPY (ds, data + i, n);
 
       for (j = 0; j < n; j++)
-        if (ds[j] == '\n')
-          ds[j] = '\r';
+        if (ds[j] == C0_LF)
+          ds[j] = C0_CR;
 
       tt_write (ds, (int)n);
     }
@@ -2881,11 +2885,11 @@ rxvt_term::selection_make (Time tm)
         }
 
       if (screen.tlen[row] != -1 && row != end_row)
-        new_selection_text[ofs++] = L'\n';
+        new_selection_text[ofs++] = C0_LF;
     }
 
   if (end_col != selection.end.col)
-    new_selection_text[ofs++] = L'\n';
+    new_selection_text[ofs++] = C0_LF;
 
   new_selection_text[ofs] = 0;
 
@@ -3122,9 +3126,9 @@ rxvt_term::selection_extend (int x, int y, int flag)
 void
 rxvt_term::selection_extend_colrow (int32_t col, int32_t row, int button3, int buttonpress, int clickchange)
 {
-  int16_t         ncol = TermWin.ncol;
-  int             end_col;
-  row_col_t       pos;
+  int16_t ncol = TermWin.ncol;
+  int end_col;
+  row_col_t pos;
   enum {
     LEFT, RIGHT
   } closeto = RIGHT;
index 212ce1dfbe1ffc4b2786cf767c7a08077671a31a..99c29da00a725913931ef1b7ba12581eac1ae232 100644 (file)
@@ -1,11 +1,12 @@
 /*--------------------------------*-C-*---------------------------------*
- * File:       scrollbar-next.c
+ * File:       scrollbar-next.C
  *----------------------------------------------------------------------*
  *
  * Copyright (c) 1997,1998 mj olesen <olesen@me.QueensU.CA>
  * Copyright (c) 1998      Alfredo K. Kojima <kojima@windowmaker.org>
  *                             - N*XTstep like scrollbars
  * Copyright (c) 1999-2001 Geoff Wing <gcw@pobox.com>
+ * Copyright (c) 2004      Marc Lehmann <pcg@goof.com>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index ed92fb59b87ab5c42bfe4032994482d7a62cc006..b45d4f16d17619808d94f08d19a6f7c0fade03bd 100644 (file)
@@ -1,9 +1,10 @@
 /*----------------------------------------------------------------------*
- * File:       scrollbar-plain.c
+ * File:       scrollbar-plain.C
  *----------------------------------------------------------------------*
  *
  * Copyright (c) 1997,1998 mj olesen <olesen@me.QueensU.CA>
  * Copyright (c) 1999-2001 Geoff Wing <gcw@pobox.com>
+ * Copyright (c) 2004      Marc Lehmann <pcg@goof.com>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index a37890fd44edd3a4cb772c52ffaed055fda587f9..8cce92b3803d70433c52d61d2f7bc9a4f0a8afc3 100644 (file)
@@ -1,9 +1,10 @@
 /*--------------------------------*-C-*---------------------------------*
- * File:       scrollbar-rxvt.c
+ * File:       scrollbar-rxvt.C
  *----------------------------------------------------------------------*
  *
  * Copyright (c) 1997,1998 mj olesen <olesen@me.QueensU.CA>
  * Copyright (c) 1999-2001 Geoff Wing <gcw@pobox.com>
+ * Copyright (c) 2004      Marc Lehmann <pcg@goof.com>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index 150a80bbbb20a45e6f3b077b287e5888be0aafeb..fdd0d222a2bb8f856a62ce14456b9d126b77ff5e 100644 (file)
@@ -1,9 +1,10 @@
 /*--------------------------------*-C-*---------------------------------*
- * File:       scrollbar-xterm.c
+ * File:       scrollbar-xterm.C
  *----------------------------------------------------------------------*
  *
  * Copyright (c) 1997,1998 mj olesen <olesen@me.QueensU.CA>
  * Copyright (c) 1999-2001 Geoff Wing <gcw@pobox.com>
+ * Copyright (c) 2004      Marc Lehmann <pcg@goof.com>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index 8b5757e23e2c619eed07416dc557cc723b11d81c..3cda383ec340666864a7d9645e2798442584fb03 100644 (file)
@@ -1,11 +1,12 @@
 /*--------------------------------*-C-*---------------------------------*
- * File:       scrollbar.c
+ * File:       scrollbar.C
  *----------------------------------------------------------------------*
  *
  * Copyright (c) 1997,1998 mj olesen <olesen@me.QueensU.CA>
  * Copyright (c) 1998      Alfredo K. Kojima <kojima@windowmaker.org>
  *                             - N*XTstep like scrollbars
  * Copyright (c) 1999-2001 Geoff Wing <gcw@pobox.com>
+ * Copyright (c) 2004      Marc Lehmann <pcg@goof.com>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index a1442446cd2c3531d100e1f4deb45b36f88eb5a9..bb73eabbfebb0c7cb1a4e00247421dea6c641478 100644 (file)
@@ -1,10 +1,10 @@
 /*--------------------------------*-C-*---------------------------------*
- * File:       strings.c
+ * File:       strings.C
  *----------------------------------------------------------------------*
- * $Id: strings.C,v 1.5 2004-02-13 12:16:21 pcg Exp $
  *
  * All portions of code are copyright by their respective author/s.
  * Copyright (c) 1997-2001 Geoff Wing <gcw@pobox.com>
+ * Copyright (c) 2004      Marc Lehmann <pcg@goof.com>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index af382af917213933fade69a88934e53b93c43501..053d925071315e1e12b2957a18f68c79c28e544e 100644 (file)
@@ -1,5 +1,5 @@
-#define VERSION "2.7"
-#define VSTRING "20700"
-#define DATE   "2004-04-05"
-#define LSMDATE        "05APR04"
-#define LIBVERSION "2:7:0"
+#define VERSION "2.8"
+#define VSTRING "20800"
+#define DATE   "2004-04-08"
+#define LSMDATE        "08APR04"
+#define LIBVERSION "2:8:0"
index 7240f44021cb2ed6ac9d413a5cfd4f4d3d177664..aa32668b9bc1ec90ce83bc9be1cad838fdd11395 100644 (file)
@@ -1,12 +1,12 @@
 /*--------------------------------*-C-*---------------------------------*
- * File:       xdefaults.c
+ * File:       xdefaults.C
  *----------------------------------------------------------------------*
- * $Id: xdefaults.C,v 1.23 2004-04-02 18:00:01 pcg Exp $
  *
  * All portions of code are copyright by their respective author/s.
  * Copyright (c) 1994      Robert Nation <nation@rocket.sanders.lockheed.com>
  *                             - original version
  * Copyright (c) 1997,1998 mj olesen <olesen@me.queensu.ca>
+ * Copyright (c) 2003-2004 Marc Lehmann <pcg@goof.com>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index 90b3666aa1b70d693390299f2e69a013b8fea8b7..03367c9e6fb3b68e88972cce1013139cb710c2ae 100644 (file)
--- a/src/xpm.C
+++ b/src/xpm.C
@@ -1,7 +1,6 @@
 /*--------------------------------*-C-*---------------------------------*
- * File:       xpm.c
+ * File:       xpm.C
  *----------------------------------------------------------------------*
- * $Id: xpm.C,v 1.11 2004-04-02 20:41:01 pcg Exp $
  *
  * All portions of code are copyright by their respective author/s.
  * Copyright (c) 1997      Carsten Haitzler <raster@zip.com.au>