FPC has a complete ncurses unit that might just slip right in GPC. Of course credit is due the author.
Thanks, the three of you have answered with alternative options.
1. I cannot use CRT unit because of the combination of non-echo and use of control characters. Also, given the complexity of the application's screen handling I'm probably better off at the ncurses level.
2. I would prefer to use the FPC ncurses unit or modify it than go from scratch. I am willing to put some effort in but would like to see it donated to the GPC effort than just my personal use.
Questions: If I test/modify the FPC unit for GPC, and give credit where due, can that be put into GPC as an available interface? I'd probably use the Extended Pascal module syntax rather than the uses syntax, unless one of you tells me that will cause problems. Do I need permission from someone before starting? (Don't want to do an effort then find out it can't go back into GPC.)
Thanks!
Willett Kempton Visible Software
On 11 Mar 2005, at 7:29 AM, Rick Engebretson wrote:
FPC has a complete ncurses unit that might just slip right in GPC. Of course credit is due the author.
On 11 Mar 2005, at 2:44 AM, Frank Heckenbach wrote:
There is no Pascal (GPC) translation of the ncurses interface AFAIK. You can write one yourself which is a bit of work. Or use the CRT unit instead ... ;-)
Frank
Maurice Lombardi a écrit:
You need to write a Pascal import unit for ncurses, which translates the C syntax declarations in ncurses.h to pascal equivalents. Something like
Willett Kempton wrote:
- I would prefer to use the FPC ncurses unit or modify it than go from
scratch. I am willing to put some effort in but would like to see it donated to the GPC effort than just my personal use.
Questions: If I test/modify the FPC unit for GPC, and give credit where due, can that be put into GPC as an available interface? I'd probably use the Extended Pascal module syntax rather than the uses syntax, unless one of you tells me that will cause problems. Do I need permission from someone before starting? (Don't want to do an effort then find out it can't go back into GPC.)
You need permission from the author of the FPC unit. Provided it's released under a free license, you have this permission, and the license also tells which kind of acknowledgements are required.
For inclusion of code into GPC distributions, there are a bit stricter rules, but I think should a unit should be put in the contrib area of the web server anyway. (The CRT unit is included because of BP compatibility.)
Frank
Frank Heckenbach wrote:
Willett Kempton wrote:
- I would prefer to use the FPC ncurses unit or modify it than go from
scratch. I am willing to put some effort in but would like to see it donated to the GPC effort than just my personal use.
Questions: If I test/modify the FPC unit for GPC, and give credit where due, can that be put into GPC as an available interface? I'd probably use the Extended Pascal module syntax rather than the uses syntax, unless one of you tells me that will cause problems. Do I need permission from someone before starting? (Don't want to do an effort then find out it can't go back into GPC.)
(The CRT unit is included because of BP compatibility.)
Frank
I would like to use your new ncurses/GPC interface. Frank's CRT unit has additional, sophisticated screen handling capabilities that ncurses does not provide. These additional screen handling functions might be separated into a (posix) termios unit; which would be, AFAIK, original to GPC.
The original AT&T open software philosophy has worked well for 30 years. Build small, well defined tools that can be used for further development.
Consistent (FPC and GPC) Pascal language constructs evolve into the Ada programming language. When you are good at programming your desktop PC, you might be needed to program nuclear power plant controls.
Rick,
Call me dense, but I can't find the FPC version of the ncurses interface. I downloaded FPC and installed it, but find nothing 'curses' on my hard disk. I find it named on the FPC web site, in the contributed units, but there's no home page listed for that one, and no link to download it from there. I've written the listed author, no reply yet, but did inform and will try other avenues if he doesn't reply.
Where did you access the source for this interface, per your mention below?
- Willett Kempton
On 11 Mar 2005, at 7:29 AM, Rick Engebretson wrote:
FPC has a complete ncurses unit that might just slip right in GPC. Of course credit is due the author.
On 12 Mar 2005, at 07:28, Rick Engebretson wrote:
Frank Heckenbach wrote:
Willett Kempton wrote:
- I would prefer to use the FPC ncurses unit or modify it than go
from scratch. I am willing to put some effort in but would like to see it donated to the GPC effort than just my personal use.
Questions: If I test/modify the FPC unit for GPC, and give credit where due, can that be put into GPC as an available interface? I'd probably use the Extended Pascal module syntax rather than the uses syntax, unless one of you tells me that will cause problems. Do I need permission from someone before starting? (Don't want to do an effort then find out it can't go back into GPC.)
(The CRT unit is included because of BP compatibility.)
Frank
I would like to use your new ncurses/GPC interface. Frank's CRT unit has additional, sophisticated screen handling capabilities that ncurses does not provide. These additional screen handling functions might be separated into a (posix) termios unit; which would be, AFAIK, original to GPC.
The original AT&T open software philosophy has worked well for 30 years. Build small, well defined tools that can be used for further development.
Consistent (FPC and GPC) Pascal language constructs evolve into the Ada programming language. When you are good at programming your desktop PC, you might be needed to program nuclear power plant controls.
willett a écrit:
Rick,
Call me dense, but I can't find the FPC version of the ncurses interface. I downloaded FPC and installed it, but find nothing 'curses' on my hard disk. I find it named on the FPC web site, in the contributed units, but there's no home page listed for that one, and no link to download it from there.
http://www.freepascal.org/packages/ncurses.html
Maurice
willett wrote:
Rick,
Call me dense, but I can't find the FPC version of the ncurses interface. I downloaded FPC and installed it, but find nothing 'curses' on my hard disk. I find it named on the FPC web site, in the contributed units, but there's no home page listed for that one, and no link to download it from there. I've written the listed author, no reply yet, but did inform and will try other avenues if he doesn't reply.
Where did you access the source for this interface, per your mention below?
- Willett Kempton
On 11 Mar 2005, at 7:29 AM, Rick Engebretson wrote:
FPC has a complete ncurses unit that might just slip right in GPC. Of course credit is due the author.
On 12 Mar 2005, at 07:28, Rick Engebretson wrote:
Frank Heckenbach wrote:
Willett Kempton wrote:
- I would prefer to use the FPC ncurses unit or modify it than go
from scratch. I am willing to put some effort in but would like to see it donated to the GPC effort than just my personal use.
Questions: If I test/modify the FPC unit for GPC, and give credit where due, can that be put into GPC as an available interface? I'd probably use the Extended Pascal module syntax rather than the uses syntax, unless one of you tells me that will cause problems. Do I need permission from someone before starting? (Don't want to do an effort then find out it can't go back into GPC.)
(The CRT unit is included because of BP compatibility.)
Frank
I would like to use your new ncurses/GPC interface. Frank's CRT unit has additional, sophisticated screen handling capabilities that ncurses does not provide. These additional screen handling functions might be separated into a (posix) termios unit; which would be, AFAIK, original to GPC.
The original AT&T open software philosophy has worked well for 30 years. Build small, well defined tools that can be used for further development.
Consistent (FPC and GPC) Pascal language constructs evolve into the Ada programming language. When you are good at programming your desktop PC, you might be needed to program nuclear power plant controls.
There are several ways to get the fpc ncurses unit. One way is to go through their listing of contributed units, where ncurses is listed.
In the basic fpc install, you download the source fpc-1.0.10.i386.tar and you can unravel it to any directory. Or you can install the source and choose to install all source using the install script. I installed to /usr/local so the ncurses.pp unit is in /usr/local/src/fpc-1.0.10/packages/extra/ncurses.
You will find the file to be roughly what Maurice described. My suggestion is to keep the names and variables consistent between FPC and GPC. I want to port pascal to pascal.
I wrote:
Willett Kempton wrote:
- I would prefer to use the FPC ncurses unit or modify it than go from
scratch. I am willing to put some effort in but would like to see it donated to the GPC effort than just my personal use.
Questions: If I test/modify the FPC unit for GPC, and give credit where due, can that be put into GPC as an available interface? I'd probably use the Extended Pascal module syntax rather than the uses syntax, unless one of you tells me that will cause problems. Do I need permission from someone before starting? (Don't want to do an effort then find out it can't go back into GPC.)
You need permission from the author of the FPC unit. Provided it's released under a free license, you have this permission, and the license also tells which kind of acknowledgements are required.
PS: I'd suggest to try and contact the author(s) anyway. It's good style to let them know in advance of any such ports, and perhaps they might have some hints ...
Frank