On 04/30/2012 08:15 PM, Brian Tiffin wrote:
On Mon, 30 Apr 2012 13:30:56 -0400, Chris Geldenhuis
<address@hidden> wrote:
Hi,
I am involved in converting a suite of programs to Open Cobol but am
not
able to terminate ACCEPT fields with Tab or Escape characters. These
are
used extensively in the current user interface so I would prefer to
stick with them rather than change to function keys and have to retrain
100 users.
Any Ideas will be welcomed.
Did you see
http://opencobol.add1tocobol.com/#does-opencobol-support-screen-section
?
Both environment vars need to be set (which can be done in COBOL as long
as it's before you trigger cureses)
SET ENVIRONMENT 'COB_SCREEN_EXCEPTIONS' TO 'Y'
SET ENVIRONMENT 'COB_SCREEN_ESC' TO 'Y'
There was a small discussions about a tweak to screenio.c that allowed
other terminators as well, if I remember correctly.
Cheers,
Brian
Regards
ChrisG
Thanks Brian,
The manual that I read said to set these variables to "any non-blank"
character, I was setting them to "1" and it was not working. After
setting them to "Y" I can pick up an escape. I will see if I can find
the discussion to the screenio.c tweak. Do you perhaps have a pointer to
it?