tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Setting TERM in single user mode



From: Robert Elz <kre%munnari.OZ.AU@localhost>
  |    - Add a '/.profile' file with: TERM="$(tset -)"

That won't work, tset is in /usr/bin which you cannot assume will
exist in single user mode.

Good point. Assume we wrap it in [ -x /usr/bin/tset ]

Frankly, I don't think that anyone who is unable to set TERM manually
to the correct value in single user mode should ever be allowed near a
single user mode console...   This is probably one of those trivial
little hurdles that is best left in place, it keeps away the incompetent
(who also don't know how to use ed to make changes, or how to mount -u -w
or
any of the other stuff that tends to need to be done if you actually need
to work in single user mode, more than typing "fsck")

I think filesystems being mounted readonly is a much more appropriate
barrier at thiat point. Unset TERM is more at the annoyance level and
doesn't affect so many better ways to hose a system (mv, rm)

  |   I'd also like to default to setting '-o emacs' to enable

If you were going to set anything, it should be -o vi - to avoid the
religious arguments, perhaps just leaving it as it is (unset) works
well enough.

I'm a big vi user, but I have to admit most people find the emacs command
line editing more obvious...



Home | Main Index | Thread Index | Old Index