Russ Whitaker wrote:
Thanks another small step forward
Now when i compile and run
program win; uses CRT; begin end.
i get: Error opening terminal: linux. Segmentation fault
What did i overlook?
Somehow the ncurses library doesn't find the Linux terminfo description. That seems quite strange to me on a Linux system... Do other ncurses programs (e.g. yast, vi) cause a similar problem?
Did you download the ncurses binary from agnes, or do you use the one that came with your Linux distribution? I think, the latter is preferable, so if you downloaded the binary from agnes, you could try uninstalling it (if you didn't overwrite the other one with it).
Can you check if the terminfo file is there and world-readable (on my system, it's /usr/lib/terminfo/l/linux, but it might be another directory, like share or lib/share instead of lib, or /usr/local instead of /usr)? You can also try putting the base directory (without the l, i.e. /usr/share/terminfo in this example) into the environment variable TERMINFO before starting the program. (The binary on agnes, searches in /usr/lib/terminfo, I think, so if it's elsewhere on your system and you have that binary, you might also be able to help it with a symlink.)
The good news is that the next release will not segfault, but simply abort with an error status in this situation... :-/
Frank
-- Frank Heckenbach, frank@fjf.gnu.de, http://fjf.gnu.de/ GPC To-Do list, latest features, fixed bugs: http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html