>>>>> On 31 May 93 10:18:00 GMT, cp76@solar.csie.ntu.edu.tw (One day when we were young) said: One> Nntp-Posting-Host: cp76@ccsun7.csie.nctu.edu.tw One> TAN KEE SIN (isc10436@nusunix1.nus.sg) wrote: One> : Hi everyone! One> : I'm wondering...Has anyone ported CXterm (Chinese Xterm) to One> : Linux? One> : I'm having lots of problems comiling the one at ifcss.org. One> : Thanx One> : TanKS One> : email: tankeesi@vms1.iscs.nus.sg One> The compiled src and bin are available in One> earth.csie.ntu.edu.tw(140.112.28.163) /pub/Linux One> Note that you must link cxterm with static libs, or it will coredump. One> ( Why ?????????) This is a bug in charpro.c,I have send a bug report to the auther. One> I am using cxterm + term + seyon to read news. One> ------------ One> dhliu@solar.csie.ntu.edu.tw Try my patch. Apply this against cxterm 11.5.1 ----cut here ------------ diff -ru cxterm/data.c cxterm-old/data.c --- cxterm/data.c Wed May 12 21:15:51 1993 +++ cxterm-old/data.c Wed May 12 21:18:30 1993 @@ -73,14 +73,8 @@ Char *Tpushback; int Ttoggled = 0; int bcnt = 0; -#ifdef HANZI -static Char buffer_plus_1 [BUF_SIZE + 1]; -Char *buffer = buffer_plus_1 + 1; -Char *bptr = buffer_plus_1 + 1; -#else Char buffer[BUF_SIZE]; Char *bptr = buffer; -#endif /* HANZI */ jmp_buf VTend; XPoint VTbox[NBOX] = { {0, 0}, diff -ru cxterm/data.h cxterm-old/data.h --- cxterm/data.h Wed May 12 21:19:38 1993 +++ cxterm-old/data.h Wed May 12 21:18:30 1993 @@ -49,11 +49,7 @@ extern char *ptydev; extern char *ttydev; extern char *xterm_name; -#ifdef HANZI -extern Char *buffer; -#else extern Char buffer[]; -#endif HANZI extern int Select_mask; extern int T_lastx; extern int T_lasty; @@ -81,4 +77,3 @@ extern XtermWidget term; extern TekWidget tekWidget; - diff -ru cxterm/hzimpath.c cxterm-old/hzimpath.c --- cxterm/hzimpath.c Wed May 12 21:15:51 1993 +++ cxterm-old/hzimpath.c Wed May 12 21:18:31 1993 @@ -31,12 +31,6 @@ #define ATT #endif -#ifdef linux /* Linux */ -#define SYSV /* Linux (approx) superset of SYSV like */ -#define USE_SYSV_UTMP -#define USE_TERMIOS -#endif - #ifdef SVR4 #define SYSV #define ATT diff -ru cxterm/main.c cxterm-old/main.c --- cxterm/main.c Wed May 12 21:15:52 1993 +++ cxterm-old/main.c Wed May 12 21:18:34 1993 @@ -67,12 +67,6 @@ #define ATT #endif -#ifdef linux /* Linux */ -#define SYSV /* Linux (approx) superset of SYSV like */ -#define USE_SYSV_UTMP -#define USE_TERMIOS -#endif - #ifdef SVR4 #define SYSV /* SVR4 is (approx) superset of SVR3 */ #define USE_SYSV_UTMP @@ -830,9 +824,7 @@ #ifdef USE_TERMIOS d_tio.c_cc[VSUSP] = CSUSP; -#ifndef linux d_tio.c_cc[VDSUSP] = CDSUSP; -#endif d_tio.c_cc[VREPRINT] = CNUL; d_tio.c_cc[VDISCARD] = CNUL; d_tio.c_cc[VWERASE] = CNUL; @@ -906,9 +898,7 @@ #endif /* TIOCSLTC */ #ifdef USE_TERMIOS d_tio.c_cc[VSUSP] = '\000'; -#ifndef linux d_tio.c_cc[VDSUSP] = '\000'; -#endif d_tio.c_cc[VREPRINT] = '\377'; d_tio.c_cc[VDISCARD] = '\377'; d_tio.c_cc[VWERASE] = '\377'; @@ -1100,17 +1090,6 @@ exit(ERROR_INIT); /* set up stderr properly */ - /* what a stupid code !!!, dliu */ -#ifdef linux -#ifdef DEBUG - if (debug) -#ifdef HANZI - freopen ("cxtern.debug.log", "w", stderr); -#else /* HANZI */ - freopen ("xterm.debug.log", "w", stderr); -#endif /* HANZI */ -#endif /* DEBUG */ -#else /*linux */ i = -1; #ifdef DEBUG if(debug) @@ -1139,7 +1118,6 @@ /* mark this file as close on exec */ (void) fcntl(i, F_SETFD, 1); } -#endif /* linux */ /* open a terminal for client */ get_terminal (); @@ -2307,9 +2285,7 @@ /* set up the new entry */ utmp.ut_type = USER_PROCESS; -#ifndef linux utmp.ut_exit.e_exit = 2; -#endif /* linux */ (void) strncpy(utmp.ut_user, (pw && pw->pw_name) ? pw->pw_name : "????", sizeof(utmp.ut_user)); -- Dong Liu <dliu@ace.njit.edu> Electrical and Computer Engineering Department New Jersey Institute of Technology, Newark, NJ 07102
| David Miller | [GIT]: Networking |
| Greg KH | Re: [PATCH 5/7] FUSE: implement ioctl support |
| Frans Meulenbroeks | Re: [PATCH 00/10] AXFS: Advanced XIP filesystem |
| Rafael J. Wysocki | [Bug #11407] suspend: unable to handle kernel paging request |
git: | |
| Kevin Ballard | Re: git on MacOSX and files with decomposed utf-8 file names |
| Andi Kleen | Re: pack operation is thrashing my server |
| Aubrey Li | git proxy issue |
| Thomas Glanzmann | Re: fatal: ambiguous argument 'HEAD': unknown revision or path not in the working ... |
| Bryan Irvine | Re: find -exec {} help |
| Todd Pytel | IDE or SCSI virtual disks for VMWare image? |
| NetOne - Doichin Dokov | OpenBSD as Xen domU |
| Calomel | Re: OpenSSL On Openbsd help |
| Laurent Pinchart | [PATCH] dm9000: Support MAC address setting through platform data. |
| Jay Cliburn | Re: [PATCH 06/26] atl1: update initialization parameters |
| Benjamin Herrenschmidt | [PATCH 6/11] ibm_newemac: Cleanup/fix support for STACR register variants |
| Chris Snook | [RFC] introducing the Atheros L2 Fast Ethernet driver |
