Displaying 14 results from an estimated 14 matches for "console_ansi_raw".
2008 Dec 09
1
COM32: console_ansi_raw() and later segfaults
For the read-only shell that I'm working on, I'm running into a slight
snag. I'm trying to build a paging command (emulating the function of
more). It seems get_key() is probably the best function to use for
obtaining just a single key sequence. On my first run, I tried to
call console_ansi_raw(), then get_key() then console_ansi_std() to
change it back to a more normal mode. When I then attempt to use
fgets() (in Linux, not syslinux/com32), it segfaults.
I then decided to try just tweaking the two local flag bits, ICANON
and ECHO and it works fine for Linux but now I'm going to hav...
2010 Mar 27
1
Syslinux-4/libutil: console_ansi_std()
Well, I decided to get ROSH back out and try to get it functioning in
Syslinux-4. As has been my habit, I first recompiled the Linux binary
and tried it out. In the beginning of ROSH, it calls
console_ansi_std(). When I was working on this in the past, using
this function ensured both the Linux and the Syslinux/COM32 binaries
function similarly.
When using fgets() to get an input string in the
2011 Feb 13
2
CLI prompt function/library
...ppropriately.
2) Tab completion. Tab completion of filenames would be a goal but
not a priority. Tab completing on keywords is the priority. Probably
best as some sort of callback function
3) History.
4) Input. As a result of all of this, it would probably be best if it
utilized raw input mode (console_ansi_raw()) and get_key().
Here's what I've found so far that doesn't seem appropriate:
editline of libedit: Depends on libncurses which probably means it'll
be large or require adaptation
readline: Probably a good direction but at the moment, far more than I want.
getline: Looks to me like...
2012 Oct 03
1
[PATCH] pxedump.c32: Simple PXE cached packet dumping
...d_pkt_count];
+ };
+
+static const struct ipaddr_str new_ipaddr_str = { ipaddr_str_template };
+static const struct cached_pkt new_cached_pkt = { 0 };
+static const struct cached_pkts new_cached_pkts = { { { 0 } } };
+
+int main(int argc, char ** argv) {
+ struct cached_pkts cached_pkts;
+
+ console_ansi_raw();
+
+ /* Only --cached supported for now */
+ if (argc != 2 || strcmp(argv[1], "--cached")) {
+ printf(
+ "Usage: pxedump.c32 --cached\n"
+ "You might want a serial connection.\n"
+ );
+ return EXIT_FAILURE;
+ }...
2009 Mar 24
1
menu.c32 works on serial console, but hdt.c32 displays on vga only.
...that is terrific, thanks.
However when I am on the serial console and I run "hdt", it displays
the hdt screen on the VGA adaptor and not on the serial interface.
In my pxeboot config file I have:
serial 0 38400
console 0
prompt 1
I noticed that the main function in hdt.c has:
console_ansi_raw();
/* Opening the Syslinux console */
// openconsole(&dev_stdcon_r, &dev_ansicon_w);
Could the missing openconsole be stopping it from working
on the serial console?
Is there something I need to do to get hdt to run on the serial
console?
--
-- rouilj
John Rouillard
System Adm...
2006 May 25
1
pxelinux/mboot confused about e820 memory maps on HP Proliant BIOS's
...all */
regs_in.ecx.l = 20; /* Size of buffer to write into */
--- baseline-syslinux/./syslinux-3.11/com32/samples/keytest.c 2006-05-25 14:03:32.000000000 -0700
+++ fixed-syslinux/./syslinux-3.11/com32/samples/keytest.c 2006-05-25 14:03:03.000000000 -0700
@@ -72,7 +72,7 @@
{
console_ansi_raw();
- printf("CLK_TCK = %d\n", (int)CLK_TCK);
+ printf("CLOCKS_PER_SEC = %d\n", (int)CLOCKS_PER_SEC);
printf("Press keys, end with Ctrl-C...\n");
for (;;) {
--- baseline-syslinux/./syslinux-3.11/com32/libutil/get_key.c 2006-05-25 14:03:31.000000000 -0700
+++...
2010 Jun 27
1
[PATCH] ROSH: Upgraded
...to get just
- * 1 key sequence (without delay or display)
- */
-void rosh_console_raw(void)
-{
-// struct termios itio, ntio;
-// tcgetattr(0, &itio);
-// rosh_print_tc(&itio);
-/* ntio = itio;
- ntio.c_lflag &= ~(ICANON|ECHO);
- tcsetattr(0, TCSAFLUSH, &ntio);*/
- console_ansi_raw(); /* Allows get_key to get just 1 key sequence
- (w/o delay or display */
-// tcgetattr(0, &ntio);
-// rosh_print_tc(&ntio);
-}
-
-/*
- * Switches back to standard getline mode.
- */
-void rosh_console_std(void)
-{
-// struct termios itio, ntio;
- console_ansi_std(...
2012 Nov 02
10
[PATCH 0/9] elflink fixes
From: Matt Fleming <matt.fleming at intel.com>
Here are the patches that I've got queued up based on the very helpful
feedback I received from people testing Syslinux 5.00-pre9. Unless
anyone has any concerns these will make it into Syslinux 5.00-pre10.
Matt Fleming (9):
pxe: Don't call open_config() from the pxe core
ldlinux: Print a warning if no config file is found
2010 Apr 27
4
Patch sensible callback framework
...118,11 +145,13 @@ int main(int argc, char *argv[])
size_t kernel_len;
bool opt_dhcpinfo = false;
bool opt_quiet = false;
+ bool opt_percent = false;
void *dhcpdata;
size_t dhcplen;
char **argp, *arg, *p;
- openconsole(&dev_null_r, &dev_stdcon_w);
+
+ console_ansi_raw();
(void)argc;
argp = argv + 1;
@@ -157,16 +186,23 @@ int main(int argc, char *argv[])
if (find_boolean(argp, "quiet"))
opt_quiet = true;
- if (!opt_quiet)
- printf("Loading %s... ", kernel_name);
+ if (find_boolean(argp, "percent"))
+ opt_pe...
2009 Mar 05
0
[PATCH 5/5] COM32/rosh: Improvements
...command string
@@ -216,16 +243,8 @@ void rosh_print_tc(struct termios *tio)
*/
void rosh_console_raw()
{
-// struct termios itio, ntio;
-// tcgetattr(0, &itio);
-// rosh_print_tc(&itio);
-/* ntio = itio;
- ntio.c_lflag &= ~(ICANON|ECHO);
- tcsetattr(0, TCSAFLUSH, &ntio);*/
console_ansi_raw(); /* Allows get_key to get just 1 key sequence
(w/o delay or display */
-// tcgetattr(0, &ntio);
-// rosh_print_tc(&ntio);
}
/*
@@ -233,9 +252,7 @@ void rosh_console_raw()
*/
void rosh_console_std()
{
-// struct termios itio, ntio;
console_ansi_std();
-// tcsetattr(0, TCSA...
2009 Feb 15
2
COM32 module: Read-Only shell
...e. Allows get_key to get just
+ * 1 key sequence (without delay or display)
+ */
+void rosh_console_raw()
+{
+// struct termios itio, ntio;
+// tcgetattr(0, &itio);
+// rosh_print_tc(&itio);
+/* ntio = itio;
+ ntio.c_lflag &= ~(ICANON|ECHO);
+ tcsetattr(0, TCSAFLUSH, &ntio);*/
+ console_ansi_raw(); /* Allows get_key to get just 1 key sequence
+ (w/o delay or display */
+// tcgetattr(0, &ntio);
+// rosh_print_tc(&ntio);
+}
+
+/*
+ * Switches back to standard getline mode.
+ */
+void rosh_console_std()
+{
+// struct termios itio, ntio;
+ console_ansi_std();
+// tcsetattr(0, TCS...
2010 Apr 23
1
Path simple menu integrated progress indicator
...}
diff -uprN syslinux-3.86-vanilla//com32/menu/menu.c syslinux-3.86/com32/menu/menu.c
--- syslinux-3.86-vanilla//com32/menu/menu.c 2010-03-31 11:24:25.000000000 -0500
+++ syslinux-3.86/com32/menu/menu.c 2010-04-15 10:07:34.000000000 -0500
@@ -42,3 +42,25 @@ void start_console(void)
{
console_ansi_raw();
}
+
+void draw_progress(const char *file, size_t cur, size_t total)
+{
+ static bool once = true;
+ float percent;
+ percent = ((float)cur / (float)total) * 100.0;
+
+ if (opt_quiet)
+ return;
+
+ if (once) {
+ printf("Loading %s", file);
+ once = f...
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 Nov 06
50
chain.c32 (and partiter) updates v2
This is a bit updated set of chain.c32 changes that simplifies a few things
(and in partiter part), fixes few minor issues and adds a few new features.
Details are in the following commits, below is the summary and pull details at
the end.
Shao - any chance to peek over them ? Most of those are relatively simple
changes and well tested, though of course something might have slipped my
attention.