Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2001-05

execl

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marco van de Voort
to jordi
Show quoted text 9 lines
I'd like to know why after a sentence like this : if paramstr (1) = '-h' then begin execl ('/usr/bin/man manual.page'); halt (); end; the terminal does not work more. How can I restore the terminal ??

Hmm, odd.

What are you using to run the terminal?
1. Ncurses (ncrt),
2. the plain Crt, or (in this case, try (1))
3. no external units?

Reply by email

Michael Van Canneyt
to jordi: I'd like to know why after a sentence like this : if paramstr (1) = '-h' then begin execl…
jordi wrote 9 lines
I'd like to know why after a sentence like this : if paramstr (1) = '-h' then begin execl ('/usr/bin/man manual.page'); halt (); end; the terminal does not work more. How can I restore the terminal ??

This is hard to say. Are you using the CRT unit ? if so, then this is probably the cause; try removing the CRT unit, or use the ncrt unit.

Michael.

Reply by email

jordi
to Michael Van Canneyt
Michael Van Canneyt wrote 17 lines
On Tue, 15 May 2001, jordi wrote: > I'd like to know why after a sentence like this : > > if paramstr (1) = '-h' then > begin > execl ('/usr/bin/man manual.page'); > halt (); > end; > > the terminal does not work more. How can I restore the terminal ?? This is hard to say. Are you using the CRT unit ? if so, then this is probably the cause; try removing the CRT unit, or use the ncrt unit. Michael.

Yes, I use the CRT unit.

I'll try again with ncurses.

Thanks Free Pascal people.

Salutacions.

Jordi.

Reply by email