diff options
author | Clive Lin <clive@FreeBSD.org> | 2001-03-01 18:21:59 +0000 |
---|---|---|
committer | Clive Lin <clive@FreeBSD.org> | 2001-03-01 18:21:59 +0000 |
commit | 30c7bdac13f7f2456929ea053114933fde66f543 (patch) | |
tree | 150e03d9157ca6a660edfcd175f5058c8510b66a /chinese/aterm | |
parent | 0a76f31a598848b8958e58421684a68efb362fd3 (diff) |
Notes
Diffstat (limited to 'chinese/aterm')
-rw-r--r-- | chinese/aterm/Makefile | 36 | ||||
-rw-r--r-- | chinese/aterm/distinfo | 2 | ||||
-rw-r--r-- | chinese/aterm/files/cli_xcin.c | 146 | ||||
-rw-r--r-- | chinese/aterm/files/patch-aa | 20 | ||||
-rw-r--r-- | chinese/aterm/files/patch-ab | 29 | ||||
-rw-r--r-- | chinese/aterm/files/protocol.h | 13 | ||||
-rw-r--r-- | chinese/aterm/files/state.h | 23 | ||||
-rw-r--r-- | chinese/aterm/pkg-comment | 1 | ||||
-rw-r--r-- | chinese/aterm/pkg-descr | 12 | ||||
-rw-r--r-- | chinese/aterm/pkg-plist | 1 |
10 files changed, 0 insertions, 283 deletions
diff --git a/chinese/aterm/Makefile b/chinese/aterm/Makefile deleted file mode 100644 index 3aee14d4fe22..000000000000 --- a/chinese/aterm/Makefile +++ /dev/null @@ -1,36 +0,0 @@ -# New ports collection makefile for: zh-aterm -# Date created: 26 April 1999 -# Whom: Chia-Hsing Yu <davidyu@ken.csie.ntu.edu.tw> -# -# $FreeBSD$ -# - -PORTNAME= aterm -PORTVERSION= 0.3.6 -CATEGORIES= chinese -MASTER_SITES= http://members.xoom.com/sashav/aterm/ \ - http://www.tigr.net/afterstep/as-apps/download/aterm/ \ - ${MASTER_SITE_LOCAL} -MASTER_SITE_SUBDIR= foxfair - -MAINTAINER= davidyu@ken.csie.ntu.edu.tw - -LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ - png.4:${PORTSDIR}/graphics/png - -BROKEN= "Non-I18N-aware old-fashioned application no more supported" - -USE_X_PREFIX= yes -USE_XPM= yes -GNU_CONFIGURE= yes -CONFIGURE_ARGS= --enable-transparency --enable-background-image \ - --disable-delete-key --disable-backspace-key \ - --enable-fading --enable-utmp --enable-wtmp --enable-big5 -MAN1= aterm.1 - -post-patch: - ${CP} ${FILESDIR}/cli_xcin.c ${WRKSRC}/src/ - ${CP} ${FILESDIR}/state.h ${WRKSRC}/src/ - ${CP} ${FILESDIR}/protocol.h ${WRKSRC}/src/ - -.include <bsd.port.mk> diff --git a/chinese/aterm/distinfo b/chinese/aterm/distinfo deleted file mode 100644 index 50538e88919f..000000000000 --- a/chinese/aterm/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -MD5 (aterm-0.3.6.tar.gz) = 8adc789412c583fa5ee10ce664e43373 -MD5 (aterm-0.3.6.tar.gz) = dba960c51e40c64a84ad61dda42e75f0 diff --git a/chinese/aterm/files/cli_xcin.c b/chinese/aterm/files/cli_xcin.c deleted file mode 100644 index 91c14d2fa3d6..000000000000 --- a/chinese/aterm/files/cli_xcin.c +++ /dev/null @@ -1,146 +0,0 @@ -/* - Copyright (C) 1994,1995 Edward Der-Hua Liu, Hsin-Chu, Taiwan -*/ - -#include <stdio.h> -#include <stdarg.h> -#include <sys/types.h> -#include <X11/Xlib.h> -#include <X11/Xatom.h> -#include "state.h" -#include "protocol.h" - -/*static void p_err(char *fmt,...) -{ - va_list args; - - va_start(args, fmt); - fprintf(stderr,"%s:", "cli_xcin:"); - vfprintf(stderr, fmt, args); - va_end(args); - fprintf(stderr,"\n"); - exit(-1); -} -*/ - - -static Atom xcin_atom=0; -static Window xcin_win=None; -static InmdState inmdstate; -#define ENDIAN_TEST() (*(int *)"\x11\x22\x33\x44"==0x11223344) -char my_endian; - -static int connect_xcin(Display *display) -{ -/*Window twin;*/ -xcin_atom=XInternAtom(display, XCIN_ATOM,False); -my_endian=ENDIAN_TEST(); /* if == 11223344, it is big-endian */ - -xcin_win=XGetSelectionOwner(display,xcin_atom); -return xcin_win; -} - -void send_FocusIn(Display *display, Window window) -{ - XClientMessageEvent event; - /*XEvent erreve;*/ - char *tmp=event.data.b; - - if (connect_xcin(display)==None) return; -/* Ensure xcin exists, or the process will be hanged */ - event.type=ClientMessage; - event.window=window; - event.message_type=xcin_atom; - event.format=8; - - tmp[0]=tmp[1]=tmp[2]=0xff; - tmp[3]=CLI_FOCUS_IN; - memcpy(&tmp[4],&inmdstate, sizeof(inmdstate)); - XSendEvent(display, xcin_win, False, 0, (XEvent *)&event); -} - -void send_FocusOut(Display *display, Window window) -{ - XClientMessageEvent event; -/* XEvent erreve; */ - char *tmp=event.data.b; - - if (connect_xcin(display)==None) return; -/* Ensure xcin exists, or the process will be hanged */ - event.type=ClientMessage; - event.window=window; - event.message_type=xcin_atom; - event.format=8; - - tmp[0]=tmp[1]=tmp[2]=0xff; - tmp[3]=CLI_FOCUS_OUT; - memcpy(&tmp[4],&inmdstate, sizeof(inmdstate)); - XSendEvent(display, xcin_win, False, 0, (XEvent *)&event); -} - -static void big_little(char *i) -{ -char t; -t=*i; *i=*(i+3); *(i+3)=t; -t=*(i+1); *(i+1)=*(i+2); *(i+2)=t; -} -static int read_keys(Display *display, char *buf) -{ - Atom actual_type; - int actual_format/*,i*/; - u_long nitems,bytes_after; - char *ttt, *cp; - XCIN_RES res; - int ofs; - - cp=(char *)&res; - ofs=0; - do { - if (XGetWindowProperty(display,xcin_win,xcin_atom, - ofs/4,(sizeof(XCIN_RES)+3)/4, - True, AnyPropertyType, &actual_type,&actual_format, - &nitems,&bytes_after,(unsigned char **)&ttt) != Success) - puts("err property"); - memcpy((char *)(&res)+(ofs & ~0x3), ttt, nitems); - XFree(ttt); - ofs=(ofs & ~0x3) + nitems; - } while ((!nitems && !ofs) || bytes_after>0); - if (my_endian) { - big_little((char *)&res.len); - big_little((char *)&res.status); - } - memcpy(buf,res.tkey, res.len); - inmdstate=res.inmdstate; - buf[res.len]=0; - - return res.status; -} - -#include <X11/Xutil.h> - -static XComposeStatus compose_status = {NULL, 0}; - -int send_key(Display *display, Window win, XKeyEvent *eve, char *buf) -{ -XClientMessageEvent event; -/*XEvent erreve;*/ -char *tmp=event.data.b; -u_char tttt[8]; -/*KeySym keysym;*/ -int count; - -if (xcin_win==None && connect_xcin(display)==None) - return K_REJECT; -if ((xcin_win=XGetSelectionOwner(display,xcin_atom))==None) - return K_REJECT; - -event.type=ClientMessage; -event.window=win; -event.message_type=xcin_atom; -event.format=32; -count = XLookupString (eve, tttt, sizeof(tmp), (KeySym *)tmp, &compose_status); -memcpy(&tmp[4],&eve->state,4); -XSendEvent(display, xcin_win, False, 0, (XEvent *)&event); -XSync(display,False); -return (read_keys(display, buf)); -} diff --git a/chinese/aterm/files/patch-aa b/chinese/aterm/files/patch-aa deleted file mode 100644 index 422f546abdc9..000000000000 --- a/chinese/aterm/files/patch-aa +++ /dev/null @@ -1,20 +0,0 @@ ---- src/Makefile.in.orig Fri May 14 05:30:49 1999 -+++ src/Makefile.in Fri May 14 05:31:10 1999 -@@ -19,13 +19,14 @@ - - SRCS = command.c graphics.c grkelot.c main.c menubar.c misc.c \ - netdisp.c rmemset.c screen.c @SBARFILE@.c utmp.c xdefaults.c \ -- pixmap.c ximage_utils.c -+ pixmap.c ximage_utils.c cli_xcin.c - - OBJS = command.o graphics.o grkelot.o main.o menubar.o misc.o \ - netdisp.o rmemset.o screen.o @SBARFILE@.o utmp.o xdefaults.o \ -- pixmap.o ximage_utils.o -+ pixmap.o ximage_utils.o cli_xcin.o - --HDRS = feature.h protos.h grkelot.h rxvt.h rxvtgrx.h screen.h version.h -+HDRS = feature.h protos.h grkelot.h rxvt.h rxvtgrx.h screen.h version.h \ -+ state.h protocol.h - - PROS = command.pro graphics.pro grkelot.pro main.pro menubar.pro misc.pro \ - netdisp.pro rmemset.pro screen.pro @SBARFILE@.pro utmp.pro xdefaults.pro \ diff --git a/chinese/aterm/files/patch-ab b/chinese/aterm/files/patch-ab deleted file mode 100644 index 4abeec0e9949..000000000000 --- a/chinese/aterm/files/patch-ab +++ /dev/null @@ -1,29 +0,0 @@ ---- src/command.c.orig Fri May 14 05:31:24 1999 -+++ src/command.c Fri May 14 05:34:35 1999 -@@ -2128,11 +2128,17 @@ - static int bypass_keystate = 0; - int reportmode; - static int csrO = 0; /* Hops - csr offset in thumb/slider */ -+ int k_status; -+ char kbuf[256]; - - /* to give proper Scroll behaviour */ - switch (ev->type) { - case KeyPress: -- lookup_key(ev); -+ k_status = send_key(Xdisplay, TermWin.parent, &ev->xkey, kbuf); -+ if(!k_status) -+ lookup_key(ev); -+ else if(kbuf[0]) -+ tt_write(kbuf, strlen(kbuf)); - break; - - case ClientMessage: -@@ -2197,6 +2203,7 @@ - - case FocusIn: - if (!TermWin.focus) { -+ send_FocusIn(Xdisplay, TermWin.parent); - TermWin.focus = 1; - #ifdef OFF_FOCUS_FADING - if( rs_fade != NULL ) diff --git a/chinese/aterm/files/protocol.h b/chinese/aterm/files/protocol.h deleted file mode 100644 index bc19abfb5d12..000000000000 --- a/chinese/aterm/files/protocol.h +++ /dev/null @@ -1,13 +0,0 @@ -/* - Copyright (C) 1994 Edward Der-Hua Liu, Hsin-Chu, Taiwan -*/ - -#define K_REJECT (0) -#define K_ACCEPT (1) - -#define CLI_FOCUS_IN (1) -#define CLI_FOCUS_OUT (3) - -#define LOAD_KEYWORD (2) - -#define XCIN_ATOM "XCIN_A" diff --git a/chinese/aterm/files/state.h b/chinese/aterm/files/state.h deleted file mode 100644 index e663df9fb986..000000000000 --- a/chinese/aterm/files/state.h +++ /dev/null @@ -1,23 +0,0 @@ -/* - Copyright (C) 1994 Edward Der-Hua Liu, Hsin-Chu, Taiwan -*/ - -typedef struct { - char kb_state; - char _CurInMethod; -} InmdState; - -#define EngChiMask (1) -#define HalfFullMask (2) - -typedef struct { - int len; - int status; - InmdState inmdstate; - char tkey[512]; -} XCIN_RES; - -#define EngChi ((inmdstate.kb_state & EngChiMask) ? 1:0) -#define HalfFull ((inmdstate.kb_state & HalfFullMask) ? 1:0) -#define CurInMethod (inmdstate._CurInMethod) -/* extern InmdState inmdstate; */ diff --git a/chinese/aterm/pkg-comment b/chinese/aterm/pkg-comment deleted file mode 100644 index 51dd2923467d..000000000000 --- a/chinese/aterm/pkg-comment +++ /dev/null @@ -1 +0,0 @@ -A color vt102 terminal emulator with transparency support diff --git a/chinese/aterm/pkg-descr b/chinese/aterm/pkg-descr deleted file mode 100644 index c49a5903ec09..000000000000 --- a/chinese/aterm/pkg-descr +++ /dev/null @@ -1,12 +0,0 @@ -aterm is a color vt102 terminal emulator, based on rxvt 2.4.8 with -additions for fast transparency. - -It was created with AfterStep users in mind, but is not tied to any -libraries, and can be used anywhere. - -- Jim <jim@phrantic.phear.net> - - -This port supports XCIN. - -- David Yu <davidyu@ken.csie.ntu.edu.tw> diff --git a/chinese/aterm/pkg-plist b/chinese/aterm/pkg-plist deleted file mode 100644 index 6a4f1420cad3..000000000000 --- a/chinese/aterm/pkg-plist +++ /dev/null @@ -1 +0,0 @@ -bin/aterm |