Extracted from #14: currently, we're explicitly listening for Ctrl-C in the directory listing loop, which is hacky. The "right" way to do this would be to use an async runtime like tokio or smol, preferrably with smol's async-fs. This would let us listen for async key presses while listing directory entries and doing other activities.
Extracted from #14: currently, we're explicitly listening for Ctrl-C in the directory listing loop, which is hacky. The "right" way to do this would be to use an async runtime like tokio or smol, preferrably with smol's async-fs. This would let us listen for async key presses while listing directory entries and doing other activities.