# Window Settings of SWI-Prolog under Windows: Console Transcript and Lines

**URL:** <https://swi-prolog.discourse.group/t/window-settings-of-swi-prolog-under-windows-console-transcript-and-lines/612>\
**Category:** General\
**Created:** [May 6, 2019, 8:02am UTC](https://swi-prolog.discourse.group/t/window-settings-of-swi-prolog-under-windows-console-transcript-and-lines/612 "2019-05-06T08:02:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aminemarref](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@aminemarref](https://swi-prolog.discourse.group/u/aminemarref)\
**Post date:** [May 6, 2019, 8:02am UTC](https://swi-prolog.discourse.group/t/window-settings-of-swi-prolog-under-windows-console-transcript-and-lines/612/1 "2019-05-06T08:02:33Z")

</div>

Hello,

I am migrating from Sicstus Prolog to SWI-Prolog. For debugging purposes, I frequently need to save everything that is displayed in the Siscstus Prolog console via a convenient “Save Transcript” window command. Also, I am able to increase the maximum number of lines displayed in the console which is very useful during debugging.

How can I save the console transcript or increase the maximum number of displayable lines in the console in SWI-Prolog under Windows?

Many thanks,  
Amine.

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [May 6, 2019, 8:28am UTC](https://swi-prolog.discourse.group/t/window-settings-of-swi-prolog-under-windows-console-transcript-and-lines/612/2 "2019-05-06T08:28:42Z")

</div>

You can change the number of saved lines in the Windows registry. See [http://www.swi-prolog.org/windows.html](http://www.swi-prolog.org/windows.html), section 3.4. Not sure the docs are still accurate, but knowing what you are looking for should allow you to find the right keys using regedit (please report if the docs are outdated).

There is no _save contents of the console window_ command, except for copy/paste. Shouldn’t be that hard to add though. Possibly we should add a Prolog predicate that allows you to enumerate the output of the console line-by-line?

There is an alternative in the form of [protocol(+File)](http://www.swi-prolog.org/pldoc/doc_for?object=protocol/1), which copies the console interaction to a file.

For console message debugging, please have a look at [debug/3](http://www.swi-prolog.org/pldoc/doc_for?object=debug/3) and friends.

---

<div class="post-metadata">

**Author:** ![aminemarref](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@aminemarref](https://swi-prolog.discourse.group/u/aminemarref)\
**Post date:** [May 6, 2019, 8:59am UTC](https://swi-prolog.discourse.group/t/window-settings-of-swi-prolog-under-windows-console-transcript-and-lines/612/3 "2019-05-06T08:59:08Z")

</div>

Thanks a lot,

I am now able to both save the transcript (via protocol/1 and noprotocol/0) and increase the max number of save lines by editing the registry entry “SaveLines” in “HKEY\_CURRENT\_USER\Software\SWI\Swipl-win\Console” (In my Windows 10 Pro, the registry entry is situated in: “HKEY\_CURRENT\_USER\Software\SWI\Swipl-win\Console” instead of “HKEY\_LOCAL\_MACHINE\Software\SWI\Prolog”).

Amine.
