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



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



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:

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.

Blair McDonald

Comment List
Related Discussions