Thread View: muc.lists.netbsd.tech.userlevel
5 messages
5 total messages
Started by Piotr Meyer
Sat, 17 Oct 2026 12:41
Re: A new editor
Author: Piotr Meyer
Date: Sat, 17 Oct 2026 12:41
Date: Sat, 17 Oct 2026 12:41
32 lines
2638 bytes
2638 bytes
On Fri, Oct 16, 2026 at 11:35:19AM +0000, nia wrote: > NetBSD is having an influx of new users. Some have mentioned having no > alternative screen editor to vi(1) in base is an obstacle to getting > their system configured. I've been trying to point new users to > xedit(1), but this doesn't help if they're in single-user mode or > can't get X running, or are limited to /rescue. ... > Some years ago, I was investigating text editors that take up a small > footprint that would be suitable for a rescue system. I came across > atto, a modeless public domain text editor supporting UTF-8, multiple As a long-time vim user I understood and appreciate idea of having non-modal editor in base. There is only one, very small thing that may be useful for new users, I suppose: atto is very small and it doesn't have help window, but maybe adding something like note '^X^C - exit' in status line may be worthwhile? I think that majority of users may be used to pico or nano convention (just ^X for exit). In ideal world, a short, two-line help, like that one in in pico / nano should be very useful. It helps me numerous time, when I come to system without vi(m) installed - but that may be a change that goes too far, I'm afraid. Best regards, -- Piotr 'aniou' Meyer -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: A new editor
Author: tlaronde
Date: Sat, 17 Oct 2026 15:23
Date: Sat, 17 Oct 2026 15:23
23 lines
3850 bytes
3850 bytes
> On Fri, Oct 16, 2026 at 11:35:19AM +0000, nia wrote:
> NetBSD is having an influx of new users. Some have mentioned having no
> alternative screen editor to vi(1) in base is an obstacle to getting
> their system configured. I've been trying to point new users to
> xedit(1), but this doesn't help if they're in single-user mode or
> can't get X running, or are limited to /rescue.
>
There is one "line (1D)" editor: ed(1). All the others are 2D even if
they are masquerading behind curses as console i.e. "command line"
utility and if the 2D environment is not correctly set up, you are
screwed. Ed(1) is worth mastering. And since a new user should only do
the strict minimum of editing to get things going, being only able to
do a basic editing is, altogether, not contrary to ergonomy...
--
Thierry Laronde <tlaronde +AT+ kergis +dot+ com>
http://www.kergis.com/
http://kertex.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: A new editor
Author: Crystal Kolipe
Date: Sat, 17 Oct 2026 15:30
Date: Sat, 17 Oct 2026 15:30
20 lines
2142 bytes
2142 bytes
On Sat, Oct 17, 2026 at 05:23:40PM +0200, tlaronde@kergis.com wrote: > > On Fri, Oct 16, 2026 at 11:35:19AM +0000, nia wrote: > > NetBSD is having an influx of new users. Some have mentioned having no > > alternative screen editor to vi(1) in base is an obstacle to getting > > their system configured. I've been trying to point new users to > > xedit(1), but this doesn't help if they're in single-user mode or > > can't get X running, or are limited to /rescue. > > > > There is one "line (1D)" editor: ed(1). All the others are 2D even if > they are masquerading behind curses as console i.e. "command line" > utility and if the 2D environment is not correctly set up, you are > screwed. Ed(1) is worth mastering. In case the 1D environment is not correctly set up, it's well worth mastering 'echo' and the shell redirection :-). -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: A new editor
Author: tlaronde
Date: Sat, 17 Oct 2026 16:25
Date: Sat, 17 Oct 2026 16:25
29 lines
4654 bytes
4654 bytes
On Sat, Oct 17, 2026 at 03:30:46PM -0000, Crystal Kolipe wrote:
> On Sat, Oct 17, 2026 at 05:23:40PM +0200, tlaronde@kergis.com wrote:
> > > On Fri, Oct 16, 2026 at 11:35:19AM +0000, nia wrote:
> > > NetBSD is having an influx of new users. Some have mentioned having no
> > > alternative screen editor to vi(1) in base is an obstacle to getting
> > > their system configured. I've been trying to point new users to
> > > xedit(1), but this doesn't help if they're in single-user mode or
> > > can't get X running, or are limited to /rescue.
> > >
> >
> > There is one "line (1D)" editor: ed(1). All the others are 2D even if
> > they are masquerading behind curses as console i.e. "command line"
> > utility and if the 2D environment is not correctly set up, you are
> > screwed. Ed(1) is worth mastering.
>
> In case the 1D environment is not correctly set up, it's well worth mastering
> 'echo' and the shell redirection :-).
The shell is 1D 8-^. If nothing recognizes an end of line, you are
really on for quite an ordeal...
--
Thierry Laronde <tlaronde +AT+ kergis +dot+ com>
http://www.kergis.com/
http://kertex.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: A new editor
Author: Greg Troxel
Date: Sat, 17 Oct 2026 16:41
Date: Sat, 17 Oct 2026 16:41
30 lines
3069 bytes
3069 bytes
Crystal Kolipe <kolipe.c@exoticsilicon.com> writes: > On Sat, Oct 17, 2026 at 05:23:40PM +0200, tlaronde@kergis.com wrote: >> > On Fri, Oct 16, 2026 at 11:35:19AM +0000, nia wrote: >> > NetBSD is having an influx of new users. Some have mentioned having no >> > alternative screen editor to vi(1) in base is an obstacle to getting >> > their system configured. I've been trying to point new users to >> > xedit(1), but this doesn't help if they're in single-user mode or >> > can't get X running, or are limited to /rescue. >> > >> >> There is one "line (1D)" editor: ed(1). All the others are 2D even if >> they are masquerading behind curses as console i.e. "command line" >> utility and if the 2D environment is not correctly set up, you are >> screwed. Ed(1) is worth mastering. > > In case the 1D environment is not correctly set up, it's well worth mastering > 'echo' and the shell redirection :-). True, but back when I was walking uphill both ways, the only editor was ed(1) (Sixth Edition Unix, 1977). It worked fine on a printing terminal. If you can type shell commands, it works -- no curses needed. It's in /bin so you can use it to fix fstab so you can mount /usr. But it is not beginner-friendly at all. The only diagnostic is '?', and it only prints lines when you explicitly ask. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads