home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 31 / CDASC_31_1996_juillet_aout.iso / vrac / lsdoor09.zip / DISPF.H < prev    next >
C/C++ Source or Header  |  1996-05-14  |  2KB  |  76 lines

  1. #ifndef __DISPLAY_HEADER_FILE__
  2. #define __DISPLAY_HEADER_FILE__
  3.  
  4. #include "Fos.h"    // Door Authors - This is NOT a fossil driver...
  5.  
  6. global char lookfor_string[10][10];
  7.  
  8. int display( const char *, ... );
  9. int out_codes( const char * );
  10. int out( const char * );
  11.  
  12. void out_long( long );             // Displays a long integer
  13. void out_long( ulong );            // Displays an unsigned long integer
  14.  
  15. int get_OK( int seconds );   // (0/1) Waits for an OK from the modem..
  16.  
  17. #ifndef _DOOR_CODE_
  18. int waitfor( char *, int ); // waitfor( string, seconds )  No carrier check!
  19. int lookfor( int );              // Look for 'lookfor_string's in x seconds
  20. #endif
  21. char *sergets( unsigned char *s, int maxlen, char *filters=0 );
  22. inline char *s_gets( uchar *s, int m, char *f=0 ){ return sergets(s,m,f); }
  23.  
  24. int  serial_redraw_line( int ); // Redraws a line from screen like below
  25. void serial_redraw( void );   // Redraws the screen to the serial port only.
  26.                   // Used mostly after popscrn() call.
  27.                   // Checks for serial connection.
  28.  
  29. int s_in( void );
  30. short s_out( unsigned char );
  31. int s_ready( char giveup=1 );
  32. void s_cls( void );
  33. void s_locate( uchar x, uchar y );  // Locates cur.  Assumes ANSI or better.
  34. void s_color( uchar color );        // Changes color if needed
  35.  
  36. void s_eraseline( void );
  37. inline void s_backspace( void ){ s_out('\b'); s_out(' '); s_out('\b'); }
  38.  
  39. void init_disp( void );
  40.  
  41. void direct_out( unsigned char out );  // Use with extreme caution, no
  42. void direct_string( char *s );         // carrier detect or data formatting
  43. short direct_ready( void );            // of any form!  See: s_in()/s_out()
  44. short direct_in( void );
  45.  
  46. void echo_yn( char );      // Echos yes or no depending on char (==Y or ==N)
  47.  
  48. void scanner( void );
  49. void clear_scanner( void );
  50.  
  51. global int extended;       // Extended Return value when s_in() returns 0
  52.  
  53. //global int redirect;
  54.  
  55. #define RE_LOCAL    0
  56. #define RE_SERIAL   1
  57. #define RE_ECHO     2
  58.  
  59. //global int terminal;
  60.  
  61. #define TERM_ASCII   0
  62. #define TERM_ANSI    1
  63. #define TERM_RIP     2
  64.  
  65.  
  66.  
  67. // Inlines
  68.  
  69. inline short  direct_ready( void ){ return in_ready(); }
  70. inline short  direct_in( void ){ return get_serial(); }
  71.  
  72. #endif
  73.  
  74. // End of DispF.Cpp
  75.  
  76.