pw-cli: use readline() in interactive mode

With history and a simple command completion hook this makes the
interactive mode a lot easier to deal with.
This commit is contained in:
Peter Hutterer 2021-09-27 07:33:19 +10:00 committed by Wim Taymans
parent 7d58ce9e24
commit ae59185f6f
3 changed files with 100 additions and 35 deletions

View file

@ -325,6 +325,7 @@ pthread_lib = dependency('threads')
dbus_dep = dependency('dbus-1')
sdl_dep = dependency('sdl2', required : get_option('sdl2'))
summary({'SDL 2': sdl_dep.found()}, bool_yn: true, section: 'Misc dependencies')
readline_dep = dependency('readline', required : false)
ncurses_dep = dependency('ncursesw', required : false)
sndfile_dep = dependency('sndfile', version : '>= 1.0.20', required : get_option('sndfile'))
summary({'sndfile': sndfile_dep.found()}, bool_yn: true, section: 'pw-cat/pw-play/pw-dump/filter-chain')