Sujet : Re: Running an editor from ANSI C
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.lang.cDate : 06. Jun 2024, 05:40:36
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v3rek5$1c4i5$1@dont-email.me>
References : 1 2 3
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 06.06.2024 04:47, Malcolm McLean wrote:
>
The concept is an ANSI C only shell.
I can write my own text editor on top of Posix easily enough.
But I want to implent an "edit" command so that users can edit files.
And you just can't edit files without non-ASCII keys.
What do you mean here? You certainly can edit files with Vi-like
ASCII-key commands (as, for example, some shells do to allow edit
their history file).
So at the moment I call system with nano, and it wotks. But it's a
clunky solution.
Nano at least relies on some control-keys. (Is that no issue?)
There's a couple of professional systems that allow to spawn any
editor (that fits basic calling conventions) that suits you, which
is a Good Thing. It's IMO generally a good approach to not force
folks to use some specific (or even proprietary) editor in context
of an application. (Not that this design practice would be widely
observable in practice.)
Janis