Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > General

Reply
 
Thread Tools Display Modes
  #1  
Old 06-16-2020, 02:29 AM
walkcat walkcat is offline
Registered User
 
Join Date: Jun 2020
Posts: 3
Question the color of keyword higlighting in vi

Hi,
I am using the securecrt 8.7.2 x64 on Windows 10.
Settings:
Emulation:
Terminal: XTerm
Color Mode: "ANSI with 256color" & "use color scheme" enabled.
Appearance:
Current color scheme: White / Black

Then connect to a linux server and open a text file with vi command.
In vi, search a keyword, the keyword will be highlighted.
However it is hard to read. Because the words color is still white, not become black.

Please see the picture:
Attached Images
File Type: jpg ForThrPic14209_01.jpg (65.2 KB, 103 views)

Last edited by jdev; 06-16-2020 at 07:18 AM. Reason: Please don't use external file sharing sites for graphics. Click 'Manage Attachments' & upload your pics. Then, right-click on attachment links & copy the link for embedding pics in your post.
Reply With Quote
  #2  
Old 06-16-2020, 04:53 PM
berdmann berdmann is offline
VanDyke Technical Support
 
Join Date: Aug 2017
Posts: 352
Hi walkcat,

The "White / Black" color scheme does not define any other colors outside of the foreground/background, so all of the other ANSI colors are defaulted to the Standard ANSI color palette. So, when your foreground color (white) is displayed with a search background color of Yellow (as your vi configuration has defined), it becomes unreadable.

One solution is to create (in Global Options -> Terminal -> Advanced) a custom color scheme based on "White / Black" (perhaps named "W / B Custom"), and set the color palette for the custom color scheme to "Invisibone", which defines Yellow as more of a salmon/skin tone on which a white foreground is more visible. For example:
Does that work better for you?

Please refer to our "Color Schemes and ANSI Color palettes" YouTube video, which shows how to modify a color when it's part of a color palette, and how to create a custom color scheme based on one you already sort-of like, but maybe want to adjust.

https://youtu.be/SZLbBsp3914
Attached Images
File Type: png CustomColorScheme.png (15.5 KB, 84 views)
__________________
Thanks,
--Brittney

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 06-17-2020, 01:41 AM
walkcat walkcat is offline
Registered User
 
Join Date: Jun 2020
Posts: 3
Hi Sir,
Thanks for the suggestion.
The solution is a workaround to change the background color of keyword to other color instead of yellow. I have tried it and yes it can make the keyword readable but still not what I want.

Actually I also have another Win10 computer where the securecrt 7.3.4 installed. In that computer, the keyword highlight in vi, the word color will become black other than white even through the highlight background is yellow. That make it easy readable. Please see the picture.

Both securecrt color settings are same. The only difference is the version.
Attached Images
File Type: jpg ForThrPic14209_02.jpg (154.1 KB, 73 views)

Last edited by cboyack; 06-17-2020 at 07:24 AM. Reason: Again, please don't use external file sharing sites for graphics. Click 'Manage Attachments' & upload your pics. Then, right-click on attachment links & copy the link for embedding pics in you
Reply With Quote
  #4  
Old 06-17-2020, 11:58 AM
berdmann berdmann is offline
VanDyke Technical Support
 
Join Date: Aug 2017
Posts: 352
Hi walkcat,

I would like to gather some additional information from you about the behavior.

Does the issue only occur with this particular remote host, or with multiple hosts?

I would like to review the session ini file from your 7.3.4 version as well as the corresponding session ini file from 8.7.2.

Your session.ini files live in your Config folder, within the "Sessions" subfolder. The path to your Config folder can be reviewed in Options -> Global Options -> Configuration Paths.

Please remove any stored sensitive data prior to providing the ini files. Please send an email to support@vandyke.com with ATTN: Brittney, Forum Thread 14209 as the subject.
__________________
Thanks,
--Brittney

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #5  
Old 06-17-2020, 09:18 PM
walkcat walkcat is offline
Registered User
 
Join Date: Jun 2020
Posts: 3
Hi Sir,
Mail sent.

8.7.2 picture:


7.2.3 picture:
Attached Images
File Type: jpg ForThrPic14209_03.jpg (27.8 KB, 55 views)
File Type: jpg ForThrPic14209_04.jpg (23.3 KB, 55 views)

Last edited by jdev; 06-18-2020 at 07:23 AM.
Reply With Quote
  #6  
Old 06-18-2020, 11:13 AM
jdev's Avatar
jdev jdev is offline
VanDyke Technical Support
 
Join Date: Nov 2003
Location: Albuquerque, NM
Posts: 998
Dear "walkcat",

Please discontinue the practice of using external (non VanDyke Software) file/graphics websites to include pictures in your forum postings.

Please follow the approved practice of including graphics in your posts as described in this article:
How-To: Include and Embed Images in a Forum Posting
Thank you!
--Jake
__________________
Jake Devenport
VanDyke Software
Technical Support
YouTube Channel: https://www.youtube.com/vandykesoftware
Email: support@vandyke.com
Web: https://www.vandyke.com/support
Reply With Quote
  #7  
Old 06-18-2020, 12:14 PM
berdmann berdmann is offline
VanDyke Technical Support
 
Join Date: Aug 2017
Posts: 352
Hi walkcat,

I responded to you via email, but for the sake of the forum community we can continue troubleshooting the issue here if you prefer.

Before running 'vi', what are the results of the following command when you are connected to the host with version 8.7.x?

Code:
echo $TERM
And what are your results if you run the same command, but when connected to the same remote host with version 7.2.3?
__________________
Thanks,
--Brittney

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 06:42 PM.