home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / TELECOM / tass.lzh / screen.c < prev    next >
Text File  |  1993-01-24  |  850b  |  62 lines

  1.  
  2. #include       <stdio.h>
  3. #include       "tass.h"
  4.  
  5.  
  6.  
  7. info_message(msg)
  8. char *msg;
  9. {
  10.        clear_message();          /* Clear any old messages hanging around */
  11.        center_line(LINES, msg);  /* center the message at screen bottom  */
  12.        MoveCursor(LINES, 0);
  13. }
  14.  
  15.  
  16. clear_message()
  17. {
  18.        MoveCursor(LINES, 0);
  19.        CleartoEOLN();
  20. }
  21.  
  22.  
  23. center_line(line, str)
  24. int line;
  25. char *str;
  26. {
  27. int pos;
  28.  
  29.        pos = (COLS - strlen(str)) / 2;
  30.        MoveCursor(line, pos);
  31.        printf("%s", str);
  32.        fflush(stdout);
  33. }
  34.  
  35.  
  36. draw_arrow(line)
  37. int line;
  38. {
  39.        MoveCursor(line, 0);
  40.        printf("->");
  41.        fflush(stdout);
  42.        MoveCursor(LINES, 0);
  43. }
  44.  
  45. erase_arrow(line)
  46. int line;
  47. {
  48.        MoveCursor(line, 0);
  49.        printf("  ");
  50.        fflush(stdout);
  51. }
  52.  
  53. #ifdef REGEXP
  54. void
  55. regerror (s)
  56. char *s;
  57. {
  58.        info_message (s);
  59. }
  60. #endif /* REGEXP */
  61.  
  62.