Discussion:
date display in group and thread level
Dennis Preiser
2013-08-25 20:40:31 UTC
Permalink
In de.software.newsreader someone has asked how to display the date in
thread level. Currently not possible, but I think this might be useful
so I decided to implement this. The attached patch anables tin to
display a combination of lines/score/date where only lines and/or score
could be shown before (group and thread level). date_format is used for
formatting the date. The feature can be controlled vie 'M'enu ("Show
lines/score/date in listings") or via attributes.

In order to not overloading the screen, the date is only shown when the
terminal has more than 120 columns. This can be controlled via
MIN_COLS_TO_SHOW_DATE in tin.h.

Dennis
Dennis Preiser
2013-08-26 16:32:59 UTC
Permalink
Post by Dennis Preiser
In order to not overloading the screen, the date is only shown when the
terminal has more than 120 columns. This can be controlled via
MIN_COLS_TO_SHOW_DATE in tin.h.
I don't think it's a good idea to implement some functionality
visible to the user (in the menu) which doesn't work on the usual
setup (24x80 terminal) - or at least the MIN_COLS_TO_SHOW_DATE should
be configurable at runtime (precompiled binary of the distribution
has unchanged MIN_COLS_TO_SHOW_DATE, user runs on 24x80 and see the
option but never get's it to work).
The more I think about it -- yes, that could confuse users.
Or "simply" make the screen layout _fully_ controlable by the user
,-)
That seems to be the best solution. We'll see what can be done.
btw. shouldn't we use wcsftime() (if available) when MULTIBYTE_ABLE &&
NO_LOCALE?
Probably yes.

Dennis

Loading...