🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.ti.explorer
1 messages
1 total messages Started by "Tihamer T. Toth-Fejel" Wed, 27 Sep 1989 13:02
PPrinting to a String
#80
Author: "Tihamer T. Toth-Fejel"
Date: Wed, 27 Sep 1989 13:02
25 lines
1166 bytes
	I would like to be able to pretty print an sexp into a
	string, as opposed to into a stream. How can I do this
	(on a TI Explorer)? Simply giving NIL as the stream to
	pprint does not work.
	
		Thanks for any suggestions,
			Mark


Please let me know when you get it done.
I've wanted to know how to do the same thing.

OOPS!  Hold the presses! I just got an idea!
(two minutes later)
Yep, see pg. 5-8 of Lisp I/O Reference on write-to-string
specifically:
(write-to-string sexpr :pretty t)
Does just what you want it to.


internet:  ttf@iti.org     (Tihamer T. Toth-Fejel)
Industrial Technologies Institute, Ann Arbor, Michigan 48106
(313) 769-4248 or 4345     home: (313) 622-4741
*----*----*----*----*----*----*----*----*----*----*----*----*----*
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads