Skip to content

Commit

Permalink
Fix hostname not adding return char
Browse files Browse the repository at this point in the history
  • Loading branch information
dotargz committed Aug 9, 2022
1 parent 69c69cd commit b7b447d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/data/history.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[]
["help", "nslookup", "nslookup google.com", "hostname google.com", "echo hi", "hostname", "hostname", "help", "time", "data", "date"]
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def __init__(self):
self.BLACK = (0, 0, 0)
self.NOTBLACK = (12, 12, 12)
self.WHITE = (255, 255, 255)
self.VERSION = "1.0."
self.VERSION = "1.0."
self.NAME = "SuperTerm βeta"
pygame.display.set_caption(f"{self.NAME} {self.VERSION}")
self.FONT_SIZE = 14
Expand Down Expand Up @@ -397,7 +397,7 @@ def run_command(self, command, sandbox=False, notFirst=False):
return_text += f"Error: Could not find hostname '{command_params[0]}'.\n"
elif command == "hostname":
try:
return_text += s.gethostname()
return_text += s.gethostname() + "\n"
except PermissionError:
return_text += "Error: ICMP Permission denied.\n"
except RuntimeError:
Expand Down

0 comments on commit b7b447d

Please sign in to comment.