[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: question about terminal mode after fork and before exec
From: |
Thomas Dickey |
Subject: |
Re: question about terminal mode after fork and before exec |
Date: |
Fri, 22 Nov 2002 16:02:18 -0500 |
User-agent: |
Mutt/1.3.27i |
On Tue, Nov 19, 2002 at 02:06:51PM -0500, Lucas Gonze wrote:
>
> a question for ncurses gurus:
>
> My app has an ncurses window running. The main process does a fork(),
> redirects stderr, and then execvp(). If I write to stderr after the fork
> and before the exec, the output text is wrappered in escape codes that I
> assume are related to window handling. This text is redirected to a log
> file, so the escape codes in the log file are a bug.
>
> An example of the output text is:
> ^MESC[38BESC[1m> execvp: No such file or directory^MESC[m
actually the escape sequences look as if they're coming from your shell prompt.
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net