Kaya-Sem / commandtrein

CLI tool for SNCB timetables and routes.
GNU General Public License v3.0
5 stars 1 forks source link

Feature request: dump info + quit on pressing enter #3

Closed BWindey closed 3 months ago

BWindey commented 3 months ago

Add detection for 'enter' when viewing routes, so that it will quit by erasing the table and printing out info about the train that was currently selected.

'q' would also quit, but leave the table behind without extra info, or even clear the table.

This info could be the same as proposed in #2

Kaya-Sem commented 3 months ago

boilerplate implementation has been added in #5 for timetable connections, where on enter it will dump detailed info.

todo:

Kaya-Sem commented 3 months ago

note to self: only close when changes have actually been pushed to main