Displaying 9 results from an estimated 9 matches for "prev_len".
Did you mean:
peek_len
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
2015 Oct 13
2
[PATCH 1/1] ldlinux: Fix return pointer to local data
...nux/cli.c
@@ -125,7 +125,7 @@ const char *edit_cmdline(const char *input, int top /*, int width */ ,
int (*pDraw_Menu) (int, int, int),
void (*show_fkey) (int), bool *timedout)
{
- char cmdline[MAX_CMDLINE_LEN] = { };
+ static char cmdline[MAX_CMDLINE_LEN] = { };
int key, len, prev_len, cursor;
int redraw = 0;
int x, y;
--
2.6.1
2011 Mar 16
0
[GIT PULL] elflink changes
...how_fkey) (int))
@@ -90,22 +149,20 @@ const char *edit_cmdline(const char *input, int top /*, int width */ ,
width = 80;
}
- strncpy(cmdline, input, MAX_CMDLINE_LEN);
cmdline[MAX_CMDLINE_LEN - 1] = '\0';
- len = cursor = strlen(cmdline);
+ len = cursor = 0;
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(...
2010 Oct 03
3
[PATCH 0/3] elflink: Another small fixes on CLI
Hi,
This is a another small set of fixes about CLI on elflink branch.
Liu Aleaxander (3):
elflink: use 'input' as the prompt of the CLI
elflink: Add ctrl-R key bind support
elflink: handle the NULL return of edit_cmdline
core/elflink/cli.c | 88 +++++++++++++++++++++++++++++++++++++++++---
core/elflink/load_env32.c | 4 ++-
2 files changed, 85 insertions(+), 7
2015 Oct 16
0
[PATCH 1/1] ldlinux: Fix return pointer to local data
...const char *edit_cmdline(const char *input, int top /*, int width */ ,
> int (*pDraw_Menu) (int, int, int),
> void (*show_fkey) (int), bool *timedout)
> {
> - char cmdline[MAX_CMDLINE_LEN] = { };
> + static char cmdline[MAX_CMDLINE_LEN] = { };
> int key, len, prev_len, cursor;
> int redraw = 0;
> int x, y;
>
Tested-by: poma <pomidorabelisima at gmail.com>
2015 Oct 19
0
ldlinux: Fix return pointer to local data
...const char *edit_cmdline(const char *input, int top /*, int width */ ,
> int (*pDraw_Menu) (int, int, int),
> void (*show_fkey) (int), bool *timedout)
> {
> - char cmdline[MAX_CMDLINE_LEN] = { };
> + static char cmdline[MAX_CMDLINE_LEN] = { };
> int key, len, prev_len, cursor;
> int redraw = 0;
> int x, y;
@huddy: check your setup (with the very long command line)
with the above patch applied
Groeten
Geert Stappers
--
Leven en laten leven
------------- volgend deel ------------
Een niet-tekst bijlage is gescrubt...
Naam: signature.asc
Type: a...
2019 Apr 22
0
Fix: previous command at boot prompt not cleared
...f completing all.
Regards,
Dany
*Patch*
--- syslinux-6.03/com32/elflink/ldlinux/cli.c.orig 2019-04-22 08:03:41.344301939 -0500
+++ syslinux-6.03/com32/elflink/ldlinux/cli.c 2019-04-22 08:04:49.188877232 -0500
@@ -145,6 +145,7 @@ const char *edit_cmdline(const char *inp
len = cursor = 0;
prev_len = 0;
x = y = 0;
+ cmdline[0] = 0;
/*
* Before we start messing with the x,y coordinates print 'input'
2009 Jul 27
1
[PATCH] mboot using module path
...numain.c??? 2009-06-09
10:19:25.000000000 -0700
+++ syslinux-3.82/com32/menu/menumain.c??? 2009-07-15 11:18:42.000000000 -0700
@@ -448,8 +448,8 @@
?????? /* Redraw the command line */
?????? printf("\033[?25l\033[%d;1H\1#9> \2#10%s",
???? ???? CMDLINE_ROW, pad_line(cmdline, 0, max(len, prev_len)));
-????? printf("\2#10\033[%d;3H%s\033[?25h",
-??? ???? CMDLINE_ROW, pad_line(cmdline, 0, cursor));
+//????? printf("\2#10\033[%d;3H%s\033[?25h",
+//??? ???? CMDLINE_ROW, pad_line(cmdline, 0, cursor));
?????? prev_len = len;
?????? redraw = 0;
???? }
---end
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 +