~ilya-yanok/ubuntu/precise/grub2/fix-for-948716

« back to all changes in this revision

Viewing changes to include/grub/term.h

  • Committer: Bazaar Package Importer
  • Author(s): Robert Millan
  • Date: 2009-07-25 19:00:53 UTC
  • mfrom: (1.6.3 upstream)
  • mto: (17.4.13 sid)
  • mto: This revision was merged to the branch mainline in revision 53.
  • Revision ID: james.westby@ubuntu.com-20090725190053-uv3lm6ya3zxs77ep
ImportĀ upstreamĀ versionĀ 1.96+20090725

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  GRUB  --  GRand Unified Bootloader
3
 
 *  Copyright (C) 2002,2003,2005,2007,2008,2009  Free Software Foundation, Inc.
 
3
 *  Copyright (C) 2002,2003,2005,2007,2008  Free Software Foundation, Inc.
4
4
 *
5
5
 *  GRUB is free software: you can redistribute it and/or modify
6
6
 *  it under the terms of the GNU General Public License as published by
72
72
#define GRUB_TERM_NEED_INIT     (1 << 16)
73
73
 
74
74
 
75
 
/* Bitmasks for modifier keys returned by grub_getkeystatus.  */
76
 
#define GRUB_TERM_STATUS_SHIFT  (1 << 0)
77
 
#define GRUB_TERM_STATUS_CTRL   (1 << 1)
78
 
#define GRUB_TERM_STATUS_ALT    (1 << 2)
79
 
 
80
 
 
81
75
/* Unicode characters for fancy graphics.  */
82
76
#define GRUB_TERM_DISP_LEFT     0x2190
83
77
#define GRUB_TERM_DISP_UP       0x2191
163
157
 
164
158
  /* Get a character.  */
165
159
  int (*getkey) (void);
166
 
 
167
 
  /* Get keyboard modifier status.  */
168
 
  int (*getkeystatus) (void);
169
160
};
170
161
typedef struct grub_term_input *grub_term_input_t;
171
162
 
284
275
grub_ssize_t EXPORT_FUNC(grub_getcharwidth) (grub_uint32_t code);
285
276
int EXPORT_FUNC(grub_getkey) (void);
286
277
int EXPORT_FUNC(grub_checkkey) (void);
287
 
int EXPORT_FUNC(grub_getkeystatus) (void);
288
278
grub_uint16_t EXPORT_FUNC(grub_getwh) (void);
289
279
grub_uint16_t EXPORT_FUNC(grub_getxy) (void);
290
280
void EXPORT_FUNC(grub_gotoxy) (grub_uint8_t x, grub_uint8_t y);