=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tic/dump_entry.c,v retrieving revision 1.11 retrieving revision 1.12 diff -c -r1.11 -r1.12 *** src/usr.bin/tic/dump_entry.c 2000/01/02 21:48:13 1.11 --- src/usr.bin/tic/dump_entry.c 2000/01/05 18:15:51 1.12 *************** *** 1,4 **** ! /* $OpenBSD: dump_entry.c,v 1.11 2000/01/02 21:48:13 millert Exp $ */ /**************************************************************************** * Copyright (c) 1998-2000 Free Software Foundation, Inc. * --- 1,4 ---- ! /* $OpenBSD: dump_entry.c,v 1.12 2000/01/05 18:15:51 millert Exp $ */ /**************************************************************************** * Copyright (c) 1998-2000 Free Software Foundation, Inc. * *************** *** 769,781 **** if ((len = fmt_entry(tterm, pred, TRUE, infodump, numbers)) > critlen) { /* * We pick on sgr because it's a nice long string capability that ! * is really just an optimization hack. */ char *oldsgr = set_attributes; set_attributes = ABSENT_STRING; PRINTF("# (sgr removed to fit entry within %d bytes)\n", critlen); if ((len = fmt_entry(tterm, pred, TRUE, infodump, numbers)) > critlen) { int oldversion = tversion; tversion = V_BSD; --- 769,788 ---- if ((len = fmt_entry(tterm, pred, TRUE, infodump, numbers)) > critlen) { /* * We pick on sgr because it's a nice long string capability that ! * is really just an optimization hack. Another good candidate is ! * acsc since it is both long and unused by BSD termcap. */ char *oldsgr = set_attributes; + char *oldacsc = acs_chars; set_attributes = ABSENT_STRING; PRINTF("# (sgr removed to fit entry within %d bytes)\n", critlen); if ((len = fmt_entry(tterm, pred, TRUE, infodump, numbers)) > critlen) { + acs_chars = ABSENT_STRING; + PRINTF("# (acsc removed to fit entry within %d bytes)\n", + critlen); + } + if ((len = fmt_entry(tterm, pred, TRUE, infodump, numbers)) > critlen) { int oldversion = tversion; tversion = V_BSD; *************** *** 795,800 **** --- 802,808 ---- tversion = oldversion; } set_attributes = oldsgr; + acs_chars = oldacsc; } }