Compare commits

...

2 Commits

Author SHA1 Message Date
localhost_frssoft 3c545cc991 Also close EOF's 2023-06-15 19:07:56 +03:00
localhost_frssoft d689a4c34e Fix for termux, close EOF 2023-06-15 19:04:11 +03:00
2 changed files with 3 additions and 3 deletions

View File

@ -128,7 +128,7 @@ Insert token from "Access token" here''')
current_instance.select_instance(current_instance.instance)
if selected == 'Donate':
os.system(f'less <<EOF\nSupport instance message:\n{support_message}')
os.system(f'less <<EOF\nSupport instance message:\n{support_message}\nEOF')
if selected == 'About instance':
about_instance_info = []
for i in ins_settings:
@ -143,7 +143,7 @@ Insert token from "Access token" here''')
for k, v in ins_nodeinfo['usage'].items():
about_instance_info.append(f'{k}: {v}')
about_instance_info = '\n'.join(about_instance_info)
os.system(f'less <<EOF\n{about_instance_info}')
os.system(f'less <<EOF\n{about_instance_info}\nEOF')
del about_instance_info
if selected == 'Player':
src.mpv_control.player_menu(

View File

@ -69,4 +69,4 @@ def track_info_output(track):
else:
output.append(f'{k}: {v}')
output = '\n'.join(output)
os.system(f'less <<EOF\n{output}')
os.system(f'less <<EOF\n{output}\nEOF')