Вы заметили что с интерактивной консолью из прошлого поста что-то не так? Что происходит если нажать стрелки вверх/вниз? Полный бардак!
Давайте поправим это дело!
Для сохранения и загрузки истории будем использовать специальный модуль readline.
Что добавлено?
🔸 Сохранение истории команд с возможностью выбора предыдущих (клавиши ⬆️⬇️ )
🔸 Сохранение истории в файл перед выходом из интерактива для будущих сессий
🔸 Автокомплит по нажатию клавиши TAB
🔸 Cписок вариантов автокомплита по двойному нажатию TAB
Код забираем здесь ↗️
#tricks#source
Protecting our communities from hospital-acquired infections starts with strong Infection Prevention and Control #IPC programs in our health facilities.
We must invest more in these initiatives to safeguard public health and prevent the next epidemic.
#PreventionHAIs
#FundIPC
#TurnNigeriaOrange
Protecting our communities from hospital-acquired infections starts with strong Infection Prevention and Control #IPC programs in our health facilities.
We must invest more in these initiatives to safeguard public health and prevent the next epidemic.
#PreventionHAIs
#FundIPC
#TurnNigeriaOrange
Protecting our communities from hospital-acquired infections starts with strong Infection Prevention and Control #IPC programs in our health facilities.
We must invest more in these initiatives to safeguard public health and prevent the next epidemic.
#PreventionHAIs
#FundIPC
#TurnNigeriaOrange
Sustained domestic funding for #InfectionPreventionandControl is an essential investment in the fight against healthcare-associated infections and #antimicrobialresistance.
Let's protect lives, support research, and safeguard our healthcare systems.
#TurnNigeriaOrange
#PreventHAIs
#FundIPC
Protecting our communities from hospital-acquired infections starts with strong Infection Prevention and Control #IPC programs in our health facilities.
We must invest more in these initiatives to safeguard public health and prevent the next epidemic.
#PreventionHAIs#FundIPC
#TurnNigeriaOrange#IPCTWG