/*--------------------------------*-C-*---------------------------------*
* File: command.c
*----------------------------------------------------------------------*
- * $Id: command.C,v 1.22 2003-12-18 13:33:02 pcg Exp $
+ * $Id: command.C,v 1.23 2003-12-18 14:11:47 pcg Exp $
*
* All portions of code are copyright by their respective author/s.
* Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk>
Status status_return;
#ifdef X_HAVE_UTF8_STRING
- if (R->enc_utf8)
+ if (R->enc_utf8 && 0)
len = Xutf8LookupString (R->Input_Context, ev, (char *)kbuf,
KBUFSZ, &keysym, &status_return);
else
fprintf(stderr, "'\n");
}
#endif /* DEBUG_CMD */
- R->tt_write(kbuf, (unsigned int)len);
+ R->tt_write (kbuf, (unsigned int)len);
}
/*}}} */
/*--------------------------------*-C-*--------------------------------------*
* File: screen.c
*---------------------------------------------------------------------------*
- * $Id: screen.C,v 1.11 2003-12-18 13:33:03 pcg Exp $
+ * $Id: screen.C,v 1.12 2003-12-18 14:11:47 pcg Exp $
*
* Copyright (c) 1997-2001 Geoff Wing <gcw@pobox.com>
*
#endif
rend_t *drp, *srp; /* drawn-rend-pointer, screen-rend-pointer */
text_t *dtp, *stp; /* drawn-text-pointer, screen-text-pointer */
- char *buffer; /* local copy of buffer */
if (refresh_type == NO_REFRESH || !TermWin.mapped)
return;
sizeof(char) * (currmaxcol + 1) * MB_CUR_MAX);
}
- buffer = buffer;
refresh_count = 0;
row_offset = TermWin.saveLines - TermWin.view_start;
#endif
ocrow = oldcursor.row; /* is there an old outline cursor on screen? */
-/*
- * B: reverse any characters which are selected
- */
+ /*
+ * B: reverse any characters which are selected
+ */
rxvt_scr_reverse_selection (this);
-/*
- * C: set the cursor character(s)
- */
+ /*
+ * C: set the cursor character(s)
+ */
{
unsigned char setoldcursor;
rend_t ccol1, /* Cursor colour */
}
#ifndef NO_SLOW_LINK_SUPPORT
-/*
- * D: CopyArea pass - very useful for slower links
- * This has been deliberately kept simple.
- */
+ /*
+ * D: CopyArea pass - very useful for slower links
+ * This has been deliberately kept simple.
+ */
i = num_scr;
if (refresh_type == FAST_REFRESH && num_scr_allow && i
&& abs(i) < TermWin.nrow && !must_clear)
}
#endif
-/*
- * E: main pass across every character
- */
+ /*
+ * E: main pass across every character
+ */
for (row = 0; row < TermWin.nrow; row++)
{
stp = screen.text[row + row_offset];
dtp = drawn_text[row];
drp = drawn_rend[row];
-/*
- * E2: OK, now the real pass
- */
+ /*
+ * E2: OK, now the real pass
+ */
int ypixel = (int)Row2Pixel(row);
for (col = 0; col < TermWin.ncol; col++)
col--; /* went one too far. move back */
count -= i; /* dump any matching trailing chars */
-/*
- * Determine the attributes for the string
- */
+ /*
+ * Determine the attributes for the string
+ */
int fid = GET_FONT(rend);
fore = GET_FGCOLOR(rend);
back = GET_BGCOLOR(rend);
}
#endif
-/*
- * Actually do the drawing of the string here
- */
+ /*
+ * Actually do the drawing of the string here
+ */
rxvt_font *font = (*TermWin.fontset)[fid];
if (back == Color_bg)
} /* for (col....) */
} /* for (row....) */
-/*
- * G: cleanup cursor and display outline cursor if necessary
- */
+ /*
+ * G: cleanup cursor and display outline cursor if necessary
+ */
if (showcursor) {
if (TermWin.focus) {
srp = &(screen.rend[screen.cur.row + TermWin.saveLines]
(unsigned int)(Height2Pixel(1) - TermWin.lineSpace - 1));
}
}
-/*
- * H: cleanup selection
- */
+
+ /*
+ * H: cleanup selection
+ */
rxvt_scr_reverse_selection (this);
-/*
- * I: other general cleanup
- */
+ /*
+ * I: other general cleanup
+ */
if (clearfirst && TermWin.int_bwidth)
/*
* clear the whole screen height, note that width == 0 is treated
/*--------------------------------*-C-*---------------------------------*
* File: scrollbar.c
*----------------------------------------------------------------------*
- * $Id: scrollbar.C,v 1.6 2003-12-18 13:33:03 pcg Exp $
+ * $Id: scrollbar.C,v 1.7 2003-12-18 14:11:47 pcg Exp $
*
* Copyright (c) 1997,1998 mj olesen <olesen@me.QueensU.CA>
* Copyright (c) 1998 Alfredo K. Kojima <kojima@windowmaker.org>
R->last_top = R->scrollBar.top;
R->last_bot = R->scrollBar.bot;
R->last_state = R->scrollBar.state;
-
#endif
+
return ret;
}