HOME  NEWS  FORUM  DOWNLOAD  LINK
OpenCOBOL - an open-source COBOL compiler
Main Menu
Download
Documentation
Development
Who's Online
14 user(s) are online (6 user(s) are browsing Forum)

Members: 0
Guests: 14

more...
Powered by
SourceForge

Xoops

Creative Commons

OpenCOBOL Forum Index
   OpenCOBOL
     Reversing TAB and ENTER keys
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
jgt
Posted on: 2010/7/28 20:17
Not too shy to talk
Joined: 2010/1/18
From: 44.21.48N 80.50.15W
Posts: 26
Reversing TAB and ENTER keys
One of the problems that I have encountered is that the MF cobol programs that I have use the enter key to move from field to field on the screen, and finally submit the screen for processing when the last field on the screen is reached.
The default for OC is to submit the screen for processing as soon as the enter key is pressed. The TAB key is used to navigate from field to field.
I tried creating a new terminfo and termcap with the translation of these keys reversed but it did not work.
Any other suggestions?
btiffin
Posted on: 2010/7/30 8:16
Home away from home
Joined: 2008/6/7
From: CANADA
Posts: 755
Re: Reversing TAB and ENTER keys
jgt;

What OS?

GNU/Linux? This vim tip is general purpose xmodmap help. I love having vi with the Caps Lock as Escape, mmm.

http://vim.wikia.com/wiki/Map_caps_lock_to_escape_in_XWindows

xmodmap modifies the keyboard for the rest of the X session or until you run another script to revert back.

Cheers,
Brian
jgt
Posted on: 2010/8/1 12:38
Not too shy to talk
Joined: 2010/1/18
From: 44.21.48N 80.50.15W
Posts: 26
Re: Reversing TAB and ENTER keys
OpenSUSE 11.2,
I followed your link, but that only applies to an X session doesn't it. I want to run from a MS Windows client with a terminal emulator.
btiffin
Posted on: 2010/8/3 5:00
Home away from home
Joined: 2008/6/7
From: CANADA
Posts: 755
Re: Reversing TAB and ENTER keys
Maybe something like http://www.autohotkey.com/docs/misc/Remap.htm ??

That page has links to how a registry trick can also be used, but that seems to want to require a reboot on changes, so back and forth, two reboots to run some OpenCOBOL screens would seem a little ... expensive.

No warranty, or baddy-ness level, expressed or implied in any of the binaries mentioned on the page. ;)

Cheers,
Brian
jgt
Posted on: 2010/8/8 17:51
Not too shy to talk
Joined: 2010/1/18
From: 44.21.48N 80.50.15W
Posts: 26
Re: Reversing TAB and ENTER keys
Some terminal emulators allow keyboard re-mapping, I might try that route also, since the users are typically locked into the application by their .profile or shell.
Threaded | Newest First Previous Topic | Next Topic | Top

Register To Post
 
Copyright (C) 2005 The OpenCOBOL Project. All rights reserved.
Powered by Xoops2 | PHP | MySQL | Apache
ocean-net