search for: clear_screen

Displaying 12 results from an estimated 12 matches for "clear_screen".

2016 Mar 20
0
[PATCH 0/1] EFI image booting capabilities
...yslinux/firmware.h> > #include "core.h" > > const char *globaldefault = NULL; > @@ -23,6 +28,9 @@ int new_linux_kernel(char *okernel, char > bool opt_quiet = false; > char *initrd_name, *cmdline; > > + if(firmware && firmware->clear_screen) > + firmware->clear_screen(); > + > dprintf("okernel = %s, ocmdline = %s", okernel, ocmdline); > > if (okernel) The firmware NULL check seems first, unnecessary, and second, inconsistent. > @@ -129,3 +137,70 @@ bail: > prin...
2015 Feb 20
6
[PATCH 0/1] EFI image booting capabilities
...#include <syslinux/pxe.h> +#include <syslinux/firmware.h> #include "core.h" const char *globaldefault = NULL; @@ -23,6 +28,9 @@ int new_linux_kernel(char *okernel, char bool opt_quiet = false; char *initrd_name, *cmdline; + if(firmware && firmware->clear_screen) + firmware->clear_screen(); + dprintf("okernel = %s, ocmdline = %s", okernel, ocmdline); if (okernel) @@ -129,3 +137,70 @@ bail: printf("%s\n", strerror(errno)); return 1; } + + +int new_efi_image(char *okernel, char *ocmdline) +{ + const char *k...
2008 Dec 10
1
reference for console printing
Hi there, Can someone suggest a good reference or documentation for the syntax used for printing to the console in comboot programs? I have found a few examples but they don't go into much detail. Thanks for the help. Example: void clear_screen { fputs("\033e\033%@\033)0\033(B\1#0\033[?25l\033[2J", stdout); }
2011 Feb 17
5
[PATCH 0/4] Reduce core size
From: Matt Fleming <matt.fleming at linux.intel.com> These patches are based on the elflink branch. This set of patches is my attempt at moving the command-line interface functionality out of the core and into an ELF module to reduce the size of the core. The most interesting patch is [PATCH 4/4] which moves the cli code out of core/elflink and into com32/elflink/modules. [PATCH 4/4] is
2011 Mar 16
0
[GIT PULL] elflink changes
...prev_len = 0; x = y = 0; while (!done) { - if (redraw > 1 && pDraw_Menu != NULL) { + if (redraw > 1) { /* Clear and redraw whole screen */ /* Enable ASCII on G0 and DEC VT on G1; do it in this order to avoid confusing the Linux console */ - /* clear_screen(); - draw_menu(-1, top, 1); */ clear_screen(); - (*pDraw_Menu) (-1, top, 1); + if (pDraw_Menu) + (*pDraw_Menu) (-1, top, 1); prev_len = 0; // printf("\033[0m\033[2J\033[H"); } @@ -119,9 +176,9 @@ const char *edit_cmdline(const char *input, int top /...
2010 Oct 02
4
[PATCH 0/4] some fixes on elflink branch
This is a small set of patches for elflink branch based on feng's elflink branch. hpa, It seems that I can't log on terminus by ssh at home. So I can't push these patches on my git tree. Liu Aleaxander (4): elflink: Cleanup some warnings elflink: Fix the wrong malloc size in enter_cmdline elflink: Do clear screen even if we have no pDraw_Menu method elflink: Add Ctrl-p +
2012 May 04
3
[GIT PULL] elflink fixes
...nux/cli.c b/com32/elflink/ldlinux/cli.c index 498644e..211a796 100644 --- a/com32/elflink/ldlinux/cli.c +++ b/com32/elflink/ldlinux/cli.c @@ -19,8 +19,6 @@ #include "cli.h" #include "config.h" -static jmp_buf timeout_jump; - static struct list_head cli_history_head; void clear_screen(void) @@ -29,46 +27,37 @@ void clear_screen(void) fputs("\033e\033%@\033)0\033(B\1#0\033[?25l\033[2J", stdout); } -int mygetkey(clock_t timeout) +static int mygetkey_timeout(clock_t *kbd_to, clock_t *tto) { - clock_t t0, t; - clock_t tto, to; + clock_t t0, t1; int k...
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
2005 Apr 21
6
Information disclosure?
Hello, For some reason, I thought little about the "clear" command today.. Let's say a privileged user (root) logs on, edit a sensitive file (e.g, a file containing a password, running vipw, etc) .. then runs clear and logout. Then anyone can press the scroll-lock command, scroll back up and read the sensitive information.. Isn't "clear" ment to clear the
2010 Apr 23
1
Path simple menu integrated progress indicator
...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); +} + +int initramfs_load_archive_w_callback(struct initramfs *ihead, const char *filename, void (*callback)(const char* name, size_t cur, size_t total)) +{ + void *data; + size_t len; + + if (loadfile_w_callback(...
2012 Mar 23
19
[PATCH 00/19][elflink] Improve compatibility with 4.x
From: Matt Fleming <matt.fleming at intel.com> The following patch series is available at, git://git.zytor.com/users/mfleming/syslinux.git elflink All patches are against the 'elflink' branch. This series fixes a few serious bugs and some behavioural incompatibilities with the 4.x series. Matt Fleming (19): ldlinux: Initialise 'p' before using it. ldlinux: Parse
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