tech-kern archive

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

Re: Setting TERM in single user mode



    Date:        Mon, 6 Oct 2008 13:10:08 +0100 (BST)
    From:        David Brownlee <abs%absd.org@localhost>
    Message-ID:  <alpine.NEB.1.10.0810061255440.1401@localhost>

  |     Proposal:
  |      - Add 'constty' to /etc/ttys with the same value as 'console'

That seems reasonable.

  |      - 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.

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'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.

kre



Home | Main Index | Thread Index | Old Index