Skip to content
  • Lukasz Majewski's avatar
    cli: Provide optional support for libedit instead of readline · d1dad6ae
    Lukasz Majewski authored and Thomas Haller's avatar Thomas Haller committed
    The libreadline starting from version 6 is licensed as GPLv3. For some
    use cases it is not acceptable to use this license.
    
    In the NetworkManager the libreadline is used by nmcli.
    This change allows using libedit instead of libreadline.
    
    Following adjustments were made:
    1. The history_set_history_state() is not supported in the libedit.
       Instead, the where_history() with remove_history() were used to remove
       the history content if needed.
    
    2. rl_complete_with_tilde_expansion - it is the binary flag used only
       when one wants to have the expansion support. The libedit is not
       supporting and hence exporting this flag.
    d1dad6ae