# Terminal Emulation UNIX - PFkeys not working

**URL:** <https://techcommunity.softwareag.com/t/terminal-emulation-unix-pfkeys-not-working/60120>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Single-Point-of-Development-SPoD\
**Created:** [August 22, 2005, 3:45pm UTC](https://techcommunity.softwareag.com/t/terminal-emulation-unix-pfkeys-not-working/60120 "2005-08-22T15:45:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Priscilla\_Fuller](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@Priscilla\_Fuller](https://techcommunity.softwareag.com/u/Priscilla_Fuller)\
**Post date:** [August 22, 2005, 3:45pm UTC](https://techcommunity.softwareag.com/t/terminal-emulation-unix-pfkeys-not-working/60120/1 "2005-08-22T15:45:48Z")

</div>

When I try to run a program from SPOD the PF keys are not working. If I make the mistake of hitting a PF key Natural freezes and I have to use CTRL ALT DELETE. From the SAG list I see something about NATSHARE411.SAG. But what do I do to this file? How does SPOD know which one of the host sessions to use? I tried deleting all the host sessions except NATURAL-VT and tried changing the font (something obvious I would see) but the font is exactly the same, and no PF keys. So I am stumped…

Windows XP (firewall off)  
Natural 6.1.1 PL 13

Red Hat Linux Version 3  
Natural 6.1.1 PL 13  
NDV 2.1.3

Thanks  
Priscilla Fuller

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [August 23, 2005, 3:52pm UTC](https://techcommunity.softwareag.com/t/terminal-emulation-unix-pfkeys-not-working/60120/2 "2005-08-23T15:52:57Z")

</div>

We got the same problem a few months ago. It depends on your $TERM-variable under LINUX. Our’s is now set to vt220. And it’s working …

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [August 23, 2005, 4:15pm UTC](https://techcommunity.softwareag.com/t/terminal-emulation-unix-pfkeys-not-working/60120/3 "2005-08-23T16:15:16Z")

</div>

> [@Matthias](#):
>
> It depends on your $TERM-variable under LINUX.

Sorry, that was wrong…

The “corpus delicti” is $NATTERM, which has to be set to “vt100”.

---

<div class="post-metadata">

**Author:** ![Priscilla\_Fuller](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@Priscilla\_Fuller](https://techcommunity.softwareag.com/u/Priscilla_Fuller)\
**Post date:** [August 23, 2005, 4:26pm UTC](https://techcommunity.softwareag.com/t/terminal-emulation-unix-pfkeys-not-working/60120/4 "2005-08-23T16:26:38Z")

</div>

Matthias - $TERM is set to ansi and $NATTERM is blank. Our Unix boffins aren’t here at the moment so here’s my ignorant question - where do I set this up?  
Thanks  
Priscilla

---

<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:** [August 23, 2005, 6:26pm UTC](https://techcommunity.softwareag.com/t/terminal-emulation-unix-pfkeys-not-working/60120/5 "2005-08-23T18:26:51Z")

</div>

You’d probably want to do this in your script starting the NDV Server.

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [August 23, 2005, 6:32pm UTC](https://techcommunity.softwareag.com/t/terminal-emulation-unix-pfkeys-not-working/60120/6 "2005-08-23T18:32:29Z")

</div>

> [@](#):
>
> where do I set this up?

It depends. Do you start your development-Server on the Linux-Computer manually?

Then just enter:

```auto
export NATTERM=vt100
```

After that, start your development-server:

```auto
natdvsrv -p3000
```

Note: replace 3000 with your specific port.

If the development server is started automatically, the commands above are in some kind of startup-Script anywhere on your Linux-Computer. In that case, you have to ask your “unix boffins”.

---

<div class="post-metadata">

**Author:** ![Priscilla\_Fuller](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@Priscilla\_Fuller](https://techcommunity.softwareag.com/u/Priscilla_Fuller)\
**Post date:** [August 23, 2005, 7:28pm UTC](https://techcommunity.softwareag.com/t/terminal-emulation-unix-pfkeys-not-working/60120/7 "2005-08-23T19:28:25Z")

</div>

Thanks - This is much better!  
I am getting a bit further but it is still not quite right - I tried vt220 and vt100 in our startup script and vt100 seems to be the one. I set both $TERM and $NATTERM just to make sure… I can now use the PF keys but I don’t see 2 lines for the PF Keys.  
I am expecting to see:  
Enter-PF1—PF2—PF3—PF4—PF5—PF6—PF7—PF8—PF9—PF10–PF11–PF12—  
help retrn quit flip bkwrd frwrd print main

(There should be some blanks between - e.g. PF7 is frwrd, PF12 is main)

But I see 1 line only  
Enter-help retrn quit–PF4—flip–PF6—PF7—PF8—PF9—PF10–PF11–main—

This is from the Construct demo library - NCSTDEMO.

Is there something else I need to set?  
Thanks  
Priscilla Fuller

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [August 24, 2005, 12:35pm UTC](https://techcommunity.softwareag.com/t/terminal-emulation-unix-pfkeys-not-working/60120/8 "2005-08-24T12:35:52Z")

</div>

Hmmmm. Seems not to be a problem with the $NATTERM-assignment. Sorry, I haven’t a clue…

> [@PriscillaF](#):
>
> (There should be some blanks between - e.g. PF7 is frwrd, PF12 is main)

Just use the Code-Button for that.

```auto
[code]test test test test[/code]
```

---

<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, 2:40pm UTC](https://techcommunity.softwareag.com/t/terminal-emulation-unix-pfkeys-not-working/60120/9 "2021-04-02T14:40:15Z")

</div>


