spurious characters to stdout
Sepp Käsbauer
cho-00047 at chiemgau-online.de
Sat Mar 1 07:50:05 CST 2008
Am Freitag, 29. Februar 2008 schrieb John W. Eaton:
> On 29-Feb-2008, Sepp Käsbauer wrote:
> | Am Freitag, 29. Februar 2008 schrieb pieters:
> | > Octave prints 8 characters to stdout before any other output. Some of
> | > these characters are non-printable and I have seen any spurious
> | > characters during normal octave sessions. However, when I call an
> | > octave script from within another script and further process the
> | > output to stdout, the 8 spurious characters show up. I always get the
> | > same sequence of characters, namely: <ESC>[?<US><RS>34h, where <ESC> is
> | > ASCII 27, <US> is ASCII 31, and <RS> is ASCII 30. I have observed the
> | > same sequence of characters with and without the welcome message (i.e.,
> | > with and without the -q command-line option).
> | >
> | >
> | > Repeat-By:
> | > ---------
> | > When I call octave like so:
> | > echo exit|octave -q>output.txt,
> | > the 8 characters are in the output.txt file.
> |
> | I can confirm this behaviour.
> | It has nothing to do with octave. (here octave-3.0.0)
> | To have a litle workaround you have to unset $TERM like:
> |
> | $ TA=$TERM
> | $ export TERM=""
> | $ echo exit|octave -q>output.txt
> | $ export TERM=$TA
> |
> | In this case output.txt is empty.
>
> What is in TERM before you reset it to ""?
xterm
>
> What terminal application are you using?
Konsole 1.6.6 (KDE 3.5.9 openSUSE 10.3)
>
> What version of readline do you have?
libreadline5-5.2-20
kas at laptop:~> locale
LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=
>
> jwe
Sepp
More information about the Bug-octave
mailing list