tech-kern archive

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

Setting TERM in single user mode



        Currently if a NetBSD system boots into single user mode
        TERM is left unset, even when /etc/ttys has a valid value,
        which is annoying for no good reason.
        annoying.

        Proposal:
         - Add 'constty' to /etc/ttys with the same value as 'console'
         - Add a '/.profile' file with: TERM="$(tset -)"

        Notes:
         - 'constty' is a variation on console which stops terminal
           output being 'stolen' by the TIOCCONS ioctl. It is used
           in single user mode, and *should* have an entry in
           /etc/ttys anyway
         - The /.profile changes *only* affect single user mode,
           as only in that case will the home directory be '/'
         - Many ports set the console terminal type to 'unknown',
           this will not affect them

        I'd also like to default to setting '-o emacs' to enable
        command line editing by default when in single user mode
        *and a terminal type has been set*, but please treat that
        as a separate issue when replying.

        What do people think.


Home | Main Index | Thread Index | Old Index