From: David E. <de...@us...> - 2007-12-21 02:46:34
|
John Culleton wrote: > Another possible piece of work. > Let's say I have an alphanumeric field 8 characters long. > Initially it is filled with spaces. As part of the accept > of a screen I fill in "foo" and hit return. > The field has "foo" in the first three positions but > what fills the remaining five? Ar there five spaces or > does a carriage return or tab character get placed in the > field ? > Perhaps there is a way to exit the field without disturbing > the last five characters but if so what is it? > > I have just that situation where a field is filled in > and then compared to another field. > A carriage return or tab charcter will cause the comparison > to be false where it should have been true. I did not write the SCREEN (ACCEPT/DISPLAY) IO code, and I haven't worked on it in quite some time. Frankly it is a real pain to work on this code, as it is OS (on UN*X terminal) dependent. I had plans to work on the sources, add some user options to the run-time resource file 'htrtconf'. But as it stands, I have no plans to update the SCREEN (ACCEPT/DISPLAY) IO sources. Have you tried using 'cobcurses'(1) for your project. According to the author it works with OC, so it may work with TC. Hope this helps. Cheers 1) cobcurses http://sourceforge.net/projects/cobcurses |