~hamo/ubuntu/precise/grub2/grub2.hi_res

« back to all changes in this revision

Viewing changes to include/grub/terminfo.h

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson, Colin Watson, Robert Millan, Updated translations
  • Date: 2010-11-22 12:24:56 UTC
  • mfrom: (1.26.4 upstream) (17.3.36 sid)
  • mto: (17.3.43 sid)
  • mto: This revision was merged to the branch mainline in revision 89.
  • Revision ID: james.westby@ubuntu.com-20101122122456-y82z3sfb7k4zfdcc
Tags: 1.99~20101122-1
[ Colin Watson ]
* New Bazaar snapshot.  Too many changes to list in full, but some of the
  more user-visible ones are as follows:
  - GRUB script:
    + Function parameters, "break", "continue", "shift", "setparams",
      "return", and "!".
    + "export" command supports multiple variable names.
    + Multi-line quoted strings support.
    + Wildcard expansion.
  - sendkey support.
  - USB hotunplugging and USB serial support.
  - Rename CD-ROM to cd on BIOS.
  - Add new --boot-directory option to grub-install, grub-reboot, and
    grub-set-default; the old --root-directory option is still accepted
    but was often confusing.
  - Basic btrfs detection/UUID support (but no file reading yet).
  - bash-completion for utilities.
  - If a device is listed in device.map, always assume that it is
    BIOS-visible rather than using extra layers such as LVM or RAID.
  - Add grub-mknetdir script (closes: #550658).
  - Remove deprecated "root" command.
  - Handle RAID devices containing virtio components.
  - GRUB Legacy configuration file support (via grub-menulst2cfg).
  - Keyboard layout support (via grub-mklayout and grub-kbdcomp).
  - Check generated grub.cfg for syntax errors before saving.
  - Pause execution for at most ten seconds if any errors are displayed,
    so that the user has a chance to see them.
  - Support submenus.
  - Write embedding zone using Reed-Solomon, so that it's robust against
    being partially overwritten (closes: #550702, #591416, #593347).
  - GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY merged
    into a single GRUB_DISABLE_RECOVERY variable.
  - Fix loader memory allocation failure (closes: #551627).
  - Don't call savedefault on recovery entries (closes: #589325).
  - Support triple-indirect blocks on ext2 (closes: #543924).
  - Recognise DDF1 fake RAID (closes: #603354).

[ Robert Millan ]
* Use dpkg architecture wildcards.

[ Updated translations ]
* Slovenian (Vanja Cvelbar).  Closes: #604003
* Dzongkha (dawa pemo via Tenzin Dendup).  Closes: #604102

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include <grub/types.h>
24
24
#include <grub/term.h>
25
25
 
26
 
char *grub_terminfo_get_current (void);
27
 
grub_err_t grub_terminfo_set_current (const char *);
28
 
 
29
 
void grub_terminfo_gotoxy (grub_uint8_t x, grub_uint8_t y,
30
 
                           grub_term_output_t oterm);
31
 
void grub_terminfo_cls (grub_term_output_t oterm);
32
 
void grub_terminfo_reverse_video_on (grub_term_output_t oterm);
33
 
void grub_terminfo_reverse_video_off (grub_term_output_t oterm);
34
 
void grub_terminfo_cursor_on (grub_term_output_t oterm);
35
 
void grub_terminfo_cursor_off (grub_term_output_t oterm);
 
26
char *EXPORT_FUNC(grub_terminfo_get_current) (struct grub_term_output *term);
 
27
grub_err_t EXPORT_FUNC(grub_terminfo_set_current) (struct grub_term_output *term,
 
28
                                                                                                const char *);
 
29
 
 
30
#define GRUB_TERMINFO_READKEY_MAX_LEN 4
 
31
struct grub_terminfo_input_state
 
32
{
 
33
  int input_buf[GRUB_TERMINFO_READKEY_MAX_LEN];
 
34
  int npending;
 
35
  int (*readkey) (struct grub_term_input *term);
 
36
};
 
37
 
 
38
struct grub_terminfo_output_state
 
39
{
 
40
  struct grub_term_output *next;
 
41
 
 
42
  char *name;
 
43
 
 
44
  char *gotoxy;
 
45
  char *cls;
 
46
  char *reverse_video_on;
 
47
  char *reverse_video_off;
 
48
  char *cursor_on;
 
49
  char *cursor_off;
 
50
  char *setcolor;
 
51
 
 
52
  unsigned int width, height;
 
53
 
 
54
  unsigned int xpos, ypos;
 
55
 
 
56
  void (*put) (struct grub_term_output *term, const int c);
 
57
};
 
58
 
 
59
void EXPORT_FUNC(grub_terminfo_gotoxy) (grub_term_output_t term,
 
60
                                        grub_uint8_t x, grub_uint8_t y);
 
61
void EXPORT_FUNC(grub_terminfo_cls) (grub_term_output_t term);
 
62
grub_uint16_t EXPORT_FUNC (grub_terminfo_getxy) (struct grub_term_output *term);
 
63
void EXPORT_FUNC (grub_terminfo_setcursor) (struct grub_term_output *term,
 
64
                                            const int on);
 
65
void EXPORT_FUNC (grub_terminfo_setcolorstate) (struct grub_term_output *term,
 
66
                                  const grub_term_color_state state);
 
67
 
 
68
 
 
69
grub_err_t EXPORT_FUNC (grub_terminfo_input_init) (struct grub_term_input *term);
 
70
int EXPORT_FUNC (grub_terminfo_getkey) (struct grub_term_input *term);
 
71
void EXPORT_FUNC (grub_terminfo_putchar) (struct grub_term_output *term,
 
72
                                          const struct grub_unicode_glyph *c);
 
73
grub_uint16_t EXPORT_FUNC (grub_terminfo_getwh) (struct grub_term_output *term);
 
74
 
 
75
 
 
76
grub_err_t EXPORT_FUNC (grub_terminfo_output_register) (struct grub_term_output *term,
 
77
                                                        const char *type);
 
78
grub_err_t EXPORT_FUNC (grub_terminfo_output_unregister) (struct grub_term_output *term);
36
79
 
37
80
#endif /* ! GRUB_TERMINFO_HEADER */