le ven 08-03-2002 à 20:28, Thomas Poindessous a écrit : > le ven 08-03-2002 à 16:28, thomas poindessous a écrit : > > Hi, i still have a problem with clear and bterm. It just doesn't work. The > > cursor is moved in the right place, but screen is not cleared. > > I found it ! > > For bterm, clear must be : > clear=\E[H\E[2J (found in bogl-0.1.8/bterm.ti) and busybox implement > clear like this : printf("\033[H\033[J"); (found in > busybox-0.60.2/clear.c ) > > This is also declared in dbootstrap.h > #define CLEAR "^[[H^[[J" > > I will rebuild bf with right clear code and test.
Ok, I changed clear.c and dbootstrap.h. I tested it a little and it worked much better inside bterm. Here are the patch. The busybox patch is not as important as the dbootstrap.h's one. ------------------------------------------- diff -ur busybox-0.60.2.orig/clear.c busybox-0.60.2/clear.c --- busybox-0.60.2.orig/clear.c Tue Nov 20 00:34:17 2001 +++ busybox-0.60.2/clear.c Sat Mar 9 14:52:39 2002 @@ -29,6 +29,6 @@ extern int clear_main(int argc, char **argv) { - printf("\033[H\033[J"); + printf("\033[H\033[2J"); return EXIT_SUCCESS; } --------------------------------------------------- diff -ur boot-floppies.orig/utilities/dbootstrap/dbootstrap.h boot-floppies/utilities/dbootstrap/dbootstrap.h --- boot-floppies.orig/utilities/dbootstrap/dbootstrap.h Thu Mar 7 00:46:18 2002 +++ boot-floppies/utilities/dbootstrap/dbootstrap.h Sat Mar 9 14:55:09 2002 @@ -63,7 +63,7 @@ # define _(String) gettext(String) #endif -#define CLEAR "ESC[HESC[J" +#define CLEAR "ESC[HESC[2J" #define SYSLOG_IDENT "dbootstrap" #define INFOMSG(format...) \ -- Thomas Poindessous [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]