Re: termcap under single luser

From: Alex Kozlov <spam_at_rm-rf.kiev.ua>
Date: Tue, 5 Aug 2008 07:47:42 +0300
On Tue, Aug 05, 2008 at 07:56:28AM, Antony Mawer wrote:
> Bernd Walter wrote:
> > On Mon, Aug 04, 2008 at 09:58:20AM -0300, Carlos A. M. dos Santos wrote:
> >> On Mon, Aug 4, 2008 at 1:11 AM, Randy Bush <randy_at_psg.com> wrote:
> >>> if i boot single luser, /rescue/(vi|ed) etc barf because
> >>>
> >>>   lrwxrwxrwx  1 root  wheel  23 Oct 11  2007 /etc/termcap_at_ ->
> >>> /usr/share/misc/termcap
> >>>
> >>> is not mounted.
> >>>
> >>> should i
> >>>
> >>>  rm /etc/termcap
> >>>  cp /usr/share/misc/termcap /etc
> >>>
> >>> post build, or is there something else i am missing?
> >>>
> >>> randy
> >> You can ever resort to ed if you can not mount /usr. It saved my neck
> >> several times!
> > 
> > I almost always use ed in single user mode, because I'm using serial
> > consoles and I'm too lazy to setup my terminal environment each time.
> > But I clearly vote for termcap in /etc.
> > It is just a about 200k, while /etc is already almost 2M and /boot
> > is much bigger.
> 
> Isn't there a minimalistic termcap file that is used by NanoBSD or 
> PicoBSD (I forget where I stumbled across it once upon a time...)? Maybe 
> this is a nice compromise, depending on what 'minimalistic' happens to 
> omit...
cp src/release/picobsd/mfs_tree/etc/termcap /etc/termcap.small
TERMCAP=/etc/termcap.small

Or if You need only vi: TERMCAP="cons25:cm=\E[%i%d;%dH"; TERM=cons25


--
Adios
Received on Tue Aug 05 2008 - 03:15:16 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:33 UTC