Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Increasing the font size in ViewNow when debugging in Visual COBOL for Eclipse

Increasing the font size in ViewNow when debugging in Visual COBOL for Eclipse

Problem:

How can I increase the font size in ViewNow when debugging in Eclipse?

 

Solution:

When using Visual COBOL for Eclipse to debug remote projects, the debugger launches xterm on the Unix machine to send the user interface to ViewNow. There is a way to pass options to xterm to control the appearance of the X window in ViewNow.

In a Debug Configuration, go to the Environment tab, and define a new Environment variable COBTERMOPTS. Here is an example:

Variable: COBTERMOPTS
Value: "-font -adobe-*-*-r-*-*-20-*-*-*-*-*-*-* -bg white -fg blue"
(without the quotes)

The above is an example of specifying a font, background color and foreground color to xterm. This example has been tested on a RHEL 7.1 and SUSE 12 systems.

You can first test outside of Eclipse to confirm that a given xterm option will work for you by specifying it as part of the xterm command. For example:

export DISPLAY=XX.XX.XX.XX:Y   (replace XX.XX.XX.XX with IP Address of your machine running ViewNow, and Y with port number ViewNow is using)
xterm -font -adobe-*-*-r-*-*-20-*-*-*-*-*-*-* &

If the above example does not work, please check with your System Administrator to confirm which fonts you have installed, or other options supported on your system to control the appearance of xterm.

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2018-10-05 23:08
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.