6
$\begingroup$

Is it possible to set the number of columns in Mathematica's text-based interface? Or disable word wrapping in the text-based interface ?

Specifically, my concern is output from MatrixForm and TableForm, which wraps output at about 85 columns. It seems as if the values were hardcoded in 1992.

I use the text based interface within an emacs shell buffer.

EDIT: The answer below that I checked green solves this problem in a few tests of commands that give long output, such as MatrixForm.

$\endgroup$
1
  • 1
    $\begingroup$ Not 1992, Perhaps about five years earlier than that. $\endgroup$
    – m_goldberg
    Commented Jul 17, 2014 at 18:26

1 Answer 1

7
$\begingroup$

I don't use the command line and haven't tried this but I suspect that

SetOptions["stdout", PageWidth -> Infinity]

may be what you are after.

$\endgroup$
1
  • $\begingroup$ +1. It also affects the width of the standard InputForm output in the FrontEnd. $\endgroup$ Commented Jul 23, 2014 at 2:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.