bug-readline
[Top][All Lists]
Advanced

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

Re: crash in rl_prep_terminal() without rl_outstream


From: Chet Ramey
Subject: Re: crash in rl_prep_terminal() without rl_outstream
Date: Tue, 17 Nov 2020 14:33:56 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.4.3

On 11/16/20 6:23 PM, Nick Black wrote:
Chet Ramey left as an exercise for the reader:
Are you calling rl_prep_terminal directly, or letting readline call it for
you? If you call it before readline can initialize, or are calling it
without calling rl_initialize, all bets are off.

Ahhh, that's almost certainly it, then. I'm not calling
rl_initialize() because I'm using readline in conjunction with
another character graphics library. This had once worked, but if
it's not supported behavior, I might need change how I do
things.

Are you calling readline() or using the callback interface? If
you're using the latter, you should call rl_initialize for more
reasons than to set rl_outstream.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

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