]>
Commit | Line | Data |
---|---|---|
6fb3a390 | 1 | --- linux_logo-4.04/linux_logo.h.orig Sun Jul 14 20:40:59 2002 |
2 | +++ linux_logo-4.04/linux_logo.h Sat Aug 24 20:41:53 2002 | |
3 | @@ -15,6 +15,7 @@ | |
4 | int display_usertext; | |
5 | int custom_format; | |
6 | int pretty_output; | |
7 | + int quote_logo_backslashes; | |
8 | int center_sysinfo; | |
9 | char *user_text; | |
10 | char *format; | |
11 | --- linux_logo-4.04/linux_logo.c.orig Fri Aug 9 18:50:49 2002 | |
12 | +++ linux_logo-4.04/linux_logo.c Sat Aug 24 20:43:50 2002 | |
13 | @@ -196,6 +196,7 @@ | |
3f37f789 | 14 | settings->display_sysinfo_only=0;\r |
15 | settings->display_usertext=0;\r | |
16 | settings->custom_format=0;\r | |
6fb3a390 | 17 | + settings->quote_logo_backslashes=0; /* Defaults to No */\r |
18 | settings->center_sysinfo=1;\r | |
3f37f789 | 19 | settings->user_text = NULL; /* Change this and display_usertext to *\\r |
20 | \* have a default message */\r | |
6fb3a390 | 21 | @@ -236,12 +237,14 @@ |
3f37f789 | 22 | \r |
23 | \r | |
24 | \r | |
25 | -char *print_line(char *string)\r | |
26 | +char *print_line(char *string, struct linux_logo_info_type *settings)\r | |
27 | {\r | |
28 | \r | |
29 | char *temp_st=string;\r | |
30 | \r | |
31 | while ((*temp_st!='\n') && (*temp_st!='\0')) {\r | |
32 | + if('\\' == *temp_st && settings->quote_logo_backslashes)\r | |
33 | + putchar('\\');\r | |
34 | putchar(*temp_st);\r | |
35 | temp_st++;\r | |
36 | }\r | |
6fb3a390 | 37 | @@ -533,7 +536,7 @@ |
3f37f789 | 38 | if (settings->banner_mode) { /* Banner mode */\r |
39 | for(i=0;i<ysize;i++) {\r | |
40 | shift_right((settings->width-80)/2,settings->plain_ascii);\r | |
41 | - string_point=print_line(string_point);\r | |
42 | + string_point=print_line(string_point, settings);\r | |
43 | printf("\n");\r | |
44 | }\r | |
45 | if (!settings->display_logo_only) printf("\n");\r | |
6fb3a390 | 46 | @@ -550,14 +553,14 @@ |
3f37f789 | 47 | \r |
48 | for(i=0;i<7;i++) {\r | |
49 | shift_right(settings->offset,settings->plain_ascii);\r | |
50 | - string_point=print_line(string_point);\r | |
51 | + string_point=print_line(string_point, settings);\r | |
52 | printf("\n"); \r | |
53 | }\r | |
54 | \r | |
55 | /* The next lines can have cpuinfo after them */\r | |
56 | for(i=7;i<ysize;i++) {\r | |
57 | shift_right(settings->offset,settings->plain_ascii);\r | |
58 | - string_point=print_line(string_point);\r | |
59 | + string_point=print_line(string_point, settings);\r | |
60 | shift_right(2,settings->plain_ascii);\r | |
61 | if (print_sysinfo(i-7,temp_string,settings)!=1) {\r | |
62 | if (!settings->plain_ascii) ansi_print("^[[1;37;40m");\r | |
6fb3a390 | 63 | @@ -737,7 +740,7 @@ |
3f37f789 | 64 | /*******************************************************/\r |
65 | \r | |
66 | while ((c = getopt (*custom_argc, custom_argv,"D:F:L:"\r | |
6fb3a390 | 67 | - "a::b::c::de:fghiklno:pst:uvw:y"))!=-1) {\r |
68 | + "a::b::c::de:fghiklno:pqst:uvw:y"))!=-1) {\r | |
3f37f789 | 69 | switch (c) {\r |
70 | case 'a': settings.plain_ascii=1; break;\r | |
71 | case 'b': settings.banner_mode=1; break;\r | |
6fb3a390 | 72 | @@ -813,6 +816,7 @@ |
3f37f789 | 73 | if ( endptr == optarg ) help_message(argv[0], 1);\r |
74 | break;\r | |
75 | case 'p': settings.preserve_xy=1; break;\r | |
76 | + case 'q': settings.quote_logo_backslashes=1; break;\r | |
77 | case 's': settings.skip_bogomips=1; break;\r | |
78 | case 't': \r | |
79 | settings.display_usertext=1;\r |