Date: Mon, 26 Jan 2009 15:03:44 -0800 From: Chuck Swiger <cswiger@mac.com> To: Svein Halvor Halvorsen <svein.h@lvor.halvorsen.cc> Cc: questions@freebsd.org Subject: Re: printf and utf-8 Message-ID: <6A32981B-AD8F-4CAA-B1BD-38A06654C69A@mac.com> In-Reply-To: <497E41B8.2030203@lvor.halvorsen.cc> References: <497E31EE.9010202@lvor.halvorsen.cc> <0B02CEE8-D38A-4D94-B76D-49721BDDACF0@mac.com> <497E41B8.2030203@lvor.halvorsen.cc>
next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 26, 2009, at 3:05 PM, Svein Halvor Halvorsen wrote: > Do you have a suggestion to solve the following problem without > using printf(1): > > I have a text file that I want to print in a "box" on a terminal > from a shell script. Now I've padded the lines with spaces to a > certain length using printf %-70s and appended the box drawing > character. Is there another simple way that will work with utf-8? My first thought was about dialog(1), but I'm not sure whether that deals with UTF8 any better...? -- -Chuck
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6A32981B-AD8F-4CAA-B1BD-38A06654C69A>