- 1 Getting started
- 2 Compile
- 3 Customize
- 4 Optimize
- 5 Debug
- 6 Non-standard extensions
- 7 System Routines
- 附录 A
- 附录 B
- 附录 E
- 附录 I
文章来源于网络收集而来,版权归原创者所有,如有侵权请及时联系!
I.4 Screen I/O
Environment name: COB_BELL Parameter name: bell Purpose: Defines how a request for the screen to beep is handled Type: FLASH, SPEAKER, FALSE, BEEP Default: BEEP Example: BELL SPEAKER Environment name: COB_REDIRECT_DISPLAY Parameter name: redirect_display Purpose: Defines if DISPLAY output should be sent to 'stderr' Type: boolean Default: false Example: redirect_display Yes Environment name: COB_SCREEN_ESC Parameter name: screen_esc Purpose: Enable handling of ESC key during ACCEPT Type: boolean Default: false Note: is only evaluated if COB_SCREEN_EXCEPTIONS is active Example: screen_esc Yes Environment name: COB_SCREEN_EXCEPTIONS Parameter name: screen_exceptions Purpose: enable exceptions for function keys during ACCEPT Type: boolean Default: false Example: screen_exceptions Yes Environment name: COB_TIMEOUT_SCALE Parameter name: timeout_scale Purpose: specify translation in milliseconds for ACCEPT clauses BEFORE TIME value / AFTER TIMEOUT Type: integer 0 means 1000 (Micro Focus COBOL compatible), 1 means 100 (ACUCOBOL compatible), 2 means 10, 3 means 1 Default: 0 Note: the minimum and possible maximum value depend on the screenio library used Example: timeout_scale 3 Environment name: COB_INSERT_MODE Parameter name: insert_mode Purpose: specify default insert mode for ACCEPT; 0=off, 1=on Type: boolean Default: false Note: also sets the cursor type (if available) Example: insert_mode Y Environment name: COB_MOUSE_FLAGS Parameter name: mouse_flags Purpose: specify which mouse events will be sent as function key to the application during ACCEPT and how they will be handled Type: int (by bits) Default: 1 Note: 0 disables the mouse cursor, any other value enables it, any value containing 1 will enable internal handling (click to position, double-click to enter). See copy/screenio.cpy for list of events and their values. Alias: MOUSE_FLAGS Example: 11 (enable internal handling => 1, left press => 2, double-click => 8; 1+2+8=11) Environment name: COB_MOUSE_INTERVAL Parameter name: mouse_interval Purpose: specifies the maximum time (in thousands of a second) that can elapse between press and release events for them to be recognized as a click. Type: int (0 - 166) Default: 100 Note: 0 disables the click resolution (instead press + release are recognized), also disables positioning by mouse click Environment name: COB_DISPLAY_PRINT_PIPE Parameter name: display_print_pipe Purpose: Defines command line used for sending output of DISPLAY UPON PRINTER to (via pipe) This is very similar to Micro Focus COBPRINTER Note: Each executed DISPLAY UPON PRINTER statement causes a new invocation of command-line (= new process start). Each invocation receives the data referenced in the DISPLAY statement and is followed by an end-of-file condition. COB_DISPLAY_PRINT_FILE, if set, takes precedence over COB_DISPLAY_PRINT_PIPE. Alias: COBPRINTER Type: string Default: not set Example: print 'cat >>/tmp/myprt.log' Environment name: COB_DISPLAY_PRINT_FILE Parameter name: display_print_file Purpose: Defines file to be appended to by DISPLAY UPON PRINTER Note: Each DISPLAY UPON PRINTER opens, appends and closes the file. Type: string : $ is replaced by process id Default: not set Example: display_printer '/tmp/myprt.log' Environment name: COB_DISPLAY_PUNCH_FILE Parameter name: display_punch_file Purpose: Defines file to be created on first DISPLAY UPON SYSPUNCH/SYSPCH Note: The file will be only be closed on runtime exit. Type: string : $ is replaced by process id Default: not set Example: display_punch './punch_$.out' Environment name: COB_LEGACY Parameter name: legacy Purpose: keep behavior of former runtime versions, currently only for setting screen attributes for non input fields Type: boolean Default: not set Example: legacy true Environment name: COB_EXIT_WAIT Parameter name: exit_wait Purpose: to wait on main program exit if an extended screenio DISPLAY was issued without an ACCEPT following Type: boolean Default: true Example: COB_EXIT_WAIT off Environment name: COB_EXIT_MSG Parameter name: exit_msg Purpose: string to display if COB_EXIT_WAIT is processed, set to '' if no actual display but an ACCEPT should be done Type: string Default: 'end of program, please press a key to exit' (localized) Example: COB_EXIT_MSG ''
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论