[fpc-pascal] Interactive SHELL?
Jonas Maebe
jonas.maebe at elis.ugent.be
Wed Feb 15 20:35:46 CET 2006
On 15 feb 2006, at 20:30, Bob Richards wrote:
>> Do you use units or libraries that might put the terminal in raw
>> mode?
>> Ncurses,crt, video?
>
> I am using "crt" for the readkey function in one of my procedures.
> No ncurses, no video. I
> am also smart-linking, so the only function compiled in from crt
> SHOULD be readkey.
No, because the crt unit contains initialisation code, and
initialisation code of a unit is obviously always linked in and
executed. This initialisation code puts the terminal in raw mode,
because it's required for crt's functionality. The crt unit does not
contain an exported procedure to disable it, since that would also
break all crt's functionality.
Jonas
More information about the fpc-pascal
mailing list