]> git.proxmox.com Git - grub2.git/commit - ChangeLog-2015
2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
authorokuji <okuji@localhost>
Thu, 25 Sep 2003 20:15:53 +0000 (20:15 +0000)
committerokuji <okuji@localhost>
Thu, 25 Sep 2003 20:15:53 +0000 (20:15 +0000)
commit18d9c7cd538a971ccadbc0276f3f5c5f8f1fc4ea
treef6be7d4a75b194c442925a89c8a39c8b751afed9
parent977329f5fabce8b2c74c4596e3ffb7d6e29f3970
2003-09-25  Yoshinori K. Okuji  <okuji@enbug.org>

I forgot to check in these changes for a long time. This adds
incomplete support for VGA console, and this is still very
buggy. Also, a lot of consideration is required for I18N,
UNICODE, and VGA font issues. Therefore, assume that this is
such that "better than nothing".

* font/manager.c: New file.
* include/pupa/font.h: Likewise.
* include/pupa/i386/pc/vga.h: Likewise.
* term/i386/pc/vga.c: Likewise.
* util/unifont2pff.rb: Likewise.

* conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
(pkgdata_MODULES): Added vga.mod and font.mod.
(vga_mod_SOURCES): New variables.
(vga_mod_CFLAGS): Likewise.
(font_mod_SOURCES): Likewise.
(font_mod_CFLAGS): Likewise.

* include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.

* include/pupa/term.h: Include pupa/err.h.
(struct pupa_term): Added init and fini.
Changed the argument of putchar to pupa_uint32_t.

* include/pupa/i386/pc/console.h: Include pupa/symbol.h.
(pupa_console_real_putchar): New prototype.
(pupa_console_putchar): Removed.
(pupa_console_checkkey): Exported.
(pupa_console_getkey): Likewise.

* kern/misc.c (pupa_vsprintf): Add support for UNICODE
characters.

* kern/term.c (pupa_term_set_current): Rewritten.
(pupa_putchar): Likewise.
(pupa_putcode): New function.

* kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
(pupa_console_real_putchar): ... this.
(pupa_vga_set_mode): New function.
(pupa_vga_get_font): Likewise.

* normal/command.c: Include pupa/term.h.
(terminal_command): New function.
(pupa_command_init): Register the command "terminal".

* normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
(DISP_UP): Likewise.
(DISP_RIGHT): Likewise.
(DISP_DOWN): Likewise.
(DISP_HLINE): Likewise.
(DISP_VLINE): Likewise.
(DISP_UL): Likewise.
(DISP_UR): Likewise.
(DISP_LL): Likewise.
(DISP_LR): Likewise.

* term/i386/pc/console.c (pupa_console_putchar): New function.
17 files changed:
ChangeLog
conf/i386-pc.mk
conf/i386-pc.rmk
font/manager.c [new file with mode: 0644]
include/grub/err.h
include/grub/font.h [new file with mode: 0644]
include/grub/i386/pc/console.h
include/grub/i386/pc/vga.h [new file with mode: 0644]
include/grub/term.h
kern/i386/pc/startup.S
kern/misc.c
kern/term.c
normal/command.c
normal/menu.c
term/i386/pc/console.c
term/i386/pc/vga.c [new file with mode: 0644]
util/unifont2pff.rb [new file with mode: 0644]