chiark
/
gitweb
/
~bjharris
/
bedstead-debian.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e303c79
)
Update editor to emit the new style of character bitmap
author
Ben Harris
<bjh21@bjh21.me.uk>
Sat, 26 Oct 2024 17:58:25 +0000
(18:58 +0100)
committer
Ben Harris
<bjh21@bjh21.me.uk>
Sat, 26 Oct 2024 17:58:25 +0000
(18:58 +0100)
editor
patch
|
blob
|
history
diff --git
a/editor
b/editor
index e62e7313b324c20ce5839e728000cf2141ca1226..d45bb61f0a0a896fe9f334138928b047fa15d903 100755
(executable)
--- a/
editor
+++ b/
editor
@@
-193,8
+193,8
@@
class EditorGui:
def key(self, event):
if event.char in (' '):
- bm = "
,".join(map(lambda n: "%03
o" % n, self.bitmap))
- print(
" {{%s}, 0x },"
% bm)
+ bm = "
".join(map(lambda n: "\\%02
o" % n, self.bitmap))
+ print(
' {"%s", U() },'
% bm)
elif event.char in ('c','C'):
for y in range(YSIZE):
for x in range(XSIZE):