# PIP-0105

**URL:** https://discourse.prolog-lang.org/c/improvements-forum/0105-write-options/20.md

[Latest](https://discourse.prolog-lang.org/latest.md) · [Categories](https://discourse.prolog-lang.org/categories.md) · [Tags](https://discourse.prolog-lang.org/tags.md)

---

## [About the PIP-0105 category](https://discourse.prolog-lang.org/t/about-the-pip-0105-category/99)

<div class="topic-metadata">

**Author:** [@herme](https://discourse.prolog-lang.org/u/herme)\
**Replies:** 0\
**Last updated:** [November 13, 2024, 5:48pm UTC](https://discourse.prolog-lang.org/t/about-the-pip-0105-category/99 "2024-11-13T17:48:47Z")

</div>

See PIP 0105 - Options in write\_term To start/continue discussion: open a new topic within this subcategory or reply within an existing topic.T

---

## [Progress notes on text\_max](https://discourse.prolog-lang.org/t/progress-notes-on-text-max/172)

<div class="topic-metadata">

**Author:** [@JanWielemaker](https://discourse.prolog-lang.org/u/JanWielemaker)\
**Replies:** 3\
**Last updated:** [November 24, 2025, 1:16pm UTC](https://discourse.prolog-lang.org/t/progress-notes-on-text-max/172 "2025-11-24T13:16:01Z")

</div>

I have implemented portable(true), max\_text(+Length)andtruncated(-Bool)\`. Some remarks: I renamed text\_max(+Length) to max\_text(+Length) because all Prolog options and flags are max\_\*. Will be renamed to whatever t…

---

## [Printing cyclic terms](https://discourse.prolog-lang.org/t/printing-cyclic-terms/142)

<div class="topic-metadata">

**Author:** [@jschimpf](https://discourse.prolog-lang.org/u/jschimpf)\
**Replies:** 0\
**Last updated:** [February 20, 2025, 12:13am UTC](https://discourse.prolog-lang.org/t/printing-cyclic-terms/142 "2025-02-20T00:13:24Z")

</div>

I’d like to suggest a new way for printing cyclic terms. Some systems (e.g. SICStus, SWI), support representing cyclic terms in output as follows ?- X=f(Y), Y=g(Y), write\_term(X,\[\]). @(f(\_123),\[\_123=g(\_123)\]) Here, th…

---

## [Variable writing](https://discourse.prolog-lang.org/t/variable-writing/102)

<div class="topic-metadata">

**Author:** [@JanWielemaker](https://discourse.prolog-lang.org/u/JanWielemaker)\
**Replies:** 3\
**Last updated:** [February 19, 2025, 11:41pm UTC](https://discourse.prolog-lang.org/t/variable-writing/102 "2025-02-19T23:41:33Z")

</div>

Possibly related, I’m wondering what people think about writing variables by write\_term/2,3. We have the ISO extension variable\_names(+List) and numbervars(+Bool). SWI-Prolog’s numbervars implies the SP legacy\_number…

---

## [More SWI-Prolog options that may be worth considering](https://discourse.prolog-lang.org/t/more-swi-prolog-options-that-may-be-worth-considering/101)

<div class="topic-metadata">

**Author:** [@JanWielemaker](https://discourse.prolog-lang.org/u/JanWielemaker)\
**Replies:** 4\
**Last updated:** [November 20, 2024, 3:11pm UTC](https://discourse.prolog-lang.org/t/more-swi-prolog-options-that-may-be-worth-considering/101 "2024-11-20T15:11:23Z")

</div>

Thanks for the nice list of options. I examined by list at write\_term/2. Some of the stuff is of no general interest, but some might be. Notably module(+Module) Should possibly/probably be handled differently, bu…

---

## [About the radix option (and a little about float write options)](https://discourse.prolog-lang.org/t/about-the-radix-option-and-a-little-about-float-write-options/103)

<div class="topic-metadata">

**Author:** [@JanWielemaker](https://discourse.prolog-lang.org/u/JanWielemaker)\
**Replies:** 5\
**Last updated:** [November 17, 2024, 11:34pm UTC](https://discourse.prolog-lang.org/t/about-the-radix-option-and-a-little-about-float-write-options/103 "2024-11-17T23:34:00Z")

</div>

I had a look at the radix(+Radix) option of XSB. I also has a closer look at SICStus float\_format(+Format). Actually implementing this stuff makes you more aware of the issues :slight\_smile: Dealing with Radix looked…
