Newsgroups: alt.sources,de.comm.internet.software From: olaf@inka.de (Olaf Titz) Subject: ytalk 3.02 8-bit transparency patch Date: 05 Jan 1996 12:53:57 GMT Message-ID: Archive-name: ytalk-3.02-8bit Submitted-by: Olaf Titz --- ../ytalk-3.02/README.8bit +++ README.8bit Fri Jan 5 13:11:31 1996 @@ -0,0 +1,7 @@ +Often wanted feature in Europe: +Add -DPASS8 to TDEFS in the Makefile or Imakefile and you'll get an +8 bit transparent version. Do not use this option if your terminal +gets confused by high-order characters. X11 should be OK. +You need an 8-bit clean curses for this to work. + +Olaf Titz --- ../ytalk-3.02/comm.c +++ comm.c Fri Sep 8 17:57:00 1995 @@ -1157,7 +1157,11 @@ } for(; len > 0; len--, buf++) { +#ifdef PASS8 + if(*buf >= ' ') +#else if(*buf >= ' ' && *buf <= '~') +#endif { if(user->x + 1 >= user->cols) { --- ../ytalk-3.02/term.c +++ term.c Fri Sep 8 17:57:25 1995 @@ -279,7 +279,11 @@ register yuser *user; register ychar c; { +#ifdef PASS8 + if(c >= ' ') +#else if(c >= ' ' && c <= '~') +#endif { _addch_term(user, c); user->scr[user->y][user->x] = c; @@ -1163,7 +1167,11 @@ { if(*c == '\0') c = str; +#ifdef PASS8 + if(*c < ' ') +#else if(*c < ' ' || *c > '~') +#endif return; _addch_term(user, *c); } --- ../ytalk-3.02/term.doc +++ term.doc Fri Jan 5 13:11:32 1996 @@ -234,6 +234,8 @@ 32 [space] to 126 [tilde] inclusive. Therefore, the addch_???() procedure need not consider how to display control characters or high-bit characters, because these will never be sent. +This does not appy if PASS8 is defined. In this case the terminal +interface can be sent all characters in the range 32 to 255. Similarly, the move_???() procedure will never be called with Y or X values outside the range of the current window. -- ___ Olaf.Titz@inka.de or @{stud,informatik}.uni-karlsruhe.de ____ __ o __/<_ >> Just as long as the wheels keep on turning round _)>(_)______________ I will live for the groove 'til the sun goes down << ____