On 03/15/2018 05:15 PM, Laznovsky Michael (PSI) wrote:
> Hi Ben- just a belated comment... I took a look at linenoise, and apparently it does
> malloc/memmove/realloc (and expects the caller to free() each line of input)...is that
> something you want in EPICS? Hasn't that been a problem in the past in other areas?
>
> Perhaps not a big deal for relatively low-traffic console input, but may be one of
> those things that can creep up on you later, if eg. a large amount of input is piped
> in or something.
AFAIU, when input is redirected (in or out), EPICS automatically
switches to a "dumb mode" that circumvents any EPICS_READLINE
functionality, however implemented.
Anyway, it turned out that using linenoise has another disadvantage, at
least with the way we set up our IOCs: The log files stored by the
conserver daemon now contain all the control codes and repeated
rendering of the command line, which makes them nearly unreadable for
us. This is why I have, for the moment, abandoned the idea. It might be
possible to work around this issue with a filter somewhere that
understands and interprets all the control codes, too. This requires
duplicating the work that is done by (and the code implementing) the
linenoise (or any other) command line library, which is why I don't
particularly like the idea.
Cheers
Ben
--
"Make it so they have to reboot after every typo." ― Scott Adams
Attachment:
signature.asc
Description: OpenPGP digital signature
- References:
- bundling linenoise with base Benjamin Franksen
- RE: bundling linenoise with base Laznovsky Michael (PSI)
- Navigate by Date:
- Prev:
Re: MSI Makefile Madness Benjamin Franksen
- Next:
Re: EPICS R3.15.5 Patches slated for the "Known Problems" Page. Andrew Johnson
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
<2018>
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
RE: bundling linenoise with base Laznovsky Michael (PSI)
- Next:
Re: EPICS 7 Documentation or just README.examples for the V4 part. Williams Jr., Ernest L.
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
<2018>
2019
2020
2021
2022
2023
2024
|