File: 07_clear-not-reset

package info (click to toggle)
rungetty 1.2-16.1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 300 kB
  • sloc: ansic: 3,494; makefile: 30
file content (16 lines) | stat: -rw-r--r-- 562 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Author: Adeodato Simó <dato@net.com.org.es>	vim:ft=diff:
Description: send clear instead of reset (BTS #309866)

Index: rungetty-1.2/rungetty.c
===================================================================
--- rungetty-1.2.orig/rungetty.c
+++ rungetty-1.2/rungetty.c
@@ -484,7 +484,7 @@ open_tty (void)
   /* Write a reset string to the terminal. This is very linux-specific
      and should be checked for other systems. */
   if (!noclear)
-    write (0, "\033c", 2);
+    write (0, "\033[H\033[J", 6);
 
   sa.sa_handler = SIG_DFL;
   sa.sa_flags = 0;