GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
/****************************************************************************1**2*W pty.h XGAP source Frank Celler3**4**5*Y Copyright 1995-1997, Lehrstuhl D fuer Mathematik, RWTH Aachen, Germany6*Y Copyright 1997, Frank Celler, Huerth, Germany7*/8#ifndef _pty_h9#define _pty_h101112/****************************************************************************13**1415*V QuitGapCtrlD . . . . . . . . . . . . . . . . . . . . . . . quit on CTR-D16*/17extern Boolean QuitGapCtrlD;181920/****************************************************************************21**22*V ScreenSizeBuffer . . . . . . . . . . . . . . screen size change command23*/24extern char ScreenSizeBuffer[];252627/****************************************************************************28**29*V ExecRunning . . . . . . . . . . . . . . . . . . external program running30*/31extern Boolean ExecRunning;323334/****************************************************************************35**3637*P Prototypes . . . . . . . . . . . . . . . . . . . . . function prototypes38*/39extern Int CheckCaretPos( Int, Int );40extern int StartGapProcess( String, String argv[] );41extern void GapOutput( XtPointer, Int*, XtInputId );42extern void InterruptGap( void );43extern void KeyboardInput( String, Int );44extern void KillGap( void );45extern void StoreInput( String, Int );46extern void ProcessStoredInput( Int );47extern int PlaybackFile ( String );48extern int ResumePlayback( void );495051/****************************************************************************52**5354*D ReadGap( <buf>, <len> ) . . . . . . . . . . . . . . . read bytes from gap55*D WriteGap( <buf>, <len> ) . . . . . . . . . . . . . . write bytes to gap56*/57#ifdef DEBUG_ON58extern Int READ_GAP ( String, Int, String, Int );59extern void WRITE_GAP( String, Int, String, Int );60# define ReadGap(a,b) READ_GAP ( __FILE__, __LINE__, a, b )61# define WriteGap(a,b) WRITE_GAP( __FILE__, __LINE__, a, b )62#else63extern Int ReadGap ( String, Int );64extern void WriteGap( String, Int );65#endif6667#endif686970/****************************************************************************71**7273*E pty.h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ends here74*/757677