From: Karel Zak <kzak@redhat.com>
To: util-linux@vger.kernel.org
Cc: Gennady Kovshenin <gennady@kovshenin.com>
Subject: Re: Fwd: [util-linux] cal: add landscape layout for yearly views (#117)
Date: Wed, 17 Sep 2014 15:18:48 +0200 [thread overview]
Message-ID: <20140917131848.GA5366@x2.net.home> (raw)
In-Reply-To: <CAP0zEAZhyOqM-VmBkGEA4sN2wC+YycOtP8h6AxytjTDXsw1K4A@mail.gmail.com>
On Wed, Sep 17, 2014 at 06:22:36PM +0600, Gennady Kovshenin wrote:
> I don't think the filling in the terminal completely is a logical
> approach. I feel that calendar year output has to be rectangular. T
> here are always 12 months and the only way to arrange them into a
> nice rectangular shape is 1x12, 2x6, 3x4, 4x3, 6x2, 12x1, other shapes
> don't make much sense UI-wise, do they? All the printed mini calendars
> I get are always laid out in 3x4, 4x3 or 6x2 (rare).
Well, "fill-in all terminal horizontally" does not mean that I want to
generate any unreadable mess :-)
I'd like to see "cal --landscape" *just works* and it automatically
selects the best output format (3x4, 4x3, 6x2, ...) which fits into
the current terminal width. That's all the story. As user I don't
want to think about number of -l options.
Additionally we can add a new option --format={3x4, 4x3, auto, ...}
to provide full control on the output for scripts that generate
something from cal(1) output.
IMHO, it's mistake that for example -y or -3 ignores terminal width
so on small terminals it's unreadable.
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
next prev parent reply other threads:[~2014-09-17 13:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <karelzak/util-linux/pull/117@github.com>
[not found] ` <karelzak/util-linux/pull/117/c55868722@github.com>
[not found] ` <CAP0zEAb8y+P-McdLc23dJyqG3_=mFQw9PEmkaLLbzGzmWL7p-A@mail.gmail.com>
2014-09-17 12:22 ` Fwd: [util-linux] cal: add landscape layout for yearly views (#117) Gennady Kovshenin
2014-09-17 13:18 ` Karel Zak [this message]
2014-09-17 15:52 ` Gennady Kovshenin
2014-09-22 11:33 ` Karel Zak
2014-09-22 11:38 ` Gennady Kovshenin
2014-09-22 12:02 ` Sami Kerola
2014-09-23 6:14 ` Gennady Kovshenin
2014-10-01 7:31 ` Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140917131848.GA5366@x2.net.home \
--to=kzak@redhat.com \
--cc=gennady@kovshenin.com \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).