Displaying 4 results from an estimated 4 matches for "console_prepare".
2007 Mar 15
1
my_isspace can be isblank
.../menu.h#2
+++ com32/modules/menu.h 07-03-15 16:27:14
@@ -87,11 +87,6 @@
void parse_configs(char **argv);
extern int (*draw_background)(const char *filename);
-static inline int my_isspace(char c)
-{
- return (unsigned char)c <= ' ';
-}
-
int menu_main(int argc, char *argv[]);
void console_prepare(void);
void console_cleanup(void);
--- com32/modules/menumain.c
//depot/opensource/main/syslinux-3/com32/modules/menumain.c#2
+++ com32/modules/menumain.c 07-03-15 16:26:57
@@ -30,6 +30,7 @@
#include <sha1.h>
#include <base64.h>
#include <colortbl.h>
+#include <ctype.h>...
2010 Apr 23
1
Path simple menu integrated progress indicator
...= strlen(argument);
+
+ while (*p) {
+ if (my_isspace(*p)) {
+ was_space = true;
+ } else if (was_space) {
+ if (!memcmp(p, argument, la))
+ found = p + la;
+ was_space = false;
+ }
+ p++;
+ }
+
+ return found;
+}
+
+void console_prepare(void)
+{
+ fputs("\033[0m\033[25l", stdout);
+}
+
+void console_cleanup(void)
+{
+ /* For the serial console, be nice and clean up */
+ fputs("\033[0m", stdout);
+}
+
+void
+clear_screen(void)
+{
+ fputs("\033e\033%@\033)0\033(B\1#0\033[?25l\033[2J", stdout);
+}
+...
2011 Mar 09
14
[PATCH 00/12] elflink shrinkage
From: Matt Fleming <matt.fleming at linux.intel.com>
This is a series of patches that,
* shrink the core by moving things into an ldlinux ELF module
* begin wiring up some of the C versions of various functions
The core now only contains essential code and loads the ldlinux module
to do everything else, like providing a command line interface and
loading kernels.
The config file parsing
2011 Apr 16
20
[PATCH 00/20] Switch to ELF modules
From: Matt Fleming <matt.fleming at linux.intel.com>
This series fixes some bugs and switches the elflink branch to be
entirely ELF modules. It applies on top of,
http://syslinux.zytor.com/archives/2011-April/016369.html
The deletions in the diff stat below are mainly from deleting
com32/elflink/modules (finally!). Now there should be no duplicate
code because we don't need COM32 and