~ubuntu-branches/ubuntu/oneiric/irssi/oneiric

« back to all changes in this revision

Viewing changes to src/fe-text/terminfo-core.h

  • Committer: Bazaar Package Importer
  • Author(s): Andres Rodriguez
  • Date: 2009-05-05 15:50:50 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090505155050-aoqlnpes7che9rtd
Tags: 0.8.13-1ubuntu1
* Merge from debian unstable (LP: #372411), remaining changes:
  - debian/patches: 03firsttimer_text
    + Adapt it so it tells you about connecting to irc.ubuntu.com and
      joining #ubuntu instead of irc.debian.org and #debian.
  - debian/patches: 90irc-ubuntu-com
* Fixed debian/patches/90irc-ubuntu-com for new irssi.conf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#define terminfo_set_bold() current_term->set_bold(current_term)
17
17
#define terminfo_set_uline(set) current_term->set_uline(current_term, set)
18
18
#define terminfo_set_standout(set) current_term->set_standout(current_term, set)
19
 
#define terminfo_is_colors_set(term) (term->TI_fg[0] != NULL)
 
19
#define terminfo_is_colors_set(term) (term->TI_fg != NULL)
20
20
#define terminfo_beep(term) current_term->beep(current_term)
21
21
 
22
22
typedef struct _TERM_REC TERM_REC;
30
30
 
31
31
        void (*clear)(TERM_REC *term);
32
32
        void (*clrtoeol)(TERM_REC *term);
33
 
        void (*repeat)(TERM_REC *term, int chr, int count);
 
33
        void (*repeat)(TERM_REC *term, char chr, int count);
34
34
 
35
35
        void (*set_fg)(TERM_REC *term, int color);
36
36
        void (*set_bg)(TERM_REC *term, int color);
37
37
        void (*set_normal)(TERM_REC *term);
 
38
        void (*set_blink)(TERM_REC *term);
38
39
        void (*set_bold)(TERM_REC *term);
39
40
        void (*set_uline)(TERM_REC *term, int set);
40
41
        void (*set_standout)(TERM_REC *term, int set);
70
71
        const char *TI_rep;
71
72
 
72
73
        /* Colors */
73
 
        int has_colors;
 
74
        int TI_colors; /* numbers of colors in TI_fg[] and TI_bg[] */
74
75
        const char *TI_sgr0; /* turn off all attributes */
75
76
        const char *TI_smul, *TI_rmul; /* underline on/off */
76
77
        const char *TI_smso, *TI_rmso; /* standout on/off */
78
79
        const char *TI_setaf, *TI_setab, *TI_setf, *TI_setb;
79
80
 
80
81
        /* Colors - generated and dynamically allocated */
81
 
        char *TI_fg[16], *TI_bg[16], *TI_normal;
 
82
        char **TI_fg, **TI_bg, *TI_normal;
82
83
 
83
84
        /* Beep */
84
85
        char *TI_bel;
93
94
   terminal capabilities don't contain color codes */
94
95
void terminfo_setup_colors(TERM_REC *term, int force);
95
96
 
96
 
/* Terminal was resized - ask the width/height from terminfo again */
97
 
void terminfo_resize(TERM_REC *term);
98
 
 
99
97
void terminfo_cont(TERM_REC *term);
100
98
void terminfo_stop(TERM_REC *term);
101
99