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 you can 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 fonts in xterm.