|
From: | emacstheviking |
Subject: | Re: Possible to use format/2 to print a table with right-justified columns? |
Date: | Thu, 21 Aug 2014 13:53:37 +0100 |
yes
| ?- format('~*c~s',[10,32,"Hello"]).
format('~*c~s',[10,32,"Hello"]).
Hello
yes
| ?- format('~*c~s',[20,32,"Hello"]).
format('~*c~s',[20,32,"Hello"]).
Hello
Hi,
Is it possible to use GNU Prolog 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 GNU Prolog. Is there any alternative usage of the format/2 predicate that I'm missing?
Cheers,
Paulo
-----------------------------------------------------------------
Paulo Moura
Logtalk developer
Email: <mailto:address@hidden>
Web: <http://logtalk.org/>
-----------------------------------------------------------------
_______________________________________________
Users-prolog mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/users-prolog
[Prev in Thread] | Current Thread | [Next in Thread] |