Skip to content

Commit

Permalink
shell mode :: warn in banner if readline is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
adriansev committed Mar 13, 2024
1 parent 0fc5ac5 commit 9fb34ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion alienpy/alien.py
Original file line number Diff line number Diff line change
Expand Up @@ -1872,7 +1872,11 @@ def JAlien(commands: Union[list, str, None] = None) -> int:
if not os.getenv('ALIENPY_NO_HISTORY') and HAS_READLINE:
setupHistory(ALIENPY_GLOBAL_WB) # Setup command history

print_out('Welcome to the ALICE GRID\nsupport mail: adrian.sevcenco@cern.ch\n')
banner = 'Welcome to the ALICE GRID\nsupport mail: adrian.sevcenco@cern.ch'
readline_stat = '' if HAS_READLINE else '>>> Proper readline implementation for platform was not found! History and tab completion will not work! <<<\n'
banner = f'{banner}\n{readline_stat}'
print_out(banner)

if DEBUG:
print_out(f'Debug enabled, logfile is: {DEBUG_FILE}')
if os.getenv('ALIENPY_PROMPT_DATE'): AlienSessionInfo['show_date'] = True
Expand Down

0 comments on commit 9fb34ea

Please sign in to comment.