Saying Hello to glguy!

This commit is contained in:
Patrick Kloepfer 2020-06-20 12:24:05 -04:00
parent 13ee515b69
commit 5c2ada7a5b
5 changed files with 73 additions and 18 deletions

Binary file not shown.

View File

@ -1,21 +1,73 @@
NEW NEW
PREFIX PREFIX
AUTO 4,1 AUTO 4,1
#!/BIN/SH #!/bin/sh
# #
# This script tests the standard functions defined in MAKEFUNCS # This script tests the standard functions defined in MAKEFUNCS
# that are used by multiple MAKE scripts # that are used by multiple MAKE scripts
# #
# Load Functions File # Load Functions File
# #
. MAKEFUNCS #. MAKEFUNCS
# This script defines standard functions used by multiple scripts
# Clear Screen Function
FUNCTION CS {
ECHO \f
}
# Title Box Function
# CALL TBOX Str_Title
FUNCTION TBOX {
ECHO -N "\e[1;20H"
ECHO "\e[7m \e[0m"
SET LINE = 2
WHILE [ $LINE -NE 5 ]
ECHO -N "\e[${LINE};20H"
ECHO "\e[7m \e[0m \e[7m \e[0m"
SET LINE = $LINE + 1
LOOP
ECHO -N "\e[5;20H"
ECHO "\e[7m \e[0m"
ECHO -N "\e[3;22H $1"
}
# Print Inverse
FUNCTION INVERSE {
ECHO -N "\e[7m$1\e[0m"
}
# Print at Screen Location Function
# CALL PRINTXY Num_Row Num_Column Str_String
FUNCTION PRINTXY {
ECHO -N "\e[$1;$2H$3"
}
# Print Inverse At X Y
# CALL INVERSEXY Row Col String
FUNCTION INVERSEXY {
ECHO -N "\e[$1;$2H\e[7m$3\e[0m"
}
# STATUSLINE Function
# CALL STATUSLINE Str_Message
FUNCTION STATUSLINE {
ECHO -N "\e[24;0H\e[7m "
ECHO -N " \e[0m"
ECHO -N "\e[24;2H\e[7m$1\e[0m"
ECHO -N "\e[24;68H\e[7m"
# TIME | CUT -M 10 -N 20
# SET DTIME = `TIME | CUT -M 10 -N 20`: ECHO -N ${DTIME}
ECHO -N "\e[0m"
}
# YesNoKeyPress Function
# CALL YNKP Returns 1(Y) or 0 (N)
FUNCTION YNKP {
ECHO Not yet implemented
}
# Get String At X Y Function
# CALL GETXY Num_Row Num_Column Num_Length
FUNCTION GETXY {
ECHO Not yet implemented
}
# #
# Test CS (ClearScreen Function) # Test CS (ClearScreen Function)
# #
CALL CS CALL CS
ECHO $?
PAUSE
CALL TBOX "This is the Title" CALL TBOX "This is the Title"
CALL STATUSLINE "Loading Functions..." CALL STATUSLINE "Loading Functions..."
CALL PRINTXY 10 10 "Hello World at 10 10" CALL PRINTXY 10 10 "Hello World at 10 10"
@ -27,4 +79,4 @@ CALL INVERSEXY 15 15 "Inverse Now at 15 15"
CALL PRINTXY 18 1 " " CALL PRINTXY 18 1 " "
ECHO ECHO
MAN MAN
TEXT /MAKE/USR/SHARE/MAKE/TESTFUNCS TEXT /MAKE/USR/SHARE/MAKE/TESTFUNCS2

View File

@ -16,6 +16,7 @@ bin/chmod
bin/chtyp bin/chtyp
bin/cmp bin/cmp
bin/cp bin/cp
bin/csh
bin/cut bin/cut
bin/dnsinfo bin/dnsinfo
bin/edit bin/edit
@ -61,16 +62,16 @@ etc/init
etc/issue etc/issue
etc/motd etc/motd
etc/network etc/network
INC/A2OSX.I inc/a2osx.i
INC/IO.I inc/io.i
INC/LIBPAK.I inc/libpak.i
INC/LIBTCPIP.I inc/libtcpip.i
INC/MACROS.I inc/macros.i
INC/MLI.E.I inc/mli.e.i
INC/MLI.I inc/mli.i
INC/MONITOR.I inc/monitor.i
INC/NET.HTTP.I inc/net.http.i
INC/PAK.I inc/pak.i
lib/libblkdev lib/libblkdev
lib/libpak lib/libpak
lib/libtcpip lib/libtcpip

View File

@ -71,6 +71,7 @@ ECHO "Making Directory Structure..."
md /fullboot/bin md /fullboot/bin
md /fullboot/drv md /fullboot/drv
md /fullboot/etc md /fullboot/etc
md /fullboot/inc
md /fullboot/lib md /fullboot/lib
md /fullboot/root md /fullboot/root
md /fullboot/sbin md /fullboot/sbin
@ -82,9 +83,10 @@ md /fullboot/usr/share
md /fullboot/usr/share/extras md /fullboot/usr/share/extras
md /fullboot/var md /fullboot/var
md /fullboot/var/log md /fullboot/var/log
md /fullboot/var/www
ECHO "Copying Files..." ECHO "Copying Files..."
FOR FILE IN (fullfiles) FOR FILE IN (fullfiles)
cp -Q ${SRC}/${FILE} /fullboot/${FILE} cp ${SRC}/${FILE} /fullboot/${FILE}
NEXT NEXT
cp -Q -Y ${SRC}/PRODOS.FX /fullboot/ProDOS cp -Q -Y ${SRC}/PRODOS.FX /fullboot/ProDOS
cp -Q -Y ${SRC}/PRODOS.FX /fullboot/usr/share/extras cp -Q -Y ${SRC}/PRODOS.FX /fullboot/usr/share/extras

View File

@ -1,7 +1,7 @@
NEW NEW
PREFIX PREFIX
AUTO 4,1 AUTO 4,1
#!/BIN/SH #!/bin/sh
# This script tests various cursor related commands # This script tests various cursor related commands
# Clear Screen Function # Clear Screen Function
FUNCTION CS { FUNCTION CS {