From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 6 Mar 2015 18:27:22 +0100 Message-ID: From: Giacomo Tesio To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=089e0160a97e4702c90510a1ffef Subject: Re: [9fans] col.c: one line fix for variable-width font Topicbox-Message-UUID: 487a2680-ead9-11e9-9d60-3106f5b1d025 --089e0160a97e4702c90510a1ffef Content-Type: text/plain; charset=UTF-8 ehm... well... actually I could try with vnc... :-) Giacomo 2015-03-06 18:22 GMT+01:00 Giacomo Tesio : > 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 : > >> 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 >> >> > --089e0160a97e4702c90510a1ffef Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
ehm... well... actually I could try with vnc... :-)

Giacomo
<= br>
2015-03-06 18:22 GMT+01:00 Giacomo Tesio <gia= como@tesio.it>:
Actually I'm using drawterm, as a sort of remote desktop connecti= on. 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 s= eem 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 i= t without drawterm.

col.c just ignores $tabstop in i= t's source code. It use a Tabstop =3D 8 constant instead (and a 7 value= to check for position).
Changing the code to use $tabstop is tri= vial, and I even tried it, but it neither fixed the initial problem nor dec= reased the man output size enough to justify it's proposal.
<= br>
I'm going to write a sed script to remove the leading mar= gin (but not every space or tab at the beginning of each line) from nroff o= utput so that (with my font and my 14inches monitor) I can use a 3 column a= cme to browse /sys/src/ && read the code && browse man page= s.
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=C2=A0 6 04:57:18 = PST 2015, giacomo@tes= io.it wrote:

> if ((++ncp & 7) =3D=3D 0 && !xflag) {
>
> with
>
> if ((++ncp & 7) =3D=3D 0 && !xflag && *(p-2) =3D= =3D ' ') {

that solves it.=C2=A0 you have a problem with $tabstop.=C2=A0 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



--089e0160a97e4702c90510a1ffef--