Silverfrost Forums

Welcome to our forums

keyboard

4 Sep 2007 9:49 #2205

Dear all,

I am trying to write a subroutine in Clearwin FTN95, which can return the same two-byte keycode (scan code + ASCII code) as 'GET_EXTENDED_CHAR@' in FTN77 for DOS. I am trying to use 'ADD_KEYBOARD_MONITOR@' with call-back functions containing CLEARWIN_INFO@('KEYBOARD_KEY'). But it returns either a scan code (if high byte is 1) or an ASCII code (if high byte is 0). Is there a way that I could get both key codes at the same time? Then I can combine them together.

For the routine 'FEED_WKEYBOARD@(KEY,ERROR)', it takes only the ASCII code for the key to be inserted. But for function keys, their ASCII codes are 0, how can we feed them into the keyboard buffer? Thanks.

5 Sep 2007 7:59 #2206

There is no quick and easy answer to this question.

The recommended approach is to provide keyboard input via winio@ and %rd or %rf or %rs etc.

It is possible to mirror the old DOS approach but it can be very tricky (others may have more experience of this). Are you sure you have to go down this route?

I think I have already listed the available functions in this forum. Try a search in this forum using the name of one of the DOS routines.

Please login to reply.