1
2006-01-05 Otavio Salvador <otavio@debian.org>
5
2005-16-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
7
* docs/grub.texi: Added print command description.
8
* stage2/builtins.c(print_func): New function.
9
(builtin_print): New variable.
10
(builtin_table): Added builtin_print in table.
12
Debian Status Following:
13
Added by: Otavio Salvador
16
diff -Nur grub-0.97-bkp/docs/grub.texi grub-0.97/docs/grub.texi
17
--- grub-0.97-bkp/docs/grub.texi 2006-01-05 10:59:05.564347912 -0200
18
+++ grub-0.97/docs/grub.texi 2006-01-05 11:18:59.033912960 -0200
20
* module:: Load a module
21
* modulenounzip:: Load a module without decompression
22
* pause:: Wait for a key press
23
+* print:: Print a message
24
* quit:: Exit from the grub shell
25
* reboot:: Reboot your computer
26
* read:: Read data from memory
27
@@ -3091,6 +3092,16 @@
34
+@deffn Command print message @dots{}
35
+Print the @var{message}. Note that placing @key{^G} (ASCII code 7) in the
36
+message will cause the speaker to emit the standard beep sound, which is
37
+useful for visually impaired people.
44
diff -Nur grub-0.97-bkp/stage2/builtins.c grub-0.97/stage2/builtins.c
45
--- grub-0.97-bkp/stage2/builtins.c 2006-01-05 10:59:05.550350040 -0200
46
+++ grub-0.97/stage2/builtins.c 2006-01-05 11:19:28.422445224 -0200
47
@@ -2323,6 +2323,25 @@
48
"Probe I/O ports used for the drive DRIVE."
53
+print_func (char *arg, int flags)
55
+ printf("%s\n", arg);
60
+static struct builtin builtin_print =
64
+ BUILTIN_CMDLINE | BUILTIN_MENU | BUILTIN_NO_ECHO,
65
+ "print [MESSAGE ...]",
80
#endif /* GRUB_UTIL */