home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mitsch75.zip / scheme-7_5_17-src.zip / scheme-7.5.17 / src / microcode / os2term.c < prev    next >
C/C++ Source or Header  |  2000-12-05  |  3KB  |  152 lines

  1. /* -*-C-*-
  2.  
  3. $Id: os2term.c,v 1.4 2000/12/05 21:23:46 cph Exp $
  4.  
  5. Copyright (c) 1994, 1999, 2000 Massachusetts Institute of Technology
  6.  
  7. This program is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 2 of the License, or (at
  10. your option) any later version.
  11.  
  12. This program is distributed in the hope that it will be useful, but
  13. WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with this program; if not, write to the Free Software
  19. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. */
  21.  
  22. #include "os2.h"
  23. #include "prims.h"
  24.  
  25. unsigned int
  26. OS_terminal_get_ispeed (Tchannel channel)
  27. {
  28.   return (9600);
  29. }
  30.  
  31. unsigned int
  32. OS_terminal_get_ospeed (Tchannel channel)
  33. {
  34.   return (9600);
  35. }
  36.  
  37. void
  38. OS_terminal_set_ispeed (Tchannel channel, unsigned int baud)
  39. {
  40. }
  41.  
  42. void
  43. OS_terminal_set_ospeed (Tchannel channel, unsigned int baud)
  44. {
  45. }
  46.  
  47. unsigned int
  48. arg_baud_index (unsigned int argument)
  49. {
  50.   return (arg_nonnegative_integer (argument));
  51. }
  52.  
  53. unsigned int
  54. OS_baud_index_to_rate (unsigned int index)
  55. {
  56.   return (index);
  57. }
  58.  
  59. int
  60. OS_baud_rate_to_index (unsigned int rate)
  61. {
  62.   return (rate);
  63. }
  64.  
  65. unsigned int
  66. OS_terminal_state_size (void)
  67. {
  68.   return (0);
  69. }
  70.  
  71. void
  72. OS_terminal_get_state (Tchannel channel, PTR statep)
  73. {
  74. }
  75.  
  76. void
  77. OS_terminal_set_state (Tchannel channel, PTR statep)
  78. {
  79. }
  80.  
  81. int
  82. OS_terminal_cooked_output_p (Tchannel channel)
  83. {
  84.   int flag;
  85.   OS2_channel_operation (channel, chop_output_cooked,
  86.              ((choparg_t) (-1)), ((choparg_t) (&flag)), 0);
  87.   return (flag);
  88. }
  89.  
  90. void
  91. OS_terminal_raw_output (Tchannel channel)
  92. {
  93.   OS2_channel_operation (channel, chop_output_cooked, ((choparg_t) 0), 0, 0);
  94. }
  95.  
  96. void
  97. OS_terminal_cooked_output (Tchannel channel)
  98. {
  99.   OS2_channel_operation (channel, chop_output_cooked, ((choparg_t) 1), 0, 0);
  100. }
  101.  
  102. int
  103. OS_terminal_buffered_p (Tchannel channel)
  104. {
  105.   int flag;
  106.   OS2_channel_operation (channel, chop_input_buffered,
  107.              ((choparg_t) (-1)), ((choparg_t) (&flag)), 0);
  108.   return (flag);
  109. }
  110.  
  111. void
  112. OS_terminal_buffered (Tchannel channel)
  113. {
  114.   OS2_channel_operation (channel, chop_input_buffered, ((choparg_t) 1), 0, 0);
  115. }
  116.  
  117. void
  118. OS_terminal_nonbuffered (Tchannel channel)
  119. {
  120.   OS2_channel_operation (channel, chop_input_buffered, ((choparg_t) 0), 0, 0);
  121. }
  122.  
  123. void
  124. OS_terminal_flush_input (Tchannel channel)
  125. {
  126.   OS2_channel_operation (channel, chop_input_flush, 0, 0, 0);
  127. }
  128.  
  129. void
  130. OS_terminal_flush_output (Tchannel channel)
  131. {
  132.   OS2_channel_operation (channel, chop_output_flush, 0, 0, 0);
  133. }
  134.  
  135. void
  136. OS_terminal_drain_output (Tchannel channel)
  137. {
  138.   OS2_channel_operation (channel, chop_output_drain, 0, 0, 0);
  139. }
  140.  
  141. int
  142. OS_job_control_p (void)
  143. {
  144.   return (0);
  145. }
  146.  
  147. int
  148. OS_have_ptys_p (void)
  149. {
  150.   return (0);
  151. }
  152.