Displaying 13 results from an estimated 13 matches for "dev_rawcon_r".
2013 Oct 23
2
syslinux lua support
...9;t expose the
device class that is available in the C API. I have written a patch for this, but I don't know if it meets the code standards for this project. Second, I need to have a workingstdin when in VESA mode. As it stands, io.read() fails when in VESA mode. Itappears to be because of the dev_rawcon_r being the assigned input console. IfI modify the source to use dev_stdcon_r, it works as it does outside of VESA mode. However, I need to have raw access to the stdin if I am to design a menu drawing system in lua using ANSI control sequences because I need input control over arrow keys and such. T...
2010 Jun 26
0
[MODULE] pwd
...X
+# ifdef NAME_MAX
+# define PATH_MAX NAME_MAX
+# elif FILENAME_MAX
+# define PATH_MAX FILENAME_MAX
+# else
+# define PATH_MAX 256
+# endif /* NAME_MAX */
+#endif /* PATH_MAX */
+
+int main(void)
+{
+ int rv = 0;
+ char pwd[PATH_MAX], *pwdptr;
+
+ openconsole(&dev_rawcon_r, &dev_stdcon_w);
+ pwdptr = getcwd(pwd, PATH_MAX);
+ if (pwdptr) {
+ if (pwd[0] != 0)
+ puts(pwd);
+ else
+ puts(".");
+ } else {
+ rv = errno;
+ puts("ERROR: getcwd() returned NULL");
+ }
+ return rv;
+}
2013 Oct 23
0
syslinux lua support
...t; patch for this, but I don't know if it meets the code standards for
> this project.
Post them here, and hopefully somebody will tell.
> Second, I need to have a working stdin when in VESA mode. As it
> stands, io.read() fails when in VESA mode. It appears to be because of
> the dev_rawcon_r being the assigned input console. If I modify the
> source to use dev_stdcon_r, it works as it does outside of VESA
> mode. However, I need to have raw access to the stdin if I am to
> design a menu drawing system in lua using ANSI control sequences
> because I need input control over a...
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 Oct 19
3
[PATCH 0/3] elflink fixes
From: Matt Fleming <matt.fleming at intel.com>
The first two patches in this series are fixes for bugs reported by
someone in #syslinux. The third makes dmitest.c32 actually wait for
user input.
If no one has any objections/concerns, I'll pull this into the
official elflink branch.
Matt Fleming (3):
core: Print error message if we don't load ldlinux.c32
Clean up $(GPLLIB) leak
2011 Apr 01
1
[GIT PULL] elflink ldlinux
The following changes since commit 8c576f1fe03e34879921311f46613a35c6530000:
Merge remote-tracking branch 'mfleming/for-hpa/elflink/fix-compiler-warnings' into elflink (2011-03-16 12:53:58 -0700)
are available in the git repository at:
git://git.zytor.com/users/mfleming/syslinux.git for-hpa/elflink/ldlinux
Matt Fleming (1):
ldlinux: Perform auto-boot if NOESCAPE set in config
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 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
2010 Apr 23
1
Path simple menu integrated progress indicator
...m32/menu/vesamenu.c 2010-04-15 13:05:52.000000000 -0500
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <console.h>
+#include <syslinux/video.h>
#include <syslinux/vesacon.h>
#include "menu.h"
@@ -50,3 +51,17 @@ void start_console(void)
{
openconsole(&dev_rawcon_r, &dev_vesaserial_w);
}
+
+void draw_progress(const char *file, size_t cur, size_t total)
+{
+ int i;
+ float percent, bars, fill;
+ percent = ((float)cur / (float)total) * 100.0;
+
+ const char* loadmsg = cm->messages[MSG_LOAD];
+ int loadmsg_len = strlen(loadmsg);
+
+ pri...
2011 May 25
1
[GIT PULL] elflink ldlinux
...== '.')
+ type = KT_NONE;
+
+ execute(me->cmdline, type);
/* We shouldn't return */
goto bad_kernel;
}
@@ -98,11 +104,43 @@ static void enter_cmdline(void)
int main(int argc, char **argv)
{
+ com32sys_t ireg, oreg;
+ uint8_t *adv;
+ int count = 0;
+
openconsole(&dev_rawcon_r, &dev_ansiserial_w);
parse_configs(NULL);
- /* TODO: ADV */
+ __syslinux_init();
+ adv = syslinux_getadv(ADV_BOOTONCE, &count);
+ if (adv && count) {
+ /*
+ * We apparently have a boot-once set; clear it and
+ * then execute the boot-once.
+ */
+ uint8_t *src, *dst, *c...
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
2012 Apr 17
2
[GIT PULL] elflink warning fixes and auto extension support
...1 +223,10 @@ static void enter_cmdline(void)
}
}
-int main(int argc, char **argv)
+int main(int argc __unused, char **argv __unused)
{
- com32sys_t ireg, oreg;
- uint8_t *adv;
- int count = 0;
+ const void *adv;
+ size_t count = 0;
char *config_argv[2] = { NULL, NULL };
openconsole(&dev_rawcon_r, &dev_ansiserial_w);
@@ -127,17 +236,17 @@ int main(int argc, char **argv)
parse_configs(config_argv);
- __syslinux_init();
adv = syslinux_getadv(ADV_BOOTONCE, &count);
if (adv && count) {
/*
* We apparently have a boot-once set; clear it and
* then execute the...