MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / remove_motd

Function remove_motd

Scripts/Settings.py:1091–1095  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1089 """Clear an interactive terminal without spawning a shell process."""
1090 try:
1091 sys.stdout.write("\033[2J\033[H")
1092 sys.stdout.flush()
1093 except Exception:
1094 pass
1095
1096def _command_argv(command):
1097 if isinstance(command, (list, tuple)):
1098 return [str(item) for item in command]

Callers 1

set_prompt_usernameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected