Poster | Thread |
spotUP
| |
Re: Thanks to SpotUP, Was: Building Curses based program Posted on 9-Mar-2009 2:28:40
| | [ #21 ] |
|
|
|
Elite Member |
Joined: 19-Aug-2003 Posts: 2896
From: Up Rough Demo Squad | | |
|
| @thegman
hm.... now that i think of it... you said cursor keys didn't work.... i am pretty sure they work in my game ports. you could download some of my ports and check, most has src included too...
just search for ncurses on os4depot.
also.... this hex editor is probably a good test case. http://www.os4depot.net/index.php?function=showfile&file=utility/filetool/shed.lha
i do remember hnl_dk talking about a possible problem with some keys in some scenarios but i never encountered any...
Last edited by spotUP on 09-Mar-2009 at 02:31 AM.
_________________ AOS4 Betatester, Peg2, G4@1ghz, Radeon 9250 256mb, 1gb RAM.
http://www.asciiarena.com http://www.uprough.net |
|
Status: Offline |
|
|
thegman
| |
Re: Thanks to SpotUP, Was: Building Curses based program Posted on 9-Mar-2009 9:17:43
| | [ #22 ] |
|
|
|
Member |
Joined: 11-Dec-2008 Posts: 49
From: Unknown | | |
|
| @spotUP
Interesting, thanks for the link. I just tried it, and cursor keys/backspace do not seem to work, the function keys insert strange looking characters.
I'm guessing that this works for you? Could I maybe send you an exec of tn5250 to try out, maybe it'll work on your machine and not mine?
Cheers
Garry |
|
Status: Offline |
|
|
thegman
| |
Re: Thanks to SpotUP, Was: Building Curses based program Posted on 10-Mar-2009 9:23:35
| | [ #23 ] |
|
|
|
Member |
Joined: 11-Dec-2008 Posts: 49
From: Unknown | | |
|
| @spotUP
Just tried another test, of tn5250 with an alternative and more bog-standard USB keyboard, still got all the problems of no cursors/backspace etc. I suspected maybe my Aluminium Mac keyboard might cause problems, but it seems OK.
Will need to look at PDCurses a bit more I think, shed demonstrates the same problem so I'm thinking it's a curses implementation issue.
All the best
Garry |
|
Status: Offline |
|
|
salass00
| |
Re: Thanks to SpotUP, Was: Building Curses based program Posted on 10-Mar-2009 9:47:05
| | [ #24 ] |
|
|
|
Elite Member |
Joined: 31-Oct-2003 Posts: 2707
From: Finland | | |
|
| @thegman
I very much doubt that your keyboard is the problem.
How does tn5250 check for cursor and function key presses? Does it use hardcoded values or does it use the #defined symbols like KEY_UP, KEY_DOWN, KEY_LEFT, ...? If it's the former then that's probably the problem. Last edited by salass00 on 10-Mar-2009 at 09:48 AM.
|
|
Status: Offline |
|
|
thegman
| |
Re: Thanks to SpotUP, Was: Building Curses based program Posted on 10-Mar-2009 10:24:01
| | [ #25 ] |
|
|
|
Member |
Joined: 11-Dec-2008 Posts: 49
From: Unknown | | |
|
| @salass00
I didn't think so either, but that keyboard has problems on Macs, so I thought it was worth a try.
I've no idea how tn5250 works internally, but I can try to find out tonight. I'm suspecting PDCurses as I tried another PDCurses based program "shed" and that seems to have the same problems.
I find it hard to believe that PDCurses on the Amiga has had this problem all along and I'm the first to notice, so I'm wondering if it's some other part of my spec causing the problem, or maybe a setting I've made but forgotten about or something.
I'd be interested to hear if anyone else has problems with say, "shed", and what their specs are?
I'll check for the keypress defines tonight, but I'm not familiar with the source, so may take a while.
Cheers
Garry |
|
Status: Offline |
|
|
corto
| |
Re: Thanks to SpotUP, Was: Building Curses based program Posted on 15-Mar-2009 22:44:02
| | [ #26 ] |
|
|
|
Regular Member |
Joined: 24-Apr-2004 Posts: 342
From: Grenoble (France) | | |
|
| @thegman
I have my first tn5250 screen ! The program crashes with a DSI error but I've just found the reason. One of the functions I added today (waddnstr) in my lib was wrong, with wrong arguments, ...
spotUP : I've downloaded Shed, it will be easier to hack :) And about ncurses, you could try the game tint, the archive contains the exe with pdcurses from os4depot and mine.
It's time to sleep but you can see how tn5250 looks like here :
Last edited by corto on 15-Mar-2009 at 10:53 PM.
|
|
Status: Offline |
|
|
thegman
| |
Re: Thanks to SpotUP, Was: Building Curses based program Posted on 16-Mar-2009 9:03:49
| | [ #27 ] |
|
|
|
Member |
Joined: 11-Dec-2008 Posts: 49
From: Unknown | | |
|
| @corto
I think you've done a great job here, looks almost identical to my Mac client, which I consider the benchmark... It's going to be great to do all my AS/400 work on the Amiga...
Cheers
Garry |
|
Status: Offline |
|
|
spotUP
| |
Re: Thanks to SpotUP, Was: Building Curses based program Posted on 16-Mar-2009 9:33:11
| | [ #28 ] |
|
|
|
Elite Member |
Joined: 19-Aug-2003 Posts: 2896
From: Up Rough Demo Squad | | |
|
| @corto
you should get it to use an ansi compatible dos font though. to make it look prettier.
_________________ AOS4 Betatester, Peg2, G4@1ghz, Radeon 9250 256mb, 1gb RAM.
http://www.asciiarena.com http://www.uprough.net |
|
Status: Offline |
|
|
corto
| |
Re: Thanks to SpotUP, Was: Building Curses based program Posted on 16-Mar-2009 16:36:00
| | [ #29 ] |
|
|
|
Regular Member |
Joined: 24-Apr-2004 Posts: 342
From: Grenoble (France) | | |
|
| @spotUP
Thanks for the advice ! Do you have a kind of font name in mind ?
Tested tint ?
|
|
Status: Offline |
|
|