shell-pool / shpool

Think tmux, then aim... lower
Apache License 2.0
1.03k stars 13 forks source link

motd pager mode should support a debounce time #31

Open ethanpailes opened 3 weeks ago

ethanpailes commented 3 weeks ago

I'm worried that the motd pager mode, which is turned on with:

[motd.pager]
bin = "less"

is too annoying as things stand. I think that in addition to the bin option, we should include a show_every option which allows the user to specify a duration (in the same format accepted by shpool attach --ttl <duration>) that shpool will suppress the motd for once it has show it. This will make it so users are shown the motd just once every day rather than every time they reconnect.

We might also want to consider adding something like a banner option so an explaination of what is going on can be added, in case this setting has been enabled globally rather than explicitly by a user.

ethanpailes commented 4 days ago

We might also want to think about adding a "header" and "footer" option, though those should probably apply to dump mode as well. I should probably make a seperate issue for that.

ethanpailes commented 4 days ago

Custom headers and footers are kinda already covered by "motd_args" since that lets you register a custom shpool specific message.