2003-03-10 Yoshinori K. Okuji <okuji@enbug.org>

From Tilmann Bubeck:
	* stage2/builtins.c [SUPPORT_SERIAL] (terminfo_func): Unescape
	arguments before copying them, and escape sequences before
	printing them.
	* stage2/terminfo.h (TERMINFO_LEN): Changed to 40.
This commit is contained in:
okuji 2003-03-10 01:12:26 +00:00
parent df002327f6
commit cf4f0a7199
4 changed files with 23 additions and 10 deletions

View file

@ -1,3 +1,11 @@
2003-03-10 Yoshinori K. Okuji <okuji@enbug.org>
From Tilmann Bubeck:
* stage2/builtins.c [SUPPORT_SERIAL] (terminfo_func): Unescape
arguments before copying them, and escape sequences before
printing them.
* stage2/terminfo.h (TERMINFO_LEN): Changed to 40.
2003-02-20 Yoshinori K. Okuji <okuji@enbug.org>
* util/grub-install.in (find_device): Fix the sed script.

View file

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23.
.TH GRUB "8" "February 2003" "grub (GNU GRUB 0.93)" FSF
.TH GRUB "8" "March 2003" "grub (GNU GRUB 0.93)" FSF
.SH NAME
grub \- the grub shell
.SH SYNOPSIS

View file

@ -1,7 +1,7 @@
/* builtins.c - the GRUB builtin commands */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 1999,2000,2001,2002 Free Software Foundation, Inc.
* Copyright (C) 1999,2000,2001,2002,2003 Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -4188,7 +4188,7 @@ terminfo_func (char *arg, int flags)
if (! grub_memcmp (arg, name, len))
{
grub_strcpy (options[i].var, arg + len);
grub_strcpy (options[i].var, ti_unescape_string (arg + len));
break;
}
}
@ -4215,11 +4215,16 @@ terminfo_func (char *arg, int flags)
/* No option specifies printing out current settings. */
term = ti_get_term ();
grub_printf ("name=%s\n", term.name);
grub_printf ("cursor_address=%s\n", term.cursor_address);
grub_printf ("clear_screen=%s\n", term.clear_screen);
grub_printf ("enter_standout_mode=%s\n", term.enter_standout_mode);
grub_printf ("exit_standout_mode=%s\n", term.exit_standout_mode);
grub_printf ("name=%s\n",
ti_escape_string (term.name));
grub_printf ("cursor_address=%s\n",
ti_escape_string (term.cursor_address));
grub_printf ("clear_screen=%s\n",
ti_escape_string (term.clear_screen));
grub_printf ("enter_standout_mode=%s\n",
ti_escape_string (term.enter_standout_mode));
grub_printf ("exit_standout_mode=%s\n",
ti_escape_string (term.exit_standout_mode));
}
return 0;

View file

@ -1,7 +1,7 @@
/* terminfo.h - read a terminfo entry from the command line */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2002 Free Software Foundation, Inc.
* Copyright (C) 2002,2003 Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -21,7 +21,7 @@
#ifndef GRUB_TERMCAP_HEADER
#define GRUB_TERMCAP_HEADER 1
#define TERMINFO_LEN 32
#define TERMINFO_LEN 40
typedef struct terminfo
{