ed.refresh.c (59243) | ed.refresh.c (61519) |
---|---|
1/* $Header: /src/pub/tcsh/ed.refresh.c,v 3.25 1998/11/24 18:17:22 christos Exp $ */ | 1/* $Header: /src/pub/tcsh/ed.refresh.c,v 3.26 2000/06/10 20:14:57 kim Exp $ */ |
2/* 3 * ed.refresh.c: Lower level screen refreshing functions 4 */ 5/*- 6 * Copyright (c) 1980, 1991 The Regents of the University of California. 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without --- 21 unchanged lines hidden (view full) --- 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 */ 37#include "sh.h" 38 | 2/* 3 * ed.refresh.c: Lower level screen refreshing functions 4 */ 5/*- 6 * Copyright (c) 1980, 1991 The Regents of the University of California. 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without --- 21 unchanged lines hidden (view full) --- 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 */ 37#include "sh.h" 38 |
39RCSID("$Id: ed.refresh.c,v 3.25 1998/11/24 18:17:22 christos Exp $") | 39RCSID("$Id: ed.refresh.c,v 3.26 2000/06/10 20:14:57 kim Exp $") |
40 41#include "ed.h" 42/* #define DEBUG_UPDATE */ 43/* #define DEBUG_REFRESH */ 44/* #define DEBUG_LITERAL */ 45 46/* refresh.c -- refresh the current set of lines on the screen */ 47 --- 129 unchanged lines hidden (view full) --- 177 Vdraw(((c >> 6) & 7) + '0'); 178 Vdraw(((c >> 3) & 7) + '0'); 179 Vdraw((c & 7) + '0'); 180 } 181#endif /*_OSD_POSIX*/ 182 } 183 } 184#ifdef KANJI | 40 41#include "ed.h" 42/* #define DEBUG_UPDATE */ 43/* #define DEBUG_REFRESH */ 44/* #define DEBUG_LITERAL */ 45 46/* refresh.c -- refresh the current set of lines on the screen */ 47 --- 129 unchanged lines hidden (view full) --- 177 Vdraw(((c >> 6) & 7) + '0'); 178 Vdraw(((c >> 3) & 7) + '0'); 179 Vdraw((c & 7) + '0'); 180 } 181#endif /*_OSD_POSIX*/ 182 } 183 } 184#ifdef KANJI |
185 else if (!adrof(STRnokanji)) { | 185 else if ( 186#ifdef DSPMBYTE 187 _enable_mbdisp && 188#endif 189 !adrof(STRnokanji)) { |
186 Vdraw(c); 187 return; 188 } 189#endif 190 else { 191 Vdraw('\\'); 192 Vdraw(((c >> 6) & 7) + '0'); 193 Vdraw(((c >> 3) & 7) + '0'); --- 1065 unchanged lines hidden (view full) --- 1259 PutPlusOne((c & 7) + '0'); 1260 } 1261#endif /*_OSD_POSIX*/ 1262 } 1263 else if (Isprint(c)) { /* normal char */ 1264 PutPlusOne(c); 1265 } 1266#ifdef KANJI | 190 Vdraw(c); 191 return; 192 } 193#endif 194 else { 195 Vdraw('\\'); 196 Vdraw(((c >> 6) & 7) + '0'); 197 Vdraw(((c >> 3) & 7) + '0'); --- 1065 unchanged lines hidden (view full) --- 1263 PutPlusOne((c & 7) + '0'); 1264 } 1265#endif /*_OSD_POSIX*/ 1266 } 1267 else if (Isprint(c)) { /* normal char */ 1268 PutPlusOne(c); 1269 } 1270#ifdef KANJI |
1267 else if (!adrof(STRnokanji)) { | 1271 else if ( 1272#ifdef DSPMBYTE 1273 _enable_mbdisp && 1274#endif 1275 !adrof(STRnokanji)) { |
1268 PutPlusOne(c); 1269 } 1270#endif 1271 else { 1272 PutPlusOne('\\'); 1273 PutPlusOne(((c >> 6) & 7) + '0'); 1274 PutPlusOne(((c >> 3) & 7) + '0'); 1275 PutPlusOne((c & 7) + '0'); --- 42 unchanged lines hidden --- | 1276 PutPlusOne(c); 1277 } 1278#endif 1279 else { 1280 PutPlusOne('\\'); 1281 PutPlusOne(((c >> 6) & 7) + '0'); 1282 PutPlusOne(((c >> 3) & 7) + '0'); 1283 PutPlusOne((c & 7) + '0'); --- 42 unchanged lines hidden --- |