has changed, so the isohybrid utility must version-match
isolinux.bin.
* Drop support for ACPI 3 extended memory flags.
+ * Menu system: don't set the autocr flag on the serial console.
Changes in 3.80:
* New shuffler mechanism and API.
#include <unistd.h>
#include <console.h>
-static void __attribute__((destructor)) console_cleanup(void)
-{
- /* For the serial console, be nice and clean up */
- fputs("\033[0m\033[20l", stdout);
-}
-
void console_ansi_std(void)
{
openconsole(&dev_stdcon_r, &dev_ansiserial_w);
- fputs("\033[0m\033[20h", stdout);
}
#else
static void __attribute__((destructor)) console_cleanup(void)
{
- fputs("\033[0m\033[20l", stdout);
tcsetattr(0, TCSANOW, &original_termios_settings);
}
tio.c_iflag &= ~ICRNL;
tio.c_iflag |= IGNCR;
tio.c_lflag |= ICANON|ECHO;
+ if (!tio.c_oflag & OPOST)
+ tio.c_oflag = 0;
+ tio.c_oflag |= OPOST|ONLCR;
tcsetattr(0, TCSANOW, &tio);
- fputs("\033[0m\033[20h", stdout);
}
#endif
#include <unistd.h>
#include <console.h>
-static void __attribute__((destructor)) console_cleanup(void)
-{
- /* For the serial console, be nice and clean up */
- fputs("\033[0m\033[20l", stdout);
-}
-
void console_ansi_raw(void)
{
openconsole(&dev_rawcon_r, &dev_ansiserial_w);
- fputs("\033[0m\033[20h", stdout);
}
#else
static void __attribute__((destructor)) console_cleanup(void)
{
- fputs("\033[0m\033[20l", stdout);
tcsetattr(0, TCSANOW, &original_termios_settings);
}
tio.c_iflag &= ~ICRNL;
tio.c_iflag |= IGNCR;
tio.c_lflag &= ~(ISIG|ICANON|ECHO);
+ if (!tio.c_oflag & OPOST)
+ tio.c_oflag = 0;
+ tio.c_oflag |= OPOST|ONLCR;
tio.c_cc[VMIN] = 0;
tio.c_cc[VTIME] = 1; /* Don't 100% busy-wait in Linux */
tcsetattr(0, TCSAFLUSH, &tio);
- fputs("\033[0m\033[20h", stdout);
}
#endif
#include <consoles.h>
#include "menu.h"
-void console_prepare(void)
-{
- /* Nothing special to do */
-}
-
-void console_cleanup(void)
-{
- /* Nothing special to do */
-}
-
int draw_background(const char *arg)
{
/* Nothing to do... */
int main(int argc, char *argv[])
{
console_ansi_raw();
-
return menu_main(argc, argv);
}
(void)argc;
- console_prepare();
-
if (getscreensize(1, &rows, &cols)) {
/* Unknown screen size? */
rows = 24;
cmdline = run_menu();
printf("\033[?25h\033[%d;1H\033[0m", END_ROW);
- console_cleanup();
if ( cmdline ) {
execute(cmdline, KT_NONE);
} else {
return 0; /* Exit */
}
-
- console_prepare(); /* If we're looping... */
}
}
#include "menu.h"
-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);
-}
-
int draw_background(const char *what)
{
if (!what)