~ubuntu-branches/ubuntu/precise/xterm/precise-proposed

« back to all changes in this revision

Viewing changes to print.c

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2009-01-26 17:27:49 UTC
  • mfrom: (1.2.4 upstream)
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: james.westby@ubuntu.com-20090126172749-npmr7gtbe4jzc21h
Tags: upstream-239
ImportĀ upstreamĀ versionĀ 239

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $XTermId: print.c,v 1.80 2007/03/19 23:49:51 tom Exp $ */
 
1
/* $XTermId: print.c,v 1.81 2009/01/09 01:43:01 tom Exp $ */
2
2
 
3
3
/*
4
4
 * $XFree86: xc/programs/xterm/print.c,v 1.24 2006/06/19 00:36:51 dickey Exp $
6
6
 
7
7
/************************************************************
8
8
 
9
 
Copyright 1997-2006,2007 by Thomas E. Dickey
 
9
Copyright 1997-2007,2009 by Thomas E. Dickey
10
10
 
11
11
                        All Rights Reserved
12
12
 
193
193
#endif
194
194
                )
195
195
                && ch) {
196
 
                attr = (a[col] & SGR_MASK);
 
196
                attr = CharOf(a[col] & SGR_MASK);
197
197
                last_fg = fg;
198
198
                last_bg = bg;
199
199
                if (screen->print_attributes)
556
556
    case '4':
557
557
    case '5':
558
558
    case 'i':
559
 
        bfr[length++] = chr;
 
559
        bfr[length++] = CharOf(chr);
560
560
        for (n = 0; n < sizeof(tbl) / sizeof(tbl[0]); n++) {
561
561
            size_t len = Strlen(tbl[n].seq);
562
562
 
580
580
    default:
581
581
        for (n = 0; n < length; n++)
582
582
            charToPrinter(bfr[n]);
583
 
        bfr[0] = chr;
 
583
        bfr[0] = CharOf(chr);
584
584
        length = 1;
585
585
        return 0;
586
586
    }