[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH] mtest: \r anstelle von Escapesequenzen



* mtest: Ein simples \r reicht, wir brauchen hier keine magischen
         escape-Sequenzen.

Signed-off-by: Antoine Kaufmann <toni@xxxxxxxxxx>
---
 src/modules/c/mousetest/mousetest.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/modules/c/mousetest/mousetest.c b/src/modules/c/mousetest/mousetest.c
index b08f1dc..3f7c885 100644
--- a/src/modules/c/mousetest/mousetest.c
+++ b/src/modules/c/mousetest/mousetest.c
@@ -82,8 +82,7 @@ int main(int argc, char* argv[])
 
     bool change = TRUE;
 
-    printf("\nAktuelle Mausposition: (Beenden mit beliebiger Taste)");
-    printf("\n \033[s");
+    printf("\nAktuelle Mausposition: (Beenden mit beliebiger Taste)\n");
     while (TRUE)
     {
         char c;
@@ -111,8 +110,7 @@ int main(int argc, char* argv[])
             if (change) {
                 change = FALSE;
 
-                printf("\033[u");
-                printf("%3d/%3d, ", (int)x, (int)y);
+                printf("\r %3d/%3d, ", (int)x, (int)y);
                 int i;
 
                 old_buttons = mousedata[8];
-- 
1.6.0.6