Skip to main content

[archive] Delete key - Linux

  • September 1, 2009
  • 5 replies
  • 0 views

[Migrated content. Thread originally posted on 31 August 2009]

We are having problems in Linux with the delete key. We have a set of programs that we have to run in text mode using telnet. We have a problem setting the delete key to create an exception in the program. We have set enviornment variable KEYSTROKE Exeception=61 KX but it continues to work as a backspace key. Has anyone had this problem?

Thanks,

5 replies

[Migrated content. Thread originally posted on 31 August 2009]

We are having problems in Linux with the delete key. We have a set of programs that we have to run in text mode using telnet. We have a problem setting the delete key to create an exception in the program. We have set enviornment variable KEYSTROKE Exeception=61 KX but it continues to work as a backspace key. Has anyone had this problem?

Thanks,
Hi,

We use Linux exclusively, so hopefully I can help out. Can you tell me what terminal type you are using? Is this terminal type defined in the /etc/a_termcap file?

At a linux prompt, can you enter the command "stty" and post the output for me?

Also, which flavour of Linux are you using?

Cheers,

Ian

[Migrated content. Thread originally posted on 31 August 2009]

We are having problems in Linux with the delete key. We have a set of programs that we have to run in text mode using telnet. We have a problem setting the delete key to create an exception in the program. We have set enviornment variable KEYSTROKE Exeception=61 KX but it continues to work as a backspace key. Has anyone had this problem?

Thanks,
Hi,

We use Linux exclusively, so hopefully I can help out. Can you tell me what terminal type you are using? Is this terminal type defined in the /etc/a_termcap file?

At a linux prompt, can you enter the command "stty" and post the output for me?

Also, which flavour of Linux are you using?

Cheers,

Ian

[Migrated content. Thread originally posted on 31 August 2009]

We are having problems in Linux with the delete key. We have a set of programs that we have to run in text mode using telnet. We have a problem setting the delete key to create an exception in the program. We have set enviornment variable KEYSTROKE Exeception=61 KX but it continues to work as a backspace key. Has anyone had this problem?

Thanks,
Hi,

We use Linux exclusively, so hopefully I can help out. Can you tell me what terminal type you are using? Is this terminal type defined in the /etc/a_termcap file?

At a linux prompt, can you enter the command "stty" and post the output for me?

Also, which flavour of Linux are you using?

Cheers,

Ian

[Migrated content. Thread originally posted on 31 August 2009]

We are having problems in Linux with the delete key. We have a set of programs that we have to run in text mode using telnet. We have a problem setting the delete key to create an exception in the program. We have set enviornment variable KEYSTROKE Exeception=61 KX but it continues to work as a backspace key. Has anyone had this problem?

Thanks,
Thanks for the reply, we are using RedHat v5 and CentOS v5, Acucobol v8.
I have attached a file that has the stty, env, cobol config, bash profile and a_termcap that we use. Thanks for any help.

Note the delete key works as the backspace when in a field which is what we want it to do except in specific situations. The area we want it to work different is when we want to delete a line. This works in our old SCO Unix systems. To get it to work we are setting environment variable in the program that looks like this:
move 'KEYSTROKE" to env-name
move "Exception=61 KX" to env-value
set environment env-name to env-value.

Thanks again.

[Migrated content. Thread originally posted on 31 August 2009]

We are having problems in Linux with the delete key. We have a set of programs that we have to run in text mode using telnet. We have a problem setting the delete key to create an exception in the program. We have set enviornment variable KEYSTROKE Exeception=61 KX but it continues to work as a backspace key. Has anyone had this problem?

Thanks,
Using vi, or vim, at the end of your /etc/profile file, add this line:-stty erase ^HTo get the Control-H using vi, first type Control-V and then Control-H. The Control-V tells vi/vim to accept the following control characters as data, rather than control-codes.

Since you're using telnet on RHEL, I wonder if you've also hit the xinetd limit of 50 users. To address this, edit the file /etc/xinetd.conf and increase the "instances" value to whatever you need it to be. The default is 50, but it applies to all services initiated by xinetd, not just telnet. This can include rsync, rsh, rexec, tftp, and others (look in /etc/xinetd.d for a full list).