Better styling for terminal

This commit is contained in:
jeffser
2024-10-07 02:17:34 -06:00
parent f03c01b6a6
commit 66a9627b29
3 changed files with 9 additions and 10 deletions

View File

@@ -428,9 +428,9 @@ def run_script_response(self, dialog, task, script, language_name):
with open(os.path.join(cache_dir, 'temp_python_script.py'), 'w') as f:
f.write(script)
script = 'python3 {}'.format(os.path.join(cache_dir, 'temp_python_script.py'))
script += '; echo "\n(Alpaca) {}"'.format(_('Script exited'))
script += '; echo "\n🦙 {}"'.format(_('Script exited'))
if shutil.which('flatpak-spawn'):
script = 'echo "{}\n";'.format(_('The script is contained inside Flatpak')) + script
script = 'echo "🦙 {}\n";'.format(_('The script is contained inside Flatpak')) + script
self.run_terminal(['bash', '-c', script])