texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] 1.0.1.23


From: Joris van der Hoeven
Subject: Re: [Texmacs-dev] 1.0.1.23
Date: Mon, 15 Sep 2003 19:27:56 +0200 (CEST)

On Sun, 14 Sep 2003, Martin Costabel wrote:
> On Mac OSX, the new version now works with guile-1.6. It is only
> necessary to set the path to guile during compile-time. This is very easy.
>
> Maxima etc sessions now work for the first time with guile-1.6.

Cool, so that bug has been fixed.

> OTOH, shell sessions do not work. "Do not work" means that the line
> "Shell session inside TeXmacs" is shown and then nothing happens any
> more. There is no prompt, and I can type commands, but they are only
> shown as text, not executed. When I choose "Interrupt session" from the
> Session menu, TeXmacs hangs completely.
>
> Going back to older versions, I see that this is not a guile problem,
> because shell sessions didn't work in 1.0.1.20 with guile-1.4 either.
> They work, however, with 1.0.1.16. So it seems that the new plugin code
> for shell sessions in tm_shell.cpp never worked on OSX.

Thanks for retracing the roots of evil.

> Question: When I compile just tm_shell.cpp and run the executable from
> the command line, is this supposed to give an interactive shell session
> or not? I don't know enough about pipes and forks to see this from the code.

It is supposed to give an interactive shell session with escape codes.
In order to get human understandable escape codes, you should change

#define DATA_BEGIN   ((char) 2)
#define DATA_END     ((char) 5)
#define DATA_ESCAPE  ((char) 27)
//#define DATA_BEGIN   "[BEGIN]"
//#define DATA_END     "[END]"
//#define DATA_ESCAPE  "[ESCAPE]"

to

//#define DATA_BEGIN   ((char) 2)
//#define DATA_END     ((char) 5)
//#define DATA_ESCAPE  ((char) 27)
#define DATA_BEGIN   "[BEGIN]"
#define DATA_END     "[END]"
#define DATA_ESCAPE  "[ESCAPE]"





reply via email to

[Prev in Thread] Current Thread [Next in Thread]