diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-05-23 19:33:36 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-05-23 19:35:31 -0700 |
commit | 9d1cde418a4f0dc6cccf4af7eae340e75de2f3d4 (patch) | |
tree | b106d1fc14c146652ece9df7023c7fe3726a5cba /com32/menu | |
parent | ee89890b4008c40bd7d6ea5ddb1016b47fee7bbf (diff) | |
download | syslinux-9d1cde418a4f0dc6cccf4af7eae340e75de2f3d4.tar.gz |
Don't set the autocr flag on the serial console; clean up crapsyslinux-3.81-pre12
libutil would set the autocr flag on the serial console, which really
never was any point -- we already do \n -> \r\n conversion explicitly
in the serial code. This was always very annoying to deal with if the
menu was interrupted.
Furthermore, drop completely unnecessary
initialization/deinitialization routines that completely duplicated
other code.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/menu')
-rw-r--r-- | com32/menu/menu.c | 11 | ||||
-rw-r--r-- | com32/menu/menumain.c | 5 | ||||
-rw-r--r-- | com32/menu/vesamenu.c | 11 |
3 files changed, 0 insertions, 27 deletions
diff --git a/com32/menu/menu.c b/com32/menu/menu.c index 9a6ad895..6d64bad0 100644 --- a/com32/menu/menu.c +++ b/com32/menu/menu.c @@ -20,16 +20,6 @@ #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... */ @@ -40,6 +30,5 @@ int draw_background(const char *arg) int main(int argc, char *argv[]) { console_ansi_raw(); - return menu_main(argc, argv); } diff --git a/com32/menu/menumain.c b/com32/menu/menumain.c index b3131faf..81780eac 100644 --- a/com32/menu/menumain.c +++ b/com32/menu/menumain.c @@ -1052,8 +1052,6 @@ int menu_main(int argc, char *argv[]) (void)argc; - console_prepare(); - if (getscreensize(1, &rows, &cols)) { /* Unknown screen size? */ rows = 24; @@ -1084,7 +1082,6 @@ int menu_main(int argc, char *argv[]) cmdline = run_menu(); printf("\033[?25h\033[%d;1H\033[0m", END_ROW); - console_cleanup(); if ( cmdline ) { execute(cmdline, KT_NONE); @@ -1093,7 +1090,5 @@ int menu_main(int argc, char *argv[]) } else { return 0; /* Exit */ } - - console_prepare(); /* If we're looping... */ } } diff --git a/com32/menu/vesamenu.c b/com32/menu/vesamenu.c index 094b8f65..4dd45865 100644 --- a/com32/menu/vesamenu.c +++ b/com32/menu/vesamenu.c @@ -25,17 +25,6 @@ #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) |