~ubuntu-branches/ubuntu/precise/xterm/precise-updates

« back to all changes in this revision

Viewing changes to xtermcap.c

  • Committer: Bazaar Package Importer
  • Author(s): Robert Hooker
  • Date: 2010-06-10 22:13:44 UTC
  • mfrom: (1.1.18 upstream) (11.1.19 sid)
  • Revision ID: james.westby@ubuntu.com-20100610221344-s4wbmxbevlklu7fv
Tags: 259-1ubuntu1
* Merge from debian unstable. Remaining Ubuntu changes:
  - Revert the libutempter change because it's in universe. (LP: #539473)
  - Enabled URL highlighting
  - Add 100_uxterm_utf8_title.patch: Set utf8Titles to true by default
    when using uxterm, so that it displays utf8 directories in titles
    properly.  May cause issues with apps that use control sequences for
    updating the xterm titlebar - users should use xterm or set utf8Title
    to false in this case. (LP: #320388, #408496)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $XTermId: xtermcap.c,v 1.41 2010/01/05 00:46:56 tom Exp $ */
 
1
/* $XTermId: xtermcap.c,v 1.43 2010/05/21 08:54:16 tom Exp $ */
2
2
 
3
3
/*
4
4
 * Copyright 2007-2009,2010 by Thomas E. Dickey
54
54
#define TcapInit(buffer, name) (tgetent(buffer, name) == 1)
55
55
#endif
56
56
 
 
57
#define NO_STRING (char *)(-1)
 
58
 
57
59
#if OPT_TCAP_QUERY || OPT_TCAP_FKEYS
58
60
 
59
61
#define SHIFT (MOD_NONE + MOD_SHIFT)
60
62
 
61
 
#define NO_STRING (char *)(-1)
62
 
 
63
63
typedef struct {
64
64
    const char *tc;
65
65
    const char *ti;
263
263
            char *fkey;
264
264
 
265
265
            loadTermcapStrings(screen);
266
 
            if ((fkey = screen->tcap_fkeys[which]) != NO_STRING) {
 
266
            if (screen->tcap_fkeys[which] != NO_STRING) {
267
267
                for (k = 0; k < XtNumber(table); k++) {
268
268
                    if (table[k].code == table[which].code
269
269
                        && table[k].param == 0) {