Teletype: add support for ranges as input, e.g. "4-7 9 12-14"
This allows to quickly select lots of entries instead of having to list them all.
Example with needrestart:
Restarting services...
Daemons using outdated libraries
--------------------------------
1. cups-browsed.service 3. NetworkManager.service 5. none of the above
2. cups.service 4. upower.service
(Enter the items you want to select, separated by spaces.)
Which services should be restarted? 1-4
systemctl restart cups-browsed.service cups.service NetworkManager.service upower.service