~ubuntu-branches/ubuntu/feisty/elinks/feisty-updates

« back to all changes in this revision

Viewing changes to src/terminal/itrm.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2006-06-30 08:57:43 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060630085743-l81fgbw9dehvl1ds
Tags: 0.11.1-1ubuntu1
* Merge to Debian unstable.
* Removed gnutls12 porting, this is upstream now.
* Only Ubuntu changes left:
  - Killed type-handling.
  - Add X-Ubuntu-Gettext-Domain to .desktop files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef EL__TERMINAL_ITRM_H
 
2
#define EL__TERMINAL_ITRM_H
 
3
 
 
4
 
 
5
#define ITRM_OUT_QUEUE_SIZE     16384
 
6
#define ITRM_IN_QUEUE_SIZE      16
 
7
 
 
8
struct itrm_queue {
 
9
        unsigned char *data;
 
10
        int len;
 
11
};
 
12
 
 
13
struct itrm_in {
 
14
        int std;
 
15
        int sock;
 
16
        int ctl;
 
17
        struct itrm_queue queue;
 
18
};
 
19
 
 
20
struct itrm_out {
 
21
        int std;
 
22
        int sock;
 
23
        struct itrm_queue queue;
 
24
};
 
25
 
 
26
struct itrm {
 
27
        struct itrm_in in;              /* Input */
 
28
        struct itrm_out out;            /* Output */
 
29
 
 
30
        timer_id_T timer;               /* ESC timeout timer */
 
31
        struct termios t;               /* For restoring original attributes */
 
32
        void *mouse_h;                  /* Mouse handle */
 
33
        unsigned char *orig_title;      /* For restoring window title */
 
34
 
 
35
        unsigned int blocked:1;         /* Whether it was blocked */
 
36
        unsigned int altscreen:1;       /* Whether to use alternate screen */
 
37
        unsigned int touched_title:1;   /* Whether the term title was changed */
 
38
        unsigned int remote:1;          /* Whether it is a remote session */
 
39
};
 
40
 
 
41
#endif