We launch the control from within our application, which then allows users to run a CHUI application within the control. However, function keys which are used with the CHUI application are not working within the control, in certain scenarios.

  • in our dev environment, we are connecting to a Red Hat server, and the function keys work fine
  • our customer has HP-UX and once connected the function keys do not work.

We have tried setting the attribute sshFunctionKeysMode to the all possible values but no joy.

Please advise resolution.

asked 05 Aug '10, 11:57

Saquib's gravatar image

Saquib
16
accept rate: 0%

edited 06 Oct '10, 12:11

Rebex%20KB's gravatar image

Rebex KB ♦♦
256312


Problem with function keys is that there is no standard at all and every server can have own set of function keys. I've just found another set when googling "hp-ux function keys"...

Are you able to handle function keys correctly using PuTTY?

I can advise you 2 ways:

  1. Use another terminal type by setting terminalControl1.Options.TerminalName = "vt100" before you bind the TerminalControl (default value is xterm). It may result to using different function keys set by the remote end.
  2. Use another client which can handle the CHUI application function keys. Then start command "cat -v", type all function keys (this should print escape sequences of the function keys), then hit the CTRL+D to exit the "cat -v" command, finally send us the result of the "cat -v" command. We will add new FunctionKeysMode to the component and send you the current build.

UPDATE

Support for HP-UX function keys was released as build 4060 in February 2011.

To use new function keys specify TerminalControl.Options.FunctionKeysMode = FunctionKeysMode.HpUx; before you call the terminalControl1.Bind(client); method.

link

answered 05 Aug '10, 13:44

Lukas%20Matyska's gravatar image

Lukas Matyska ♦♦
78217
accept rate: 27%

edited 08 Apr '11, 17:24

Martin%20Vobr's gravatar image

Martin Vobr ♦♦
335310

Many thanks for the prompt response. Tried the suggestion and unfortunately still does not work. The function keys and their escape sequence are listed below:

F1 = ^[[17~

F2 = ^[[18~

F3 = ^[[19~

F4 = ^[[20~

F5 = ^[[21~

F6 = ^[[23~

F7 = ^[[24~

F8 = ^[[25~

F9 = ^[[26~

F10 = ^[[28~

F11 = ^[[29~

F12 = ^[[31~

(05 Aug '10, 14:46) Saquib

Can you also provide codes for Insert, Delete, Home, End, PageUp, PageDown, LeftArrow, RightArrow, UpArrow and DownArrow please?

And variants with the CTRL, ALT and SHIFT modifiers if it changes the sequences.

Thank you.

(05 Aug '10, 21:11) Lukas Matyska ♦♦

Hi

further keys as requested below:

Insert = ^[[2~

Home = ^[[1~

PageUp = ^[OQ

PageDown = ^[OS

End = ^[[4~

Delete = ^[[3~

Up = ^[[A

Down = ^[[B

Left = ^[[D

Right = ^[[C

Ctrl-F1 = ^[[23~

Ctrl-F2 = ^[[24~

Ctrl-F3 = ^[[25~

Ctrl-F4 = ^[[26~

Ctrl-F5 = ^[[28~

Ctrl-F6 = ^[[29~

Ctrl-F7 = ^[[31~

Ctrl-F8 = ^[[32~

Ctrl-F9 = ^[[33~

Ctrl-F10 = ^[[34~

Ctrl-F11 = ^[[23~

Ctrl-F12 = ^[[24~

Any idea when we can expect a new build and this will be sent to us?

Regards and thanks for your assistance so far.

(06 Aug '10, 09:49) Saquib

I am going to add new FunctionKeys right now. Can you please send me (at support@rebex.net) your order details, so I am able to build correct packages for you?

(06 Aug '10, 10:04) Lukas Matyska ♦♦

Email sent, thanks.

(06 Aug '10, 10:40) Saquib
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×39
×4
×2

Asked: 05 Aug '10, 11:57

Seen: 955 times

Last updated: 08 Apr '11, 17:24