home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Garbo
/
Garbo.cdr
/
pc
/
source
/
ms_sh16.lzh
/
ms_sh.8
< prev
Wrap
Text File
|
1990-05-06
|
4KB
|
140 lines
#!/bin/sh
# this is part 8 of a multipart archive
# do not concatenate these parts, unpack them in order with /bin/sh
# file ms_dio.2 continued
#
CurArch=8
if test ! -r s2_seq_.tmp
then echo "Please unpack part 1 first!"
exit 1; fi
( read Scheck
if test "$Scheck" != $CurArch
then echo "Please unpack part $Scheck next!"
exit 1;
else exit 0; fi
) < s2_seq_.tmp || exit 1
echo "x - Continuing file ms_dio.2"
sed 's/^X//' << 'SHAR_EOF' >> ms_dio.2
Xthis device (heads, tracks, sectors) is obtained from MS-DOS.
X.TP
X\fB/dev/mem\fR
XThis device allows the user to access memory from location 0 to location
X0xFFFFF.
X.PD
X.PP
XThe libraries use/return file descriptors in the range 30000 to 32767 and
Xuse this as a check to see if they are processing one of the special files
Xmentioned above. This value can be changed by modifying the value of
X\fBMS_MODIFIER\fR in the library source.
X.PP
XNote: File descriptors for these special devices \fBcannot\fR be passed via
Xexec or spawn to new or child processes.
X.SH "RETURN VALUE"
XSee standard library functions. If an error occurs, errno is set to EIO if
Xthe error occurs when reading or writing the device.
X.SH "SEE ALSO"
Xaccess(2), chmod(2), close(2), creat(2), dup(2), isatty(3), lseek(2), open(2),
Xread(2), stat(2), fstat(2), write(2).
SHAR_EOF
echo "File ms_dio.2 is complete"
chmod 0644 ms_dio.2 || echo "restore of ms_dio.2 fails"
set `wc -c ms_dio.2`;Sum=$1
if test "$Sum" != "3521"
then echo original size 3521, current size $Sum;fi
echo "x - extracting scripts/sh.ini (Text)"
sed 's/^X//' << 'SHAR_EOF' > scripts/sh.ini &&
X#
X# Shell Initialisation File - Release 1.6
X#
X# MS-DOS SHELL - Copyright (c) 1990 Data Logic Limited and Charles Forsyth
X#
X# $Header: sh.ini 1.1 90/03/14 19:26:13 MS_user Exp $
X#
X# $Log: sh.ini $
X# Revision 1.1 90/03/14 19:26:13 MS_user
X# Initial revision
X#
X#
X# Numeric values are either 0x??? (hex value), 0??? (octal value) or
X# decimal (see strtol(3)).
X#
X# Keyboard functions
X#
X# Format: keyword = numeric_val numeric_val
X#
X# Two values are the ASCII codes returned by MSDOS function 01, 06, 07 and
X# 08. A first value of zero indicates an extended code and the second value
X# gives the extended code. Otherwise, the first value gives the ASCII
X# character and the second value must not be present
X#
X# The following table gives the key values (all are extended codes, and are
X# preceeded by zero). Blanks in a column indicates that MSDOS returns no
X# value for the keystroke.
X#
X# Key Normal Shift- Control- Alt-
X# F1 0x3b 0x54 0x5E 0x68
X# F2 0x3c 0x55 0x5F 0x69
X# F3 0x3d 0x56 0x60 0x6A
X# F4 0x3e 0x57 0x61 0x6B
X# F5 0x3f 0x58 0x62 0x6C
X# F6 0x40 0x59 0x63 0x6D
X# F7 0x41 0x5A 0x64 0x6E
X# F8 0x42 0x5B 0x65 0x6F
X# F9 0x43 0x5C 0x66 0x70
X# F10 0x44 0x5D 0x67 0x71
X# F11
X# F12
X# PRINT SCREEN
X# SCROLL LOCK
X# PAUSE
X# INSERT 0x52 0x52
X# HOME 0x47 0x47 0x77
X# PAGE UP 0x49 0x49 0x84
X# DELETE 0x53 0x53
X# END 0x4f 0x4f 0x75
X# PAGE DOWN 0x51 0x51 0x76
X# UP ARROW 0x48 0x48
X# LEFT ARROW 0x4b 0x4b 0x73
X# DOWN ARROW 0x50 0x50
X# RIGHT ARROW 0x4d 0x4d 0x74
X# TAB 0x0f
X#
XScanBackward = 0 0x49
XScanForeward = 0 0x51
XPrevious = 0 0x48
XNext = 0 0x50
XLeft = 0 0x4b
XRight = 0 0x4d
XWordRight = 0 0x74
XWordLeft = 0 0x73
XStart = 0 0x47
XClear = 0 0x76
XFlush = 0 0x75
XEnd = 0 0x4f
XInsert = 0 0x52
XDeleteRight = 0 0x53
XDeleteLeft = 0x08
XComplete = 0 0x77
XDirectory = 0 0x0f
X#
X# Other functions
X#
X# Format: keyword = numeric_val
X#
X# The numeric_val gives the value of the function, zero is off, non-zero is
X# on.
X#
XBell = 0
XHalfHeight = 0
SHAR_EOF
chmod 0644 scripts/sh.ini || echo "restore of scripts/sh.ini fails"
set `wc -c scripts/sh.ini`;Sum=$1
if test "$Sum" != "2055"
then echo original size 2055, current size $Sum;fi
rm -f s2_seq_.tmp
echo "You have unpacked the last part"
exit 0