xxvt-commit Mailing List for xxvt
Status: Pre-Alpha
Brought to you by:
nlevitt
You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
(7) |
Apr
(2) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|---|
|
From: Pierre-Paul L. <pp...@us...> - 2002-05-16 02:44:47
|
Update of /cvsroot/xxvt/xxvt
In directory usw-pr-cvs1:/tmp/cvs-serv28059
Modified Files:
init.c
Log Message:
add the window name (xxvt)
Index: init.c
===================================================================
RCS file: /cvsroot/xxvt/xxvt/init.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- init.c 12 Apr 2002 02:47:10 -0000 1.27
+++ init.c 16 May 2002 02:44:44 -0000 1.28
@@ -263,6 +263,7 @@
XSetWMNormalHints(xinfo->display, xinfo->window, xinfo->sizehints);
XSetWMProtocols(xinfo->display, xinfo->window, &X_WM_DELETE_WINDOW, 1);
+ XStoreName(xinfo->display, xinfo->window, "xxvt");
XSelectInput(xinfo->display, xinfo->window, KeyPressMask
| ButtonPressMask | ButtonReleaseMask | ButtonMotionMask
|
|
From: Pierre-Paul L. <pp...@us...> - 2002-04-12 04:17:53
|
Update of /cvsroot/xxvt/xxvt
In directory usw-pr-cvs1:/tmp/cvs-serv32508
Modified Files:
util.c
Log Message:
removed calling of xxvt_malloc in xxvt_realloc.
If NULL is passed to realloc, it behaves like malloc.
The error mesg should be easier to diagnose this way.
Index: util.c
===================================================================
RCS file: /cvsroot/xxvt/xxvt/util.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- util.c 7 Mar 2002 03:48:33 -0000 1.8
+++ util.c 12 Apr 2002 04:17:50 -0000 1.9
@@ -61,13 +61,9 @@
{
register void *rv;
- if (ptr == NULL)
- return xxvt_malloc(size);
- else
- rv = realloc(ptr, size);
-
+ rv = realloc(ptr, size);
if (rv == NULL) {
- fprintf(stderr, "realloc(0x%p, %u) failed\n", ptr, (unsigned) size);
+ fprintf(stderr, "realloc(0x%p, %u) failed\n", ptr, (unsigned) size);
exit(EXIT_FAILURE);
}
|
|
From: Pierre-Paul L. <pp...@us...> - 2002-04-12 02:47:14
|
Update of /cvsroot/xxvt/xxvt
In directory usw-pr-cvs1:/tmp/cvs-serv13444
Modified Files:
init.c
Log Message:
corrected the error mesg on XOpenDisplay error (XOpenDisplay doesn't
set errno)
using NULL as argument to XDisplayName, should be changed to the
correct pointer when we have the option
Index: init.c
===================================================================
RCS file: /cvsroot/xxvt/xxvt/init.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- init.c 31 Mar 2002 03:40:53 -0000 1.26
+++ init.c 12 Apr 2002 02:47:10 -0000 1.27
@@ -118,7 +118,8 @@
xinfo->display = XOpenDisplay(NULL);
if (xinfo->display == NULL) {
- perror("XOpenDisplay");
+ fprintf(stderr, "unable to open display \"%s\"\n",
+ XDisplayName(NULL));
exit(EXIT_FAILURE);
}
|
|
From: Noah L. <nl...@us...> - 2002-03-31 19:11:42
|
Update of /cvsroot/xxvt/xxvt
In directory usw-pr-cvs1:/tmp/cvs-serv6793
Modified Files:
line.c
Log Message:
wmemset -> xxvt_wmemset
Index: line.c
===================================================================
RCS file: /cvsroot/xxvt/xxvt/line.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- line.c 27 Mar 2002 06:21:38 -0000 1.12
+++ line.c 31 Mar 2002 19:11:40 -0000 1.13
@@ -202,7 +202,7 @@
{
int i;
- wmemset(line->text, L' ', line->size);
+ xxvt_wmemset(line->text, L' ', line->size);
for (i=0; i<line->size; i++)
line->rend[i] = (line->rend[i] & ~RENDWIDTHMASK) | 0x01;
|
|
From: Noah L. <nl...@us...> - 2002-03-31 19:11:17
|
Update of /cvsroot/xxvt/xxvt In directory usw-pr-cvs1:/tmp/cvs-serv6692 Modified Files: text.c Log Message: cool doublewidth 2 in comment Index: text.c =================================================================== RCS file: /cvsroot/xxvt/xxvt/text.c,v retrieving revision 1.38 retrieving revision 1.39 diff -u -d -r1.38 -r1.39 --- text.c 20 Mar 2002 03:45:36 -0000 1.38 +++ text.c 31 Mar 2002 19:11:14 -0000 1.39 @@ -115,7 +115,7 @@ * 6. If cursor_wcwidth(screen) == 1 and wcwidth(next wchar_t) == 2, * and wcwidth(wc) == 1, replaces character under cursor with * wc and next wchar_t with space. What happens to the columns: - * [1][_2] -> [_2][1]. Advance the cursor to the newly added space. + * [1][ï¼] -> [ï¼][1]. Advance the cursor to the newly added space. * 7. If wcwidth(wc) == 0 and cursor->index > 0, insert wc between * the cursor and the next character. wc, a combining character, * gets tacked on to the previous character. Does not move cursor. |
|
From: Noah L. <nl...@us...> - 2002-03-31 19:10:44
|
Update of /cvsroot/xxvt/xxvt
In directory usw-pr-cvs1:/tmp/cvs-serv6585
Modified Files:
main.c
Log Message:
getting rid of dumb little thing that shouldn't be there
Index: main.c
===================================================================
RCS file: /cvsroot/xxvt/xxvt/main.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- main.c 31 Mar 2002 04:38:55 -0000 1.20
+++ main.c 31 Mar 2002 19:10:41 -0000 1.21
@@ -169,12 +169,6 @@
break;
case ClientMessage:
-#if 0
- if (ev->xclient.format == 32
- && (Atom)ev->xclient.data.l[0] == h->xa[XA_WMDELETEWINDOW])
- exit(EXIT_SUCCESS);
-#endif
-
if (e.xclient.format == 32
&& (Atom) e.xclient.data.l[0] == X_WM_DELETE_WINDOW) {
/* this is what rxvt does, so I guess it's clean enough */
|
|
From: Pierre-Paul L. <pp...@us...> - 2002-03-31 04:38:57
|
Update of /cvsroot/xxvt/xxvt
In directory usw-pr-cvs1:/tmp/cvs-serv31931
Modified Files:
main.c
Log Message:
make up/down/left/right arrow keys work on a terminal which support ANSI
escape sequences.
Case insensitive comparasion might be use here, I don't know what
the X standard have to say about the standard names returned by
XLookupString
I don't know about the debug levels for xxvt_debug... just put zero.
Index: main.c
===================================================================
RCS file: /cvsroot/xxvt/xxvt/main.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- main.c 25 Mar 2002 02:05:33 -0000 1.19
+++ main.c 31 Mar 2002 04:38:55 -0000 1.20
@@ -107,6 +107,7 @@
size_t len;
static char buf[10];
KeySym ks;
+ char *pch;
const char *const eventnames[] = {
"", "", "KeyPress", "KeyRelease", "ButtonPress", "ButtonRelease",
@@ -125,6 +126,33 @@
{
case KeyPress:
len = XLookupString(&e.xkey, buf, sizeof(buf), &ks, NULL);
+
+ if (len == 0 && (pch = XKeysymToString(ks)) != NULL)
+ {
+ if (strcmp(pch, "Up") == 0)
+ {
+ memcpy(buf, "\033[A", 4);
+ len = 3;
+ }
+ else if (strcmp(pch, "Down") == 0)
+ {
+ memcpy(buf, "\033[B", 4);
+ len = 3;
+ }
+ else if (strcmp(pch, "Right") == 0)
+ {
+ memcpy(buf, "\033[C", 4);
+ len = 3;
+ }
+ else if (strcmp(pch, "Left") == 0)
+ {
+ memcpy(buf, "\033[D", 4);
+ len = 3;
+ }
+ else
+ xxvt_debug(0, "XKeysymToString: %s\n", pch);
+ }
+
if (write(xxvt->cmd->pty, buf, len) < 0)
perror("write");
break;
|
|
From: Pierre-Paul L. <pp...@us...> - 2002-03-31 03:40:57
|
Update of /cvsroot/xxvt/xxvt
In directory usw-pr-cvs1:/tmp/cvs-serv18709
Modified Files:
init.c
Log Message:
looking for $SHELL, if not available we use /bin/sh as default shell.
when exec in children, if it fails, perror then sleep 5 seconds so the user
can see what's happening. xterm does the same.
Index: init.c
===================================================================
RCS file: /cvsroot/xxvt/xxvt/init.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** init.c 30 Mar 2002 17:18:00 -0000 1.25
--- init.c 31 Mar 2002 03:40:53 -0000 1.26
***************
*** 58,61 ****
--- 58,65 ----
cmd_t *cmd;
char *ttyname;
+ char *shell;
+
+ if ( (shell = getenv("SHELL")) == NULL)
+ shell = "/bin/sh";
cmd = xxvt_malloc(sizeof(cmd_t));
***************
*** 79,84 ****
close(cmd->tty);
! execl("/bin/bash", "/bin/bash", NULL);
perror("execl");
exit(EXIT_FAILURE);
/* NOTREACHED */
--- 83,89 ----
close(cmd->tty);
! execl(shell, shell, NULL);
perror("execl");
+ sleep(5);
exit(EXIT_FAILURE);
/* NOTREACHED */
|
|
From: Pierre-Paul L. <pp...@us...> - 2002-03-30 17:18:05
|
Update of /cvsroot/xxvt/xxvt
In directory usw-pr-cvs1:/tmp/cvs-serv32144
Modified Files:
init.c
Log Message:
since we don't make any further explicit reference to the cursor we
allocated, we can XFreeCursor the ressource right after.
Index: init.c
===================================================================
RCS file: /cvsroot/xxvt/xxvt/init.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** init.c 25 Mar 2002 02:05:33 -0000 1.24
--- init.c 30 Mar 2002 17:18:00 -0000 1.25
***************
*** 254,257 ****
--- 254,258 ----
cursor = XCreateFontCursor(xinfo->display, XC_xterm);
XDefineCursor(xinfo->display, xinfo->window, cursor);
+ XFreeCursor(xinfo->display, cursor);
XSetWMNormalHints(xinfo->display, xinfo->window, xinfo->sizehints);
|
|
From: Pierre-Paul L. <pp...@us...> - 2002-03-28 02:45:39
|
Update of /cvsroot/xxvt/xxvt/test In directory usw-pr-cvs1:/tmp/cvs-serv12296 Modified Files: test001.c Log Message: syncmail works now!!!! wehooo! :-) Index: test001.c =================================================================== RCS file: /cvsroot/xxvt/xxvt/test/test001.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** test001.c 28 Mar 2002 02:33:15 -0000 1.2 --- test001.c 28 Mar 2002 02:45:36 -0000 1.3 *************** *** 2,9 **** /* tests some escape sequences */ - #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> void write_line(int length); --- 2,10 ---- /* tests some escape sequences */ #include <stdio.h> #include <stdlib.h> #include <string.h> + + #include <unistd.h> void write_line(int length); |