home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / source / ms_sh16.lzh / ms_sh.8 < prev   
Text File  |  1990-05-06  |  4KB  |  140 lines

  1.  
  2. #!/bin/sh
  3. # this is part 8 of a multipart archive
  4. # do not concatenate these parts, unpack them in order with /bin/sh
  5. # file ms_dio.2 continued
  6. #
  7. CurArch=8
  8. if test ! -r s2_seq_.tmp
  9. then echo "Please unpack part 1 first!"
  10.      exit 1; fi
  11. ( read Scheck
  12.   if test "$Scheck" != $CurArch
  13.   then echo "Please unpack part $Scheck next!"
  14.        exit 1;
  15.   else exit 0; fi
  16. ) < s2_seq_.tmp || exit 1
  17. echo "x - Continuing file ms_dio.2"
  18. sed 's/^X//' << 'SHAR_EOF' >> ms_dio.2
  19. Xthis device (heads, tracks, sectors) is obtained from MS-DOS.
  20. X.TP
  21. X\fB/dev/mem\fR
  22. XThis device allows the user to access memory from location 0 to location
  23. X0xFFFFF.
  24. X.PD
  25. X.PP
  26. XThe libraries use/return file descriptors in the range 30000 to 32767 and
  27. Xuse this as a check to see if they are processing one of the special files
  28. Xmentioned above.  This value can be changed by modifying the value of
  29. X\fBMS_MODIFIER\fR in the library source.
  30. X.PP
  31. XNote:  File descriptors for these special devices \fBcannot\fR be passed via
  32. Xexec or spawn to new or child processes.
  33. X.SH "RETURN VALUE"
  34. XSee standard library functions.  If an error occurs, errno is set to EIO if
  35. Xthe error occurs when reading or writing the device.
  36. X.SH "SEE ALSO"
  37. Xaccess(2), chmod(2), close(2), creat(2), dup(2), isatty(3), lseek(2), open(2),
  38. Xread(2), stat(2), fstat(2), write(2).
  39. SHAR_EOF
  40. echo "File ms_dio.2 is complete"
  41. chmod 0644 ms_dio.2 || echo "restore of ms_dio.2 fails"
  42. set `wc -c ms_dio.2`;Sum=$1
  43. if test "$Sum" != "3521"
  44. then echo original size 3521, current size $Sum;fi
  45. echo "x - extracting scripts/sh.ini (Text)"
  46. sed 's/^X//' << 'SHAR_EOF' > scripts/sh.ini &&
  47. X#
  48. X# Shell Initialisation File - Release 1.6
  49. X#
  50. X# MS-DOS SHELL - Copyright (c) 1990 Data Logic Limited and Charles Forsyth
  51. X#
  52. X#   $Header: sh.ini 1.1 90/03/14 19:26:13 MS_user Exp $
  53. X#
  54. X#   $Log:    sh.ini $
  55. X#    Revision 1.1  90/03/14  19:26:13  MS_user
  56. X#    Initial revision
  57. X#    
  58. X#
  59. X# Numeric values are either 0x??? (hex value), 0??? (octal value) or
  60. X# decimal (see strtol(3)).
  61. X#
  62. X# Keyboard functions
  63. X#
  64. X# Format: keyword = numeric_val numeric_val
  65. X#
  66. X# Two values are the ASCII codes returned by MSDOS function 01, 06, 07 and
  67. X# 08.  A first value of zero indicates an extended code and the second value
  68. X# gives the extended code.  Otherwise, the first value gives the ASCII
  69. X# character and the second value must not be present
  70. X#
  71. X# The following table gives the key values (all are extended codes, and are
  72. X# preceeded by zero).  Blanks in a column indicates that MSDOS returns no
  73. X# value for the keystroke.
  74. X#
  75. X# Key        Normal        Shift-        Control-    Alt-
  76. X# F1        0x3b        0x54        0x5E        0x68
  77. X# F2        0x3c        0x55        0x5F        0x69
  78. X# F3        0x3d        0x56        0x60        0x6A
  79. X# F4        0x3e        0x57        0x61        0x6B
  80. X# F5        0x3f        0x58        0x62        0x6C
  81. X# F6        0x40        0x59        0x63        0x6D
  82. X# F7        0x41        0x5A        0x64        0x6E
  83. X# F8        0x42        0x5B        0x65        0x6F
  84. X# F9        0x43        0x5C        0x66        0x70
  85. X# F10        0x44        0x5D        0x67        0x71
  86. X# F11
  87. X# F12
  88. X# PRINT SCREEN
  89. X# SCROLL LOCK
  90. X# PAUSE
  91. X# INSERT    0x52        0x52
  92. X# HOME        0x47        0x47        0x77
  93. X# PAGE UP    0x49        0x49        0x84
  94. X# DELETE    0x53        0x53
  95. X# END        0x4f        0x4f        0x75
  96. X# PAGE DOWN    0x51        0x51        0x76
  97. X# UP ARROW    0x48        0x48
  98. X# LEFT ARROW    0x4b        0x4b        0x73
  99. X# DOWN ARROW    0x50        0x50
  100. X# RIGHT ARROW    0x4d        0x4d        0x74
  101. X# TAB                0x0f
  102. X#
  103. XScanBackward = 0 0x49
  104. XScanForeward = 0 0x51
  105. XPrevious     = 0 0x48
  106. XNext         = 0 0x50
  107. XLeft         = 0 0x4b
  108. XRight         = 0 0x4d
  109. XWordRight    = 0 0x74
  110. XWordLeft     = 0 0x73
  111. XStart         = 0 0x47
  112. XClear         = 0 0x76
  113. XFlush         = 0 0x75
  114. XEnd         = 0 0x4f
  115. XInsert         = 0 0x52
  116. XDeleteRight  = 0 0x53
  117. XDeleteLeft   = 0x08
  118. XComplete     = 0 0x77
  119. XDirectory    = 0 0x0f
  120. X#
  121. X# Other functions
  122. X#
  123. X# Format: keyword = numeric_val
  124. X#
  125. X# The numeric_val gives the value of the function, zero is off, non-zero is
  126. X# on.
  127. X#
  128. XBell        = 0
  129. XHalfHeight    = 0
  130. SHAR_EOF
  131. chmod 0644 scripts/sh.ini || echo "restore of scripts/sh.ini fails"
  132. set `wc -c scripts/sh.ini`;Sum=$1
  133. if test "$Sum" != "2055"
  134. then echo original size 2055, current size $Sum;fi
  135. rm -f s2_seq_.tmp
  136. echo "You have unpacked the last part"
  137. exit 0
  138.  
  139.  
  140.