From 8082a998a51d7fe2bca168548cd74062b7dc5e48 Mon Sep 17 00:00:00 2001 From: d_m Date: Tue, 31 Dec 2024 14:36:01 -0500 Subject: [PATCH] Print usage when no path provided. Patch provided by Ismael-VC. Thanks! --- femto.tal | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/femto.tal b/femto.tal index f1724cd..069ea3b 100644 --- a/femto.tal +++ b/femto.tal @@ -11,7 +11,7 @@ ( - search&replace ) |00 @System [ &vector $2 &wst $1 &rst $1 &pad $4 &r $2 &g $2 &b $2 &debug $1 &halt $1 ] -|10 @Console [ &vector $2 &read $1 &pad $5 &write $1 &error $1 ] +|10 @Console [ &vector $2 &read $5 &type $1 &write $1 &error $1 ] |a0 @File [ &vector $2 &success $2 &stat $2 &delete $1 &append $1 &name $2 &length $2 &read $2 &write $2 ] ( MAX file size is currently #ce80, i.e. 52864 bytes ) @@ -138,6 +138,8 @@ ( startup ) |0100 + .Console/type DEI ?{ ;messages/usage print crlf quit! } + ( init zero page ) #0050 .term/cols STZ2 #0018 .term/rows STZ2 @@ -1608,6 +1610,7 @@ &no-matches-found "No 20 "matches 20 "found: 20 00 &term-size-parse-error "Error 20 "parsing 20 "term 20 "size 00 &help-msg "(help: 20 "C-h) 00 + &usage "usage: 20 "femto 20 " 00 ] @help-text