[WP34s] console version



#2

I've already posted some time ago that the keyboard layout of the WP34s console version is quite uncomfortable, especially for a German keyboard it's almost unusable.

Since I don't want to bother Pauli or Marcus to write such an extra version which allows a different keyboard layout, I've now tried it myself.

The problem is that I've only very limited skills in 'C', so I'm not sure if my extended version of 'console.c' is really working.

What I've done is adding a new variable 'k' which is 0 by default (for the standard keyboard) and 1 for my own layout (which is quite similar to the Windows emulator). The function key F1 switches between these 2 layouts.

One problem of my code may be the handling of function keys (arrow keys, Ins, Del, F1), because I'm not sure if it works in 'C' the same way as I know it from Pascal/Delphi.

These special function keys should return 2 bytes, the first is 0 (or 224) and the second is the keycode. So I've used the following code in 'C':

c = GETCHAR();
...
if ((c == 0) || (c == 224) {
c = 256 + GETCHAR();
}

Since I have no 'C' compiler currently, it would be nice if Marcus or Pauli could try to compile a console version with my modified 'console.c' and check if my method is working.

I've uploaded this console.c (incl. a table of my layout) here:

http://www.hpmuseum.org/guest/fhub/console.zip

It should work by just replacing the original console.c by my version and then make a compile of the console version wp34s.exe.

If everything is ok, then it should work exactly as the original wp34s.exe, only after pressing F1 the new keyboard layout should be active (and F1 again to return to the standard layout).

Franz


#3

I'm on a four day vacation. Maybe Pauli can help. The problem is that Pauli isn't using Windows.

You can try to install visual C Express, but obviously not on your W98 system.


#4

Quote:
I'm on a four day vacation.

Aaah, then happy holidays! :-)

There's no hurry ...
Quote:
Maybe Pauli can help. The problem is that Pauli isn't using Windows.

How could he make integration builds then?

#5

He logs on into a system I've set up for remote access.

#6

Marcus has a build server I can access to create images and submit them to subversion. Like a good monkey, I've been trained to type the three required commands in sequence.

It is extremely painful for me to do anything else on this machine -- it is half way around the world and the lag is in seconds. Not knowing much about how to navigate a DOS command line doesn't help either.


- Pauli


Possibly Related Threads…
Thread Author Replies Views Last Post
  New version of WP34s iOS emulator pascal_meheut 4 1,832 07-22-2013, 03:55 PM
Last Post: Matt Agajanian
  New version of the WP34s iOS emulator pascal_meheut 15 4,040 04-23-2013, 01:58 AM
Last Post: Walter B
  [WP34s] New TVM-solver version fhub 43 10,967 12-26-2012, 06:12 AM
Last Post: fhub
  [WP34S] WP34S firmware on the AT91SAM7L-STK dev kit? jerome ibanes 1 1,226 10-04-2012, 04:59 PM
Last Post: Paul Dale
  [WP34s] last QtGui version not working fhub 8 2,558 08-31-2012, 05:08 PM
Last Post: fhub
  [WP34s] new TVM-solver version fhub 29 7,379 05-13-2012, 05:42 AM
Last Post: fhub
  New version of the WP34s Qt Emulator pascal_meheut 11 2,944 04-14-2012, 03:45 PM
Last Post: pascal_meheut
  New version of the WP34s Qt Emulator pascal_meheut 30 6,816 04-03-2012, 12:26 PM
Last Post: fhub
  [WP34s] serious bug in QtGui version fhub 10 2,620 03-24-2012, 08:42 AM
Last Post: pascal_meheut
  [WP34s] console version fhub 6 1,909 03-23-2012, 10:51 PM
Last Post: Paul Dale

Forum Jump: