mirror of
https://github.com/gungwald/hreodwrit.git
synced 2024-05-29 03:41:31 +00:00
More code
This commit is contained in:
parent
e7471b868e
commit
ec662e8ed2
|
@ -1,4 +1,4 @@
|
|||
rem ///////////////////////////////////////////////////////////
|
||||
rem //////////////////////////////////////////////////////////
|
||||
rem Program: Hreodwrit - A writing pen
|
||||
rem Author: Bill Chatfield
|
||||
rem License: GPL2
|
||||
|
@ -18,6 +18,7 @@ section variables
|
|||
sw{screenWidth}=40
|
||||
sh{screenHeight}=24
|
||||
bm{bufferModified}=0
|
||||
oa{openApple}=0
|
||||
closesection
|
||||
|
||||
section splash
|
||||
|
@ -33,14 +34,22 @@ section main
|
|||
£eventLoop
|
||||
# Check open apple and closed apple keys
|
||||
get k$
|
||||
if peek(49249) > 127 then goto @openApplePressed
|
||||
if asc(k$) = 3 then gosub @copyText
|
||||
|
||||
£openApplePressed
|
||||
if k$ = "s" then gosub @saveFile
|
||||
|
||||
|
||||
goto @eventLoop
|
||||
|
||||
£atExit
|
||||
if bm{bm{bufferModified} = 0 then goto @exit
|
||||
if bm{bufferModified} = 0 then goto @exit
|
||||
print "Save file ";f${nameOfFileInEditor};"? (Y/N) ";
|
||||
get k$
|
||||
print k$
|
||||
if k$ = "y" or k$ = "Y" then gosub @saveFile
|
||||
|
||||
£exit
|
||||
end
|
||||
closesection
|
||||
|
|
Loading…
Reference in New Issue
Block a user