9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Giacomo Tesio <giacomo@tesio.it>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] col.c: one line fix for variable-width font
Date: Fri,  6 Mar 2015 18:22:42 +0100	[thread overview]
Message-ID: <CAHL7psF=HMaAOMG1FtXf1JfFNaM9awLphfPkwjDqbsikob6mvw@mail.gmail.com> (raw)
In-Reply-To: <ff9c9dc6cc584b5a63152ef2b89c4900@lilly.quanstro.net>

[-- Attachment #1: Type: text/plain, Size: 1533 bytes --]

Actually I'm using drawterm, as a sort of remote desktop connection. But I
can't see the problem you are talking about.
The clients (either windows or linux) don't have the font installed, but
still it seem working pretty well (except for the spacing issues in man
pages). I don't have a real monitor attached to the xen server, so I can't
try it without drawterm.

col.c just ignores $tabstop in it's source code. It use a Tabstop = 8
constant instead (and a 7 value to check for position).
Changing the code to use $tabstop is trivial, and I even tried it, but it
neither fixed the initial problem nor decreased the man output size enough
to justify it's proposal.

I'm going to write a sed script to remove the leading margin (but not every
space or tab at the beginning of each line) from nroff output so that (with
my font and my 14inches monitor) I can use a 3 column acme to browse
/sys/src/ && read the code && browse man pages.
This should also reduce the man output size more than col.


Giacomo

2015-03-06 17:33 GMT+01:00 erik quanstrom <quanstro@quanstro.net>:

> On Fri Mar  6 04:57:18 PST 2015, giacomo@tesio.it wrote:
>
> > if ((++ncp & 7) == 0 && !xflag) {
> >
> > with
> >
> > if ((++ncp & 7) == 0 && !xflag && *(p-2) == ' ') {
>
> that solves it.  you have a problem with $tabstop.  if you've cpu'd
> or ssh'd somewhere, make sure the $tabstop is set properly, and that
> the font you are using is available on the remote host, and $font
> is pointing to it.
>
> - erik
>
>

[-- Attachment #2: Type: text/html, Size: 2191 bytes --]

  reply	other threads:[~2015-03-06 17:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-06 12:56 Giacomo Tesio
2015-03-06 16:33 ` erik quanstrom
2015-03-06 17:22   ` Giacomo Tesio [this message]
2015-03-06 17:27     ` Giacomo Tesio

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='CAHL7psF=HMaAOMG1FtXf1JfFNaM9awLphfPkwjDqbsikob6mvw@mail.gmail.com' \
    --to=giacomo@tesio.it \
    --cc=9fans@9fans.net \
    /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).