I would have said that this works...
Maybe not exactly what you want ...
http://fricas.github.io/faq.html#how-can-i-record-console-output
(9) -> )set message prompt none
)spool filename.txt
x
(9) [particular = [- 2, 2, 0], basis = [[1, - 2, 1]]]
Type: Record(particular:
Union(Vector(Fraction(Integer)),"failed"),basis:
List(Vector(Fraction(Integer))))
)spool )off
)set message prompt step
But strange, when I do this, I see only the input lines recorded.
Do we have a bug or is it just my system?
==================
You should forget about using "File(T)" for what you want. As you can
see File(T) only gives a Lisp-like output that you can read back into
FriCAS, but you want probably something else.
I am not completely sure about the "something else" might mean, but you
could do the following:
========
fn := filename("", "sols", "out")$FileName
f := open(fn, "output")$TextFile
x := solve ([[1 ,2 ,3] ,[2 ,3 ,4] ,[3 ,4 ,5]] ,[2 ,2 ,2])
for line in lines(formatExpression(x::OutputForm)$Format1D) repeat _
writeLine!(f,line))
close! f
========
Instead of Format1D you can also choose Format2D, FormatMathJax, or
FormatLaTeX.
Ralf