% diff appl/lib/titlebar.b usr/salva/appl/lib/titlebar.b
14c14
< "button .Wm_t.e -bitmap exit.bit -command {send wm_title exit} -takefocus 0",
---
> "button .Wm_t.e -bitmap exit.bit -height 10 -command {send wm_title
exit} -takefocus 0",
49c49
< cmd(top, "button .Wm_t.ok -bitmap ok.bit"+
---
> cmd(top, "button .Wm_t.ok -bitmap ok.bit -height 10"+
53c53
< cmd(top, "button .Wm_t.top -bitmap task.bit"+
---
> cmd(top, "button .Wm_t.top -bitmap task.bit -height 10"+
57c57
< cmd(top, "button .Wm_t.m -bitmap maxf.bit"+
---
> cmd(top, "button .Wm_t.m -bitmap maxf.bit -height 10"+
61c61
< cmd(top, "button .Wm_t.h -bitmap help.bit"+
---
> cmd(top, "button .Wm_t.h -bitmap help.bit -height 10"+
Also the default /lib/wmsetup from Inferno sources $home/lib/wmsetup,
i usually modify $home/lib/wmsetup instead of modifying /lib/wmsetup,
to add a few commands to the wm/wm menu.
Some of the ones that are handy for me are:
% cat $home/lib/wmsetup
#!/dis/sh script
menu '' ''
menu Kbd { wm/keyboard }
menu Pen { wm/pen }
menu Halt { wmrun shutdown -h }
# rawdbfs $home/cal /mnt/schedule
# wmrun wm/calendar $home/cal &
# wmrun acme -a -c1 $home/guide &
#wmrun auth/factotum
wmrun wm/keyboard -t
wmrun wm/sh -w 256 -h 160 -ic 'echo welcome `{cat /dev/user}!'
Kbd is included to be able to write text/commands as the buttons only provide
some very basic keys (Enter, Del, Tab, Esc, arrow keys, ...). Otherwise it's not
possible to enter text to the shell etc. One of the keys I'm missing
is to have as a
button is BackSpace but i didn't find it on a first look, but i think
it is common enough
to be accessible directly as a button, for the "keymap" see devnds.c:/^ndskeys.
Another alternative is Pen, but i've not used it a lot
but could be handy now as the touch is properly calibrated, thanks to Mechiel.
Another thing is that L, R buttons on the DS are used as mouse button modifiers
so they can be used to plumb, cut, snarf, etc.
I think $home/lib/wmsetup is the right place to to put commands as
nds/touchprint
and nds/memfiddle and others to make them accessible together with the
rest of commands.
--
salva
on the ipaq we just bound new exit.bit etc over the existing ones
when connecting to a shared file server, and copied in replacement
files when running from flash on the device itself.
/icons/tinytk might contain them even in the distribution
thanks a lot for the tip,
i've updated my $home/lib/wmsetup:
#!/dis/sh script
wmrun bind -b /icons/tinytk /icons/tk
menu '' ''
menu Kbd { wm/keyboard }
menu Pen { wm/pen }
menu Halt { wmrun shutdown -h }
# rawdbfs $home/cal /mnt/schedule
# wmrun wm/calendar $home/cal &
# wmrun acme -a -c1 $home/guide &
#wmrun auth/factotum
wmrun wm/keyboard -t
wmrun wm/sh -w 256 -h 160 -ic 'echo welcome `{cat /dev/user}!'
to bind the tinytk icons.
% svn diff sds
Index: sds
===================================================================
--- sds (revision 94)
+++ sds (working copy)
@@ -218,6 +218,12 @@
/icons/tk/maxf.bit
/icons/tk/exit.bit
+ /icons/tinytk/task.bit
+ /icons/tinytk/maxf.bit
+ /icons/tinytk/exit.bit
+ /icons/tinytk/help.bit
+ /icons/tinytk/ok.bit
+
/dis/lib/devpointer.dis
/dis/nds/touchprint.dis
/dis/nds/memfiddle.dis
--
salva
this brings another point,
if we continue adding files to devroot we'll ran out of RAM soon.
So better get some kind of permanent storage access,
i've done some test with devdldi.c as desmume
has been updated recently (i saw it yesterday) to include
passing a '--cflash=cfdisk.img' option to access CF cards,
this seems to be available under Mac, Linux and Windows versions.
This allows to do some DLDI tests, but we're hitting that
they seem to be using R12 (ip) and other registers which
should be preserved, see guide.cf in the inferno-ds repo for details.
The good thing is that with interrupts working, we can trap
anomalous states and at least get a panic dump.
--
salva