LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   strange characters in vim (https://www.linuxquestions.org/questions/linux-from-scratch-13/strange-characters-in-vim-4175728893/)

derguteweka 09-12-2023 08:49 AM

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

pan64 09-12-2023 08:56 AM

try to set the variable TERM to something (like xterm, or similar)

derguteweka 09-12-2023 10:30 AM

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


All times are GMT -5. The time now is 04:07 PM.