mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 17:00:58 +01:00
diag info
This commit is contained in:
parent
a587a1719d
commit
8f6e565e20
1 changed files with 15 additions and 0 deletions
|
@ -32,6 +32,21 @@ def setup_readline():
|
|||
except ValueError:
|
||||
# not all versions of readline have this symbol, ie Macs sometimes
|
||||
RL_COMPLETION_SUPPRESS_APPEND = None
|
||||
try:
|
||||
RL_CATCH_SIGNALS = ctypes.c_int.in_dll(lib, 'rl_catch_signals')
|
||||
print('RL_CATCH_SIGNALS:', RL_CATCH_SIGNALS.value)
|
||||
except ValueError:
|
||||
pass
|
||||
try:
|
||||
RL_CATCH_SIGWINCH = ctypes.c_int.in_dll(lib, 'rl_catch_sigwinch')
|
||||
print('RL_CATCH_SIGWINCH:', RL_CATCH_SIGWINCH.value)
|
||||
except ValueError:
|
||||
pass
|
||||
try:
|
||||
RL_CHANGE_ENVIRONMENT = ctypes.c_int.in_dll(lib, 'rl_change_environment')
|
||||
print('RL_CHANGE_ENVIRONMENT:', RL_CHANGE_ENVIRONMENT.value)
|
||||
except ValueError:
|
||||
pass
|
||||
# reads in history
|
||||
env = builtins.__xonsh_env__
|
||||
hf = env.get('XONSH_HISTORY_FILE', os.path.expanduser('~/.xonsh_history'))
|
||||
|
|
Loading…
Add table
Reference in a new issue