# Key interruption while processing

**URL:** <https://techcommunity.softwareag.com/t/key-interruption-while-processing/174459>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Linux, Natural-on-Windows-Unix\
**Created:** [February 13, 2014, 9:56pm UTC](https://techcommunity.softwareag.com/t/key-interruption-while-processing/174459 "2014-02-13T21:56:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luanvictor](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@luanvictor](https://techcommunity.softwareag.com/u/luanvictor)\
**Post date:** [February 13, 2014, 9:56pm UTC](https://techcommunity.softwareag.com/t/key-interruption-while-processing/174459/1 "2014-02-13T21:56:41Z")

</div>

Hello everybody,

I wanna do something like SCAN utility does while processing the search.  
When I fill the window with the parameters that I want to search and submit the scan, the Natural initialize a scan loop and this can be interrupted if I press ANY KEY of the KEYBOARD (e.g: letters, numbers, signals etc) THAT IS NOT a PF-KEY. When the scan operation is interrupted the Natural shows a window that prompt the user to abort or not the scan. (Please, look the attachment)

What I want to know is: how can I code this action on Natural for Unix?

Can someone help me?

Thank’s  
[SCAN utility interruption.doc](https://techcommunity.softwareag.com/uploads/short-url/fIvoBGV7ZFK29ocM2Xebn4lM0mc.doc) (71.5 KB)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:30pm UTC](https://techcommunity.softwareag.com/t/key-interruption-while-processing/174459/2 "2021-04-02T15:30:20Z")

</div>


