LIBUTILS

The libutils shared library enables you to code terminal independent code to handle keyboard input.

For example:

* Include key definitions
INCLUDE jCmdKeys.h
* Initialize command key strings
 CALL JBASECommandInit
 TimeOut = 150 ;* Set timeout value deciseconds
 ECHO OFF
 LOOP
* Get Next Command Value
 CALL JBASECommandNext(RetNo, RetString, TimeOut)
* RetNo should match numbers in include/header file
 BEGIN CASE
 CASE RetNo = cmd_cursor_up
    CRT "CURSOR UP"
 CASE RetNo = cmd_cursor_down
    CRT "CURSOR DOWN"
 CASE RetNo = cmd_cursor_left
    CRT "CURSOR LEFT"
 CASE RetNo = cmd_cursor_right
    CRT "CURSOR RIGHT"
 CASE RetNo = cmd_alpha_numeric
    CRT "ALPHANUMERIC"
 CASE RetNo = cmd_timeout
    CRT "TIMEOUT"
    BREAK
 END CASE
* Output the actual string returned
 CRT "RetString :":OCONV(RetString,"MCP.")
 REPEAT

Field Name
|
Application/Table name

In this topic

Temenos Headquarters SA
2 Rue de l'Ecole-de-Chimie
CH - 1205 Geneva
Switzerland

Copyright © 2020- Temenos Headquarters SA

Published on :
Tuesday, August 29, 2023 2:03:28 PM IST

Last Updated R23 AMR