소스 검색

lib/init/grass.py: Stop clearing the terminal

Clearing the screen does not offer any real value + doing so using tput
means that depending on the SHELL/terminal emulator used you might also
lose the ability to scroll back.

Fixes https://trac.osgeo.org/grass/ticket/3849#ticket
Panos Mavrogiorgos 6 년 전
부모
커밋
29836ea975
1개의 변경된 파일0개의 추가작업 그리고 13개의 파일을 삭제
  1. 0 13
      lib/init/grass.py

+ 0 - 13
lib/init/grass.py

@@ -1631,17 +1631,6 @@ def close_gui():
             message(_("Unable to close GUI. {0}").format(e))
 
 
-def clear_screen():
-    """Clear terminal"""
-    if windows:
-        pass
-    # TODO: uncomment when PDCurses works.
-    #   cls
-    else:
-        if not is_debug():
-            call(["tput", "clear"])
-
-
 def show_banner():
     """Write GRASS GIS ASCII name to stderr"""
     sys.stderr.write(r"""
@@ -2224,7 +2213,6 @@ def main():
         clean_all()
         sys.exit(0)
     else:
-        clear_screen()
         show_banner()
         say_hello()
         show_info(shellname=shellname,
@@ -2258,7 +2246,6 @@ def main():
         close_gui()
 
         # here we are at the end of grass session
-        clear_screen()
         clean_all()
         if not params.tmp_location:
             writefile(gisrcrc, readfile(gisrc))