LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-22-2019, 08:22 AM   #1
dalacor
Member
 
Registered: Feb 2019
Distribution: Slackware
Posts: 172

Rep: Reputation: Disabled
Upgrading to Slackware Current breaks dir colours in terminal and vim scroll down


I needed to upgrade to Slackware Current to address a problem caused by an older version of some of the Slackware software.

When I upgrade coreutils to the latest version in current from Slack 14.2 - I lose the colours in terminal view(folders, executables, files etc view) when I type dir. ls -a still shows the colours. Using the old or new config file seems to make no difference to showing the colours unless I am missing a config file.

Anyone have any idea how to fix this?

When I upgrade vim to the latest version in Current from Slack 14.2 - I can no longer scroll down in config files using vim. I can scroll up, but not down?

However, this is relevant to when I use putty and ssh to connect to the computer. If I am logging onto the actual computer using attached mouse and keyboard, I cannot scroll at all (in slack 14.2 or current) using vim in a config file. If anyone has any idea why scrolling does not work when I am physically logged onto the machine, but does work in remote putty mode, that would be great. I setup my mouse as usb mouse in slackware install setup.

As I very rarely need to logon to the actual machine, it's not something that I want to spend time on troubleshooting, but if its a quick fix.

In addition, I am happy to not upgrade coreutils and vim and just use the old version and upgrade everything else if its going to take a lot of time to find out why the new versions are broken in slackware current. I can wait till slackware 15 tbh.

Thank you
 
Old 02-22-2019, 09:02 AM   #2
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 932

Rep: Reputation: 522Reputation: 522Reputation: 522Reputation: 522Reputation: 522Reputation: 522
I think 'dir' doesn't show any colours because of this in -current.
Code:
Wed Nov 29 08:15:09 UTC 2017
a/coreutils-8.28-x86_64-2.txz:  Rebuilt.
  Removed ancient (1992) aliases "dir, vdir, d, v" from the profile scripts.

I can scroll files in vim with ctrl+f and 'j' in -current, maybe you have some
configuration in .vimrc for the old vim version.
 
Old 02-22-2019, 09:06 AM   #3
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
It's not clear to me from your post. Did you upgrade the entire system to Slackware -current, or just a few packages?
 
Old 02-22-2019, 10:28 AM   #4
dalacor
Member
 
Registered: Feb 2019
Distribution: Slackware
Posts: 172

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Paulo2 View Post
I think 'dir' doesn't show any colours because of this in -current.
Code:
Wed Nov 29 08:15:09 UTC 2017
a/coreutils-8.28-x86_64-2.txz:  Rebuilt.
  Removed ancient (1992) aliases "dir, vdir, d, v" from the profile scripts.

I can scroll files in vim with ctrl+f and 'j' in -current, maybe you have some
configuration in .vimrc for the old vim version.
I will have a look at the profile scripts for coreutils then. Thank you.

Sorry I should have been more clear - the MOUSE scroll button will scroll up in latest vim, but will not scroll down. I have not tried using the keyboard to scroll.
 
Old 02-22-2019, 10:30 AM   #5
dalacor
Member
 
Registered: Feb 2019
Distribution: Slackware
Posts: 172

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by montagdude View Post
It's not clear to me from your post. Did you upgrade the entire system to Slackware -current, or just a few packages?
I have upgraded everything (including Kernels) to latest of the greatest. Everything works except coreutils and vim as described.

I think it's unwise to only upgrade some packages as this is more likely to break dependencies etc. So everything has been upgraded bar those two packages.
 
Old 02-22-2019, 10:37 AM   #6
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by dalacor View Post
I have upgraded everything (including Kernels) to latest of the greatest. Everything works except coreutils and vim as described.

I think it's unwise to only upgrade some packages as this is more likely to break dependencies etc. So everything has been upgraded bar those two packages.
Okay, that's what I thought you meant. vim probably wouldn't even work at all if you just directly upgraded it in 14.2 using the binary package from -current.
 
Old 02-22-2019, 10:59 AM   #7
dalacor
Member
 
Registered: Feb 2019
Distribution: Slackware
Posts: 172

Original Poster
Rep: Reputation: Disabled
I have upgraded coreutils to the latest and inspected the coreutils-dircolors files in etc/profile.d and discovered the aliases there in the old version over new version. I now understand that dir is effectively an alias pointing to ls and it just makes sense get into the habit of using ls otherwise I will have this issue everytime I upgrade and using ls does exactly what dir does. I am just used to dir from windows.

So I just have to solve the mouse not scrolling down problem in putty, but also see if I can find out why mouse scroll does not work at all when logged onto the physical machine. Thanks
 
Old 02-22-2019, 12:03 PM   #8
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by dalacor View Post
I have upgraded coreutils to the latest and inspected the coreutils-dircolors files in etc/profile.d and discovered the aliases there in the old version over new version. I now understand that dir is effectively an alias pointing to ls and it just makes sense get into the habit of using ls otherwise I will have this issue everytime I upgrade and using ls does exactly what dir does. I am just used to dir from windows.

So I just have to solve the mouse not scrolling down problem in putty, but also see if I can find out why mouse scroll does not work at all when logged onto the physical machine. Thanks
When I first started using Linux, I had to set up an alias for cd.. to point to "cd .." because of dos habits as well. Eventually, I determined it was just much easier to force myself to learn the linux equivalent commands so I didn't have to worry about aliases being set up or running into issues when using someone else's system.
 
Old 02-23-2019, 02:50 PM   #9
dalacor
Member
 
Registered: Feb 2019
Distribution: Slackware
Posts: 172

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
When I first started using Linux, I had to set up an alias for cd.. to point to "cd .." because of dos habits as well. Eventually, I determined it was just much easier to force myself to learn the linux equivalent commands so I didn't have to worry about aliases being set up or running into issues when using someone else's system.
Yes I agree, which is why I will stop using dir and move to ls. In my defence I did not realise until now that dir was not actually a Linux command as it has worked for years!

After much hunting around, I have found no solution to the vim mouse scroll down problem in latest vim version and can't find any posts, google or otherwise regarding mouse scroll when logged onto actual machine. So I will leave the question open, but I am not worried as I will just wait till Slackware 15 and see if mouse scrolling issues are resolved then.
 
Old 02-23-2019, 03:37 PM   #10
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Quote:
Originally Posted by dalacor View Post
I have upgraded coreutils to the latest and inspected the coreutils-dircolors files in etc/profile.d and discovered the aliases there in the old version over new version. I now understand that dir is effectively an alias pointing to ls and it just makes sense get into the habit of using ls otherwise I will have this issue everytime I upgrade and using ls does exactly what dir does. I am just used to dir from windows.

So I just have to solve the mouse not scrolling down problem in putty, but also see if I can find out why mouse scroll does not work at all when logged onto the physical machine. Thanks
dalacor --

I can't provide a solution but one place to start ...

Which Putty TERM are you using ?

The two relevant Putty Settings Screens are [Terminal]->[Keyboard] and [Connection]->[Data]

See the Attachments ...

The Terminal Types have to match exactly or FunKeys won't work in our Legacy App ...

HTH

-- kjh
Attached Thumbnails
Click image for larger version

Name:	Putty-ChangeSettings-Keyboard.PNG
Views:	32
Size:	23.8 KB
ID:	29901   Click image for larger version

Name:	Putty-Connection-Data.PNG
Views:	24
Size:	21.6 KB
ID:	29902  
 
Old 02-23-2019, 04:40 PM   #11
dalacor
Member
 
Registered: Feb 2019
Distribution: Slackware
Posts: 172

Original Poster
Rep: Reputation: Disabled
Unless I am misunderstanding you, the issue is not the keyboard. The issue is the mouse unless changing the keyboard settings affects the mouse when upgrading vim etc?

For the moment I am going to have to leave the mouse issues as I have to get started on setting up the filtering system which was the whole reason I upgraded Slackware to current. So I will come back to the mouse scroll issue in a couple of weeks as I need vim a lot in the next couple of weeks.

I use putty on windows. But I have not changed any settings in putty and never had problems with slackware 14.2 - problems only started with current. But interesting knowing about the settings for keyboard there. My keyboard is set at default - Esc, not linux. But it's been like that for the last 5 years!
 
Old 02-24-2019, 04:02 AM   #12
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
dalacor --

1. Some Terminals don't support a Mouse ( VT100, SCO, WYSE60 ) so I was wondering if maybe the new vim 'fixed' something for you by ignoring mouse events for Terminals without mice

2. The Putty Connection Data Field MAY ( should ) affect the TERM environment Variable for your Linux Login Session ( it does set TERM for SSH Sessions ).

You can check it on the Linux side: echo $TERM

We've had issues for years where Users set up mismatched Keyboard -and- Putty Connection Data Settings -- Function Keys may not work with some combinations.

Like I said ... I don't have a solution, just a place to start looking ...

-- kjh

Last edited by kjhambrick; 02-24-2019 at 04:04 AM.
 
Old 02-24-2019, 10:32 AM   #13
dalacor
Member
 
Registered: Feb 2019
Distribution: Slackware
Posts: 172

Original Poster
Rep: Reputation: Disabled
It's a relevant point. I will investigate this when I get back to playing with vim. I am working on e2guardian at the moment. Thanks
 
Old 02-21-2020, 11:38 AM   #14
dalacor
Member
 
Registered: Feb 2019
Distribution: Slackware
Posts: 172

Original Poster
Rep: Reputation: Disabled
I am closing this question because I am now using ls command which works perfectly. As for the mouse scroll up down issue - this seems to have been resolved after another round of Slackware updates. Presumably there was some issue with the Vim version that I upgraded to last year which has now been resolved in the latest vim release?

However, this only works for putty sessions. Logging on to the actual machine - the mouse scroll still does not work. However this is not an issue as I never logon to the actual physical machine.

Thanks for the help on this question.
 
Old 02-21-2020, 12:10 PM   #15
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,572

Rep: Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905
Vim and gvim are working fine for me and also with correct syntax highlighting. Do you have some old config somewhere that's corrupting things?
 
  


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
[SOLVED] BASH: how to remove space between dir/ dir and dir/ filename (bucket full of fixing needed) BW-userx Programming 2 11-08-2018 06:49 PM
copying files from home dir to another dir from another dir in a lower dir chomito44 Linux - General 5 10-19-2013 06:18 PM
tar dir and sub dir removing files but not existing not empty dir j-me Linux - General 2 08-12-2013 11:37 AM
exclude parameter of rsync- 'dir' vs "dir" vs dir rng Linux - General 5 06-13-2012 01:47 AM
Command to display /dir, /dir/sub, /dir/sub/files knockout_artist Linux - Newbie 9 10-25-2007 02:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:02 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