Better recording.

This commit is contained in:
Martin Haye 2019-05-02 09:24:19 -07:00
parent 79e3867a21
commit 929d884e41
2 changed files with 3 additions and 14 deletions

View File

@ -1570,7 +1570,7 @@ export def recordKey()#1
byte key
key = ^kbd & $7F
^kbdStrobe
if recordMode and key <> 13 // don't record [Return] since it gets inserted for readability
if recordMode
if key == '^'
while ^kbd < 128; loop
key = (^kbd & $7F) - $40

View File

@ -1,18 +1,7 @@
#!/usr/bin/env ruby
length = 0
File.readlines(ARGV[0]).each do |line|
line.scan(/KEY:(.*?) SEED:/).each { |match|
print $1
length += 1
if length > 80
print "\n"
length = 0
end
}
line.scan(/STRING:(.*)/).each { |match|
puts $1
length = 0
}
line.scan(/KEY:(.*?) SEED:/).each { |match| print $1 }
line.scan(/STRING:(.*)/).each { |match| puts $1 }
end
print "\n"