LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 09-12-2023, 08:49 AM   #1
derguteweka
Member
 
Registered: Sep 2018
Distribution: BLFS
Posts: 74

Rep: Reputation: 21
strange characters in vim


Moin,

I'm currently building LFS-12. Hostsystem is BLFS-11.1.
Since having installed vim in chapter 8.71 i'm able to use it within the chroot, but i'm experiencing a new, unexpected "feature", i'm not having on my host system with my host vim:
e.g. i'm starting to edit /etc/fstab by typing:
Code:
vi /etc/fstab
Then the first line (or wherever vim places the "cursor" looks like this:
Code:
[?4min /etc/fstab
instead of this:
Code:
# Begin /etc/fstab
The contents of the file are not harmed by this, it just looks weired and if i want to see, what it was, i'll have to place the cursor somewhere else and leave vim, then start it new (then the strange chars are somewhere else).
Also after leaving vim, the bash prompt has also the unusual characters:
Code:
[>4;m(lfs chroot) root:/etc#
(next promts in the bash are not affected)

Anyone else who has observed this? What's going wrong here, and how can i get rid of it?

cheers,
WK
 
Old 09-12-2023, 08:56 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,852

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
try to set the variable TERM to something (like xterm, or similar)
 
1 members found this post helpful.
Old 09-12-2023, 10:30 AM   #3
derguteweka
Member
 
Registered: Sep 2018
Distribution: BLFS
Posts: 74

Original Poster
Rep: Reputation: 21
Moin,

Thanks for your suggestion!
$TERM was originally set to "xterm" (in both of my host and new system).
Just copying the value of $TERM from the host to the new LFS system seems to be intended by the LFS authors - e.g. in chapter 4.4 and also when entering chroot (cpt. 7.4).
But in my case it seems to be better to use now "linux" instead of "xterm". At least this fixes my described behaviour.

cheers,
WK
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LFS10: strange characters in vim via ssh derguteweka Linux From Scratch 2 01-09-2021 07:44 AM
[SOLVED] Fedora shows 'man vim' but when execute 'vim' got "bash: vim: command not found..." ? flash_os Linux - Newbie 19 01-03-2015 11:56 PM
Switching from vim to vim -g from inside vim iDragoon Linux - Software 4 05-15-2009 11:46 AM
Editor comparison: vim VS vim-lite, Cleaning vim Ruler2112 *BSD 4 04-13-2009 04:26 PM
How to modify the names of files and replace characters with other characters or symb peter88 Linux - General 2 12-10-2006 03:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration