Skip to content

Commit

Permalink
Merge pull request #12 from pmav99/clear_screen
Browse files Browse the repository at this point in the history
lib/init/grass.py: Stop clearing the terminal
  • Loading branch information
wenzeslaus committed May 22, 2019
2 parents bdb44f1 + 29836ea commit 5c46b13
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lib/init/grass.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down Expand Up @@ -2224,7 +2213,6 @@ def main():
clean_all()
sys.exit(0)
else:
clear_screen()
show_banner()
say_hello()
show_info(shellname=shellname,
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 5c46b13

Please sign in to comment.