Вы заметили что с интерактивной консолью из прошлого поста что-то не так? Что происходит если нажать стрелки вверх/вниз? Полный бардак!
Давайте поправим это дело!
Для сохранения и загрузки истории будем использовать специальный модуль readline.
Что добавлено?
🔸 Сохранение истории команд с возможностью выбора предыдущих (клавиши ⬆️⬇️ )
🔸 Сохранение истории в файл перед выходом из интерактива для будущих сессий
🔸 Автокомплит по нажатию клавиши TAB
🔸 Cписок вариантов автокомплита по двойному нажатию TAB
Код забираем здесь ↗️
#tricks#source
Strengthening partnerships is key to improving infection prevention and control programs!🫱🏾🫲🏽
Everyone, everywhere in the public and private sectors needs to work together to ensure the widespread adoption of #IPC best practices.
#PreventHAIs
#TurnNigeriaOrange
Strengthening partnerships is key to improving infection prevention and control programs!🫱🏾🫲🏽
Everyone, everywhere in the public and private sectors needs to work together to ensure the widespread adoption of #IPC best practices.
#PreventHAIs
#TurnNigeriaOrange
#IPCTWG
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