# Cursor in a non-display field

**URL:** <https://techcommunity.softwareag.com/t/cursor-in-a-non-display-field/99715>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [February 16, 2012, 3:52pm UTC](https://techcommunity.softwareag.com/t/cursor-in-a-non-display-field/99715 "2012-02-16T15:52:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan4](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@Dan4](https://techcommunity.softwareag.com/u/Dan4)\
**Post date:** [February 16, 2012, 3:52pm UTC](https://techcommunity.softwareag.com/t/cursor-in-a-non-display-field/99715/1 "2012-02-16T15:52:51Z")

</div>

Say you have the following code written to hide a password as it’s being input. The problem occurs when a user is forced to reset his password. The REINPUT statment puts the cursor back at the #NEWPASSW field, but because it’s a non-display field, the user doesn’t see the cursor there. Any ideas of a work-around to somehow force the cursor to display?

```auto

MAP (AD=M IP=OFF)                                                       
RESET #ORG(A11) #USERNAME(A7) #INPASSW(A8) #NEWPASSW(A8)                
#USER-STATUS(A1) #MSG(A60)                                              
MAP (AD=M IP=OFF)                                                       
  02/25 'ACCESS CONTROL SIGN-ON'                                        
  04/02 'ORGANIZATION' 17T 'USER NAME' 29T 'PASSWORD' 40T 'NEW PASSWORD'
  05/02 #ORG 17T #USERNAME 29T #INPASSW (AD=N) 40T #NEWPASSW (AD=N)     
#USER-STATUS := 'R'                                                     
IF #USER-STATUS = 'R' AND #NEWPASSW = ' '                               
DO MOVE '604 - PASSWORD HAS BEEN RESET-NEW PASSWORD IS REQUIRED' TO #MSG
BACKOUT TRANSACTION                                                     
REINPUT #MSG MARK 4                                                     
DOEND                                                                   
END
```

---

<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:** [February 16, 2012, 8:42pm UTC](https://techcommunity.softwareag.com/t/cursor-in-a-non-display-field/99715/2 "2012-02-16T20:42:42Z")

</div>

Dan,

this is a terminal emulator issue, I’m seeing the cursor fine in mine, for example.

Best regards,

&nbsp;&nbsp;&nbsp;Wolfgang

---

<div class="post-metadata">

**Author:** ![Dan4](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@Dan4](https://techcommunity.softwareag.com/u/Dan4)\
**Post date:** [February 16, 2012, 9:10pm UTC](https://techcommunity.softwareag.com/t/cursor-in-a-non-display-field/99715/3 "2012-02-16T21:10:36Z")

</div>

Thanks, Wolfgang. I’ll talk with our systems folks and see if there’s anything they can do about this issue.

---

<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:01pm UTC](https://techcommunity.softwareag.com/t/cursor-in-a-non-display-field/99715/4 "2021-04-02T15:01:34Z")

</div>


