Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > muc.lists.netbsd.tech.userlevel > #11716

editline's readline compat

From Greg Troxel <gdt@lexort.com>
Newsgroups muc.lists.netbsd.tech.userlevel
Subject editline's readline compat
Date 2026-01-25 13:48 -0500
Organization Newsgate at muc.de e.V.
Message-ID <rmildhlzfyh.fsf@s1.lexort.com> (permalink)

Show all headers | View raw


(I've tried to find documentation and failed.)


I'm building a rc of mosquitto, an mqtt broker.  It is written to use
readline calls because that's normal.  But for licensing reasons, it
uses as an implementation editline aka libedit, via the portable version
of NetBSD's libedit, described in editline(3).

With portable editline, the readline wrapper is accessed by including
$prefix/editline/readline.h and then linking with lib/libedit.so.

But in NetBSD, one includes /usr/include/readline/readline.h and then
links with libedit.  Not with libreadline.

Programs thus should handle

  native NetBSD editline's readline compat
  portable editline's readline compat
  actual readline

questions:

  - Am I confused?

  - Is there standard cmake FindReadlineViaEditLine that does this?

  - Is there some other approach?

  - Is this really not documented?

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de

Back to muc.lists.netbsd.tech.userlevel | Previous | NextNext in thread | Find similar


Thread

editline's readline compat Greg Troxel <gdt@lexort.com> - 2026-01-25 13:48 -0500
  Re: editline's readline compat Mouse <mouse@Rodents-Montreal.ORG> - 2026-01-25 16:08 -0500

csiph-web