Print Page | Close Window

SUI resets keyboard to case sensitive

Printed From: Rocket Software
Category: AccuTerm Knowledge Base (read only)
Forum Name: Smart User Interface
Forum Description: Smart User Interface Library beta discussions & support
Printed Date: February 02 2023 at 8:21pm
Software Version: Web Wiz Forums 12.03 -

Topic: SUI resets keyboard to case sensitive
Posted By: mlucas67
Subject: SUI resets keyboard to case sensitive
Date Posted: May 16 2007 at 2:35am
My users are used to not having to be in CAPS lock mode while using our system.  I just wrote my first SUI screen for release to the users (I've been using it for my screens but I always have CAPS lock on while in D3).  When they exit the routine they suddenly are required to turn on CAPS lock.  Any ideas how I can reset this?  Would a PRINT TERM.RESET do it?

Posted By: mlucas67
Date Posted: May 16 2007 at 2:59am
Fixed, found the SUI.CASING include and commented it out and recompiled both SUI.INPUT.CHAR and SUI.GET.TERM (this one was not listed in the documentation as needing to be recompiled, found it by searching the include lines).

Posted By: PSchellenbach
Date Posted: May 18 2007 at 4:17am
Hi Marshall -

I think you need to be more selective about where you change the CASING in the SUI programs. The SUI.CASING include item is used to make the subroutine it is included in perform case sensitive compares. It is only included in SUI.INPUT.CHAR and SUI.GET.TERM. SUI.GET.TERM compiles the terminal key definitions, and SUI.INPUT.CHAR uses that information to identify command keys. The Wyse 60 terminal definition has defines ESC "R" as the DEL command (the Wyse Del Line/Del Char key), and ESC "r" as the INS command (the Wyse Ins/Repl key). Changing CASING to OFF for these routines would remove the distinction between these two keys (there may be others as well).

Its not clear from the D3 documentation whether CASING inside a subroutine affects how the calling program performs compares, but it seems likely that this is the real problem here. It might be necessary to check the state of CASING using SYSTEM(28) and restore it before RETURNing from SUI.GET.TERM and SUI.INPUT.CHAR.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.03 -
Copyright ©2001-2019 Web Wiz Ltd. -