12006-01-05 Otavio Salvador <otavio@debian.org> 2 3 * Rediff. 4 52005-16-10 Samuel Thibault <samuel.thibault@ens-lyon.org> 6 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. 11 12Debian Status Following: 13 Added by: Otavio Salvador 14 Date: 2006-01-05 15 16diff -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 19@@ -2685,6 +2685,7 @@ 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 @@ 28 @end deffn 29 30 31+@node print 32+@subsection print 33+ 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. 38+@end deffn 39+ 40+ 41 @node quit 42 @subsection quit 43 44diff -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." 49 }; 50 51+/* print */ 52+static int 53+print_func (char *arg, int flags) 54+{ 55+ printf("%s\n", arg); 56+ 57+ return 0; 58+} 59+ 60+static struct builtin builtin_print = 61+{ 62+ "print", 63+ print_func, 64+ BUILTIN_CMDLINE | BUILTIN_MENU | BUILTIN_NO_ECHO, 65+ "print [MESSAGE ...]", 66+ "Print MESSAGE." 67+}; 68+ 69+ 70 71 /* kernel */ 72 static int 73@@ -4848,6 +4867,7 @@ 74 &builtin_parttype, 75 &builtin_password, 76 &builtin_pause, 77+ &builtin_print, 78 #ifdef GRUB_UTIL 79 &builtin_quit, 80 #endif /* GRUB_UTIL */ 81