Re: [eclipse-clp-users] Possible to use format/2 to print a table with right-justified columns?

From: Paulo Moura <pmoura_at_...342...>
Date: Thu, 21 Aug 2014 14:12:16 +0100
Hi Joachim,

On 21/08/2014, at 13:48, Joachim Schimpf <jschimpf_at_...311...> wrote:

> On 21/08/2014 13:21, Paulo Moura wrote:
>> Hi,
>> 
>> Is it possible to use ECLiPSe format/2 predicate to print a table with right-justified columns?
>> The original Quintus Prolog implementation of this predicate provide format control sequences to
>> set and align with tab stops but this seems to not be implemented in ECLiPSe. Is there any
>> alternative usage of the format/2 predicate that I'm missing?
> 
> 
> As noted in http://www.eclipseclp.org/doc/bips/lib/format/format-3.html, the lib(format)
> implementation is a wrapper for ECLiPSe's printf.  Here is a more detailed comparison:
> ...

I also accessed this documentation before posting on the mailing list. But I was still hoping for some lifesaver trick based on the printf predicate.

> This is a far as this approach goes, I'm not planning to implement the acrobatics necessary for tty
> column printing (tables are much easier with html output).  That said, I'm hoping for a
> Prolog-level implementation of a completely compatible format/3 from Prolog Commons.

You're an optimist :-)

Cheers,

Paulo

-----------------------------------------------------------------
Paulo Moura
Logtalk developer

Email: <mailto:pmoura_at_...342...>
Web:   <http://logtalk.org/>
-----------------------------------------------------------------
Received on Thu Aug 21 2014 - 13:12:27 CEST

This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:21 CEST