Liste des Groupes | Revenir à cl c |
On 06.06.2024 04:47, Malcolm McLean wrote:This is the current code for the "edit" command.What do you mean here? You certainly can edit files with Vi-like>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.
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 aNano at least relies on some control-keys. (Is that no issue?)
clunky solution.
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
Les messages affichés proviennent d'usenet.