Error processing request

Parameters

CONTENT_LENGTH0
REQUEST_METHODGET
REQUEST_URI/revision/AndroWish+Feature+Requests?V=94
QUERY_STRINGV=94
CONTENT_TYPE
DOCUMENT_URI/revision/AndroWish+Feature+Requests
DOCUMENT_ROOT/var/www/nikit/nikit/nginx/../docroot
SCGI1
SERVER_PROTOCOLHTTP/1.1
HTTPSon
REMOTE_ADDR172.70.178.85
REMOTE_PORT58884
SERVER_PORT4443
SERVER_NAMEwiki.tcl-lang.org
HTTP_HOSTwiki.tcl-lang.org
HTTP_CONNECTIONKeep-Alive
HTTP_ACCEPT_ENCODINGgzip, br
HTTP_X_FORWARDED_FOR3.145.85.178
HTTP_CF_RAY8857086d1e2b633c-ORD
HTTP_X_FORWARDED_PROTOhttps
HTTP_CF_VISITOR{"scheme":"https"}
HTTP_ACCEPT*/*
HTTP_USER_AGENTMozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])
HTTP_REFERERhttp://wiki.tcl.tk/revision/AndroWish+Feature+Requests?V=94
HTTP_CF_CONNECTING_IP3.145.85.178
HTTP_CDN_LOOPcloudflare
HTTP_CF_IPCOUNTRYUS

Body


Error

Unknow state transition: LINE -> END

-code

1

-level

0

-errorstack

INNER {returnImm {Unknow state transition: LINE -> END} {}} CALL {my render_wikit {AndroWish Feature Requests} **Features\ to\ be\ added\ to\ AndroWish**\n\n\[MG\]\ would\ love\ to\ see\ support\ for\ the\ \[vfs\]\ package,\ a\ requirement\ for\ loading\ \[starkit\]s.\n\n\[chw\]\ the\ \[vfs\]\ package\ is\ now\ included\ starting\ with\ the\ ''\"James\ Joyce\"''\ edition\ (2014-01-13).\n\n\[MG\]\ Brilliant,\ thanks\ for\ the\ quick\ response.\n\n\[MG\]\ Follow-up:\ I\ installed\ the\ newer\ version\ of\ AndroWish\ in\ the\ emulator,\ did\ a\ \n======\npackage\ require\ starkit\n======\nwhich\ worked\ (1.3.3).\ I\ then\ tried\ to\ \[source\]\ my\ starkit,\ but\ that\ failed\ with\ the\ error\n\n======\ncan't\ find\ package\ vfs::mkcl\n\ \ while\ executing\n\"package\ require\ vfs::mkcl\"\n\ \ (procedure\ \"::vfs::mk4::Mount\"\ line\ 4)\n\ \ invoked\ from\ within\n\"::vfs::mk4::Mount\ /storage/sdcard/Download/starkit.kit\ /storage/sdcard/Download/starkit.kit\ -readonly\"\n\ \ (\"eval\"\ body\ line\ 1)\n\ \ invoke\ from\ within\n\"eval\ \[list\ ::vfs::\$\{driver\}::Mount\ \$self\ \$self\}\ \$args\"\n======\n\n\[chw\]\ so\ there's\ something\ missing\ in\ the\ CVS\ version\ of\ vfs.\ Can\ you\ please\ point\ me\ to\ where\ I\ can\ fetch\ a\ complete\ vfs\ source\ archive\ including\ the\ required\ stuff\ for\ starkits?\ There\ must\ also\ be\ some\ C\ code\ which\ needs\ to\ be\ adapted\ for\ Android\ which\ I\ didn't\ find\ on\ the\ web,\ either.\n\n\n\[MG\]\ It\ looks\ like\ it\ tries\ to\ load\ vfs::mkcl\ as\ a\ fallback\ when\ the\ \[Mk4tcl\]\ package\ isn't\ available.\ I\ can't\ actually\ find\ any\ info\ about\ vfs::mkcl,\ but\ it\ seems\ \[Mk4tcl\]\ can\ be\ obtained\ from\ \[http://equi4.com/metakit/tcl.html\]\n\n\[chw\]\ 2014-01-18:\ hopefully\ fixed\ with\ the\ ''\"Amphetamine\"''\ edition\ which\ includes\ the\ read-only\ tclkit\ vqtcl\ module.\n\n\[MG\]\ 99%!\ It\ errors\ out\ when\ trying\ to\ \[cd\]\ to\ a\ directory\ in\ a\ starkit\ (complains\ it's\ not\ a\ directory,\ while\ under\ other\ OSes\ you\ can\ CD\ into\ the\ file\ structure\ of\ a\ starkit\ without\ a\ problem).\ Curiously,\ though,\ it\ has\ created\ images\ with\ `image\ create\ photo\ -file\ ...`\ which\ are\ located\ inside\ the\ starkit.\ Anyway,\ I\ removed\ the\ \[cd\]\ and\ it\ loaded\ the\ starkit,\ which\ seems\ to\ be\ running\ perfectly.\ Thank\ you\ :)\n\n\[chw\]\ 2014-01-21:\ when\ I\ try\ this\ on\ /storage/sdcard0/clock.kit\n======\npackage\ require\ vfs::mkcl\nvfs::mkcl::Mount\ /storage/sdcard0/clock.kit\ /mystarkit\n======\nit\ is\ possible\ to\ cd\ into\ the\ mounted\ startkit\ on\ /mystarkit,\ to\ glob,\ and\ to\ open\ files.\n\n----\n\n\[ramsan\]\ I\ would\ like\ to\ see\ a\ short\ tutorial\ in\ how\ to\ compile\ a\ simple\ tcl\ package\ that\ contains\ c/c++\ code\n\n\[chw\]\ unfortunately\ unsupported\ as\ a\ standalone\ piece\ since\ everything\ is\ built\ as\ a\ whole\ and\ finally\ packaged\ into\ an\ APK.\ So\ your\ best\ option\ is\ to\ fetch\ the\ complete\ source,\ add\ your\ tcl\ package\ containing\ native\ code\ to\ the\ .../jni\ subdirectory\ of\ the\ source\ tree,\ pick\ one\ of\ the\ Android.mk\ makefiles\ from\ the\ many\ ported\ extensions,\ adapt\ it\ to\ your\ package,\ add\ an\ appropriate\ pkgIndex.tcl\ to\ the\ .../assets\ subdirectory,\ and\ build\ the\ beast\ using\ Android\ NDK/SDK\ and\ \"ant\".\ A\ short\ recipe\ is\ in\ \[Tcl/Tk\ on\ android\ poll\].\n\n\[ramsan\]\ But\ then\ ...\ I\ cannot\ offer\ the\ package\ to\ other\ users.\ In\ my\ specific\ case,\ I\ have\ RamDebugger\ running\ ok\ on\ Androwish.\ But\ some\ parts\ of\ this\ program\ are\ made\ in\ c++\ to\ instrument\ and\ colorize\ files\ faster.\ How\ can\ I\ create\ the\ dynamic\ library\ for\ this\ code\ in\ order\ for\ RamDebugger\ to\ run\ properly?\n\n\[chw\]\ 2014-01-21:\ glimpsed\ over\ RamDebugger-source8.1.zip\ and\ saw\ many\ DLLs\ and\ shared\ libraries\ but\ no\ source\ code.\ As\ stated\ above,\ you\ should\ fetch\ the\ AndroWish\ sources,\ put\ your\ sources\ of\ those\ DLLs/shared\ libraries\ below\ the\ .../jni\ subdirectory\ and\ create\ appropriate\ Android.mk\ makefiles.\ Finally,\ you\ might\ want\ to\ call\ your\ application\ \"RamDebugger\":\ you\ have\ to\ subclass\ from\ tk.tcl.wish.AndroWish\ (an\ empty\ class\ body\ should\ do)\ in\ order\ to\ give\ the\ application\ another\ package/class\ name.\ That\ java\ stuff\ is\ below\ the\ .../src\ subdirectory.\ Adapt\ the\ AndroidManifest.xml\ to\ that\ package/class\ name\ and\ change\ the\ resources\ in\ .../res\ (strings,\ icons)\ to\ your\ needs.\ That\ should\ give\ you\ your\ RamDebugger\ APK\ at\ the\ end.\n\n\[ramsan\]\ 2014-01-22:\ You\ are\ describing\ how\ to\ create\ an\ application\ only\ for\ myself.\ But\ this\ is\ not\ the\ objective.\ The\ objective\ is\ to\ create\ a\ package,\ an\ editor\ and\ debugger,\ that\ can\ be\ used\ by\ any\ user\ of\ androwish.\ (NOTE:\ the\ source\ code\ is\ at:\ scripts/RamDebuggerInstrumenter.cc).\ You\ can\ access\ the\ fossil\ source\ code\ at:\ \[http://www.compassis.com/c/ramdebugger/index\]\n\n\[chw\]\ 2014-01-23:\ then\ package\ RamDebugger\ into\ a\ starkit.\ I'm\ afraid,\ however,\ that\ for\ the\ shared\ libraries\ you\ have\ to\ carry\ out\ the\ above\ mentioned\ steps\ (get\ AndroWish\ sources,\ Android\ NDK,\ put\ C/C++\ sources\ below\ .../jni,\ create\ Android.mk,\ use\ ndk-build\ to\ generate\ shared\ libraries).\ Another\ point\ to\ watch\ out\ for\ is\ that\ AndroWish\ builds\ for\ ARM\ and\ x86\ processors,\ i.e.\ there\ are\ two\ versions\ of\ each\ shared\ library\ which\ you\ have\ to\ put\ into\ the\ starkit.\ And\ the\ package\ specific\ Tcl\ load\ command\ must\ use\ \$tcl_platform(machine)\ to\ find\ out\ which\ library\ to\ load\ (I've\ never\ tested\ loading\ native\ code\ from\ a\ starkit,\ BTW).\n\n----\n\[PO\]\ would\ like\ to\ have\ an\ Android\ theme\ and\ the\ possibility\ to\ simulate\ right\ clicks\ (if\ possible).\n\n\[dbohdan\]\ 2014-12-07:\ It\ would\ be\ really\ nice\ to\ have\ a\ Ttk\ (pixmap)\ theme\ based\ on\ \[https://developer.android.com/design/style/themes.html%|%Holo\]\ or\ the\ more\ recent\ \[https://developer.android.com/design/material/%|%Material\ Design\]\ to\ make\ AndroWish\ apps\ better\ blend\ in\ with\ the\ rest\ of\ Android.\ (This\ was\ the\ complaint\ in\ the\ most\ upvoted\ comment\ in\ the\ AndroWish\ thread\ \[https://news.ycombinator.com/item?id=8572292%|%on\ Hacker\ News\].)\ However,\ I\ don't\ know\ anyone\ who'd\ be\ up\ to\ the\ task\ of\ designing\ this\ kind\ of\ a\ pixmap\ theme\ right\ now\;\ certainly\ not\ me.\ In\ the\ meantime\ I\ wonder\ how\ much\ you\ could\ accomplish\ by\ just\ tweaking\ the\ colors/font\ on\ Tk\ controls\ and\ putting\ a\ gradient\ in\ the\ background.\ That's\ more\ or\ less\ how\ (some)\ \[http://phonegap.com/%|%PhoneGap\]\ apps\ try\ to\ fit\ in\ (except\ that\ they\ use\ HTML\ and\ CSS,\ with\ offers\ glow\ effects\ and\ whatnot),\ with\ mixed\ results.\n\nAnother\ school\ of\ thought\ says\ that\ if\ you\ can't\ behave\ 100%\ native\ you\ shouldn't\ try\ to\ look\ native\ at\ all\;\ instead,\ try\ to\ find\ your\ own\ a\ distinct\ look.\ Perhaps\ the\ latter\ approach\ could\ work\ more\ easily\ for\ AndroWish\ and\ apps\ made\ with\ it.\n\n\[chw\]\ 2014-12-07:\ schools,\ tastes,\ themes\ come\ and\ go\ faster\ as\ one\ can\ catch\ 'em\ up.\ Why\ care\ about\ it?\ All\ that\ I\ can\ do\ is\ to\ provide\ the\ stuff\ we\ like\ on\ our\ \"old-shool\"\ (desk|lap|whatever)tops\ for\ our\ new\ shiny\ smartphonish\ or\ tabletish\ gadgetry.\ Of\ course,\ I'm\ open\ for\ really\ good\ looking\ alternative\ themes\ but\ I'm\ not\ an\ artist,\ painter,\ designer,\ Steve\ Jobs.\ What\ about\ going\ back\ to\ the\ roots,\ back\ to\ the\ \"bisque\"\ theme\ of\ the\ very\ beginnings\ of\ Tk,\ which\ looked\ rather\ \"Material\"ly\ designed\ like\ the\ Dunes\ where\ once\ upon\ a\ time\ the\ sandworms\ lived\ and\ where\ all\ that\ silicon\ came\ from.\n\n----\n\[jima\]\ 2014-01-14\n\nAs\ asked\ for\ in\ the\ Tcler's\ Chat:\n\nDo\ you\ know\ if/how\ a\ script\ can\ be\ started\ with\ AndroWish\ instead\ of\ starting\ it\ with\ an\ interactive\ console\ and\ a\ tk\ default\ window?\n\nThis\ question\ has\ also\ arised\ in\ comp.lang.tcl:\n\nhttps://groups.google.com/forum/#!topic/comp.lang.tcl/m9A6bWKPi_8\n\n\[chw\]\ that\ is\ were\ the\ \"borg\"\ command\ comes\ into\ play\ as\ mentioned\ in\ \[AndroWish\]:\n\n\ \ \ borg\ shortcut\ add\ <name-of-shortcut>\ <file-to-be-sourced>\ <png-icon-as-base64-string>\n\nThe\ last\ parameter\ can\ be\ left\ out\ in\ which\ case\ Aladdin's\ magic\ device\ is\ shown.\ However,\ YMMV\ depending\ on\ Android\ version.\ On\ my\ 4.x\ devices\ it\ worked\ but\ the\ opposite\ (borg\ shortcut\ delete)\ did\ not.\ The\ <file-to-be-sourced>\ must\ be\ given\ as\ an\ absolute\ path\ and\ it\ must\ be\ readable\ by\ the\ user\ id\ under\ which\ the\ AndroWish\ package\ has\ been\ registered\ by\ the\ Android\ installer.\n\n\n----\n'''\[ed.s\]\ -\ 2014-02-12\ 02:24:31'''\n\n1.BTL/RBC,\ please!\ I\ would\ love\ even\ a\ partial\ implementation\ -\ specifically,\ graph,\ if\ this\ is\ easier\ than\ a\ full\ implementation.\n\n2.I\ am\ assuming\ things\ like\ complex/fourier\ can\ be\ simply\ included,\ as\ they\ are\ completely\ self\ contained\ and\ require\ no\ hardware\ access,\ is\ this\ right?\ Still,\ is\ there\ a\ place\ one\ can\ place\ such\ common\ tools?\ On\ Linux\ it\ would\ be\ /usr/share/tcl\ or\ something\ similar,\ could\ we\ have\ a\ /storage/sdcard0/AndroWish\ take\ up\ the\ same\ role?\ This\ would\ also\ be\ a\ good\ place\ to\ contain\ .androwishrc,\ to\ be\ executed\ at\ startup,\ if\ present\ (default\ font\ sizes,\ etc.).\ User\ scripts\ would\ also\ be\ placed\ there,\ and\ I\ would\ also\ write\ a\ little\ script\ that\ looks\ through\ this\ space,\ finds\ all\ file.tcl\ (and\ the\ matching\ file.png,\ if\ available)\ and\ create\ buttons\ associated\ with\ launching\ each\ of\ these\ (Borg\ shortcut\ ...).\n\n----\n'''\[Superlinux\]\ -\ 2014-02-26\ 06:08:47'''\nThere\ should\ be\ a\ way\ to\ check\ whether\ AndroWish\ is\ installed\ after\ I\ made\ my\ HelloTclTk\ package.\ \nIf\ it's\ not\ installed,\ I\ should\ be\ able\ to\ grab\ it\ from\ Google\ Play\ store.\ Whenever\ \[chw\]\ wants,\ I\ can\ let\ him\ upload\ AndroWish\ releases\ \non\ my\ Google\ Developer\ Console\ account\ by\ sending\ me\ the\ signed\ released\ package.\n\nIn\ HelloTclTk.java\ file,\ \ the\ following\ override\ of\ OnCreate(Bundle\ savedInstanceState)\ method\ can\ be\ added\ as\ a\ checkpoint.\ this\ is\ not\ Tcl.\ this\ is\ purely\ in\ Java.\n\n======cpp\n\ \ \ \ PackageManager\ pm\ =\ getPackageManager()\;\n\ \ \ \ List<ResolveInfo>\ activityList\ =\ pm.queryIntentActivities(shareIntent,\ 0)\;\n\ \ \ \ boolean\ AndroWish_is_installed=false\;\n\ \ \ \ for\ (final\ ResolveInfo\ app\ :\ activityList)\ \{\n\ \ \ \ \ \ \ \ if\ ((app.activityInfo.name).contains(\"wish\"))\ \{\n\ \ \ \ \ \ \ \ \ \ \ AndroWish_is_installed=true\;\n\ \ \ \ \ \ \ \ \ \ \ break\;\n\ \ \ \ \ \ \ \ \}\n\ \ \ \ \}\n\ \ \ \ if\ (!AndroWish_is_installed)\{\n\ \ \ \ \ \ \ \ /*don't\ forget\ to\ define\ in\ strings.xml\ the\ value\ \"@string/You_Must_Install_AndroWish\"\ ,\n\ \ \ \ \ \ \ \ \ \ just\ to\ display\ the\ same\ meaning\ in\ as\ many\ languages\ as\ possible.\n\ \ \ \ \ \ \ \ \ */\n\ \ \ \ \ \ \ \ Toast.makeText(TableOfContents.this,R.string.You_Must_Install_AndroWish,\ Toast.LENGTH_LONG).show()\;\n\ \ \ \ \ \ \ \ //Let's\ assume\ that\ the\ Androwish\ package\ name\ is\ the\ following\ string\n\ \ \ \ \ \ \ \ String\ package_name=\"tk.tcl.wish\"\;\n\ \ \ \ \ \ \ \ //This\ will\ open\ the\ Play\ Store\ app\ to\ the\ following\ link\n\ \ \ \ \ \ \ \ Uri\ marketuriString\ =\ Uri.parse(\"market://details?id=\"\ +\ package_name)\;\n\ \ \ \ \ \ \ \ //\ \"market://details?id=tk.tcl.wish\"\n\ \ \ \ \ \ \ \ Intent\ intent\ =\ new\ Intent(Intent.ACTION_VIEW,\ marketuriString)\;\n\ \ \ \ \ \ \ \ startActivity(intent)\;\n\ \ \ \ \}\n======\n\n\[chw\]\ 2014-02-27:\ good\ idea.\ The\ library\ stuff\ (also\ in\ Java)\ which\ is\ inherited\ by\ the\ HelloTclTk\ class\ has\ a\ static\ initializer\ which\ already\ might\ have\ detected\ the\ absence\ of\ vital\ native\ shared\ libraries\ (since\ it\ was\ not\ able\ to\ load\ them).\ Therefore\ code\ to\ deal\ with\ prompting\ the\ user\ for\ AndroWish\ installation\ belongs\ in\ that\ library,\ not\ in\ the\ APP\ template.\ But\ implementing\ that\ stuff\ is\ low\ priority\ on\ my\ list,\ since\ there\ are\ more\ problematic\ open\ ends\ left.\n\n\[chw\]\ 2014-03-03:\ this\ is\ partly\ solved\ in\ the\ ''Pioneer\ 10''\ edition.\n\n----\n'''\[bmidy\]\ -\ 2014-02-26\ 08:45:09'''\n\nHi,\ very\ nice\ work!!\n\nI\ d\ like\ to\ get\ Tix\ support\ and\ also\ BLT\ like\ another\ one\ asked.\n\nThanks\n\n\[chw\]\ 2014-02-26:\ I\ can\ see\ benefits\ of\ having\ BLT\ for\ data\ visualization\ but\ what\ gives\ Tix\ when\ there\ are\ ttk,\ treeview,\ tktable,\ tklib\ etc.\ all\ available\ and\ ready\ to\ use?\n\n\[bmidy\]\ -\ 2014-02-27:\ Hi,\ I\ d\ like\ to\ get\ Tix\ as\ I\ used\ it\ a\ lots\ in\ many\ of\ my\ projects,\ I\ d\ like\ to\ port\ to\ android.\n\n\n----\n'''\[pbb\]\ -\ 2014-02-27\ 11:01:12'''\n\nI\ would\ like\ to\ have\ gnocl\ (Tcl/GTK+\ bindings)\ package\ included\ in\ AndroWish.\ Mainly\ for\ its\ text\ widget,\ which\ can\ do\ BIDI\ type\ rendering\ for\ Sanskrit\ script\ using\ the\ Devanagari\ font.\n\n\[chw\]\ 2014-02-27:\ postponed\ until\ a\ stable\ GTK\ port\ is\ available\ for\ Android.\ Better\ give\ me\ a\ pointer\ to\ a\ fribidi\ or\ ICU/ubidi\ patch\ for\ the\ Tk\ text\ widget.\n\n----\n'''\[bmidy\]\ -\ 2014-02-27\ 14:17:29'''\n\nHi,\ I\ also\ wanted\ to\ use\ your\ great\ Androwish\ to\ open\ serial\ port\ using\ a\ OTG\ USB\ adapter\ with\ an\ USB-serial\ adapter.\nso\ the\ serial\ port\ is\ available\ as\ /dev/ttyUSB0\ but\ I\ could\ not\ use\ the\ \"fconfigure\ -mode\"\ command.\nIs\ there\ a\ reason\ ?\ a\ workaround\ to\ open\ serial\ port.\n\nThanks\n\n\[chw\]\ 2014-02-27:\ probably\ a\ permission\ issue.\ Android\ APPs\ normally\ aren't\ allowed\ to\ open\ character\ devices.\ Since\ about\ Android\ 4.0\ there's\ support\ for\ USB\ device\ access\ from\ Java\ code,\ see\ the\ pointer\ to\ the\ usb-serial\ github\ project\ above.\ The\ downside\ is\ that\ the\ entire\ device\ driver\ seems\ to\ require\ to\ be\ written\ in\ Java.\ Adding\ the\ usb-serial\ is\ on\ my\ \[wish\]\ list,\ but\ has\ very\ low\ priority.\n\n----\n'''\[bmidy\]\ -\ 2014-02-27\ 15:52:36'''\n\nAlso\ another\ thing\ that\ would\ be\ interesting:\ As\ I\ m\ using\ a\ SG\ Note\ 3\ I\ get\ a\ 1920x1080\ resolution\ which\ is\ good\ but\ all\ looks\ like\ very\ small.\nSo\ it\ will\ be\ nice\ if\ it\ would\ be\ possible\ to\ have\ the\ possibility\ to\ zoom/pinch\ on\ the\ screen,\ but\ without\ additional\ code,\ I\ mean\ if\ it\ could\ be\ built-in\ in\ the\ \"Tk/X\"\ implementation.\nI\ do\ not\ know\ If\ my\ explanation\ is\ good\ enough,\ I\ hope.\n\n\[chw\]\ 2014-03-03:\ in\ the\ ''Pioneer\ 10''\ edition\ fonts\ are\ now\ chosen\ based\ on\ pixel\ density.\ It\ should\ be\ readable\ on\ full\ HD\ displays\ now.\n\n----\n'''\[bmidy\]\ -\ 2014-02-27\ 17:10:50'''\n\nAlso\ another\ things\ that\ would\ be\ usefull:\ Associate\ .tcl\ file\ with\ the\ AndroWish\ app,\ so\ that\ the\ Androwish\ start\ and\ load\ the\ .tcl\ file.\nSo\ it\ would\ be\ very\ easy\ to\ test\ our\ scripts.\n\n\[chw\]\ 2014-03-02:\ already\ implemented\ by\ android.intent.action.VIEW\ for\ file\ URLs\ with\ any\ pattern\ and\ by\ android.intent.action.SEND\ for\ MIME\ type\ application/x-tcl.\ YMMV\ depending\ on\ Android's\ launcher\ and/or\ file\ manager.\n\n----\n'''\[Superlinux\]\ -\ 2014-03-02\ 09:10:20'''\n\nHi.\ How\ can\ I\ force\ the\ virtual\ keyboard\ to\ be\ only\ numeric,\ or\ to\ make\ the\ keyboard\ help\ me\ in\ typing\ Internet\ addresses\ ..etc?\n\n\[chw\]\ 2014-03-02:\ This\ is\ not\ supported\ by\ the\ underlying\ libSDL\ 2.0.1\ infrastructure.\ What\ about\ asking\ for\ this\ feature\ on\ http://www.libsdl.org\ ?\ Update:\ seems\ to\ be\ controllable\ by\ a\ simple\ integer\ mask,\ will\ try\ to\ add\ this\ in\ the\ \"sdltk\ textinput\"\ command.\n\n\[chw\]\ 2014-03-03:\ in\ the\ ''Pioneer\ 10''\ edition\ that\ mask\ is\ added\ to\ the\ \"sdltk\ textinput\"\ command.\ However,\ the\ standard\ event\ bindings\ don't\ use\ this\ feature.\n\n----\n'''\[Superlinux\]\ -\ 2014-03-04\ 10:53:22'''\n\nWell\ A\ reminder\ here\ to\ everyone,\ if\ you\ updated\ to\ AndroWish\ runtime\ \"Pioneer\ 10\ edition,\ 2014-03-03\",\ then\ remember\ to\ update\ the\ java\ library\ of\ file\ name\ \"tcltkapplib.jar\"\ that\ comes\ in\ the\ HelloTclTk\ skeleton\ project.\ Just\ re-Download\ the\ HelloTclTk\ skeleton\ project\ from\ http://www.ch-werner.de/sdltk/AndroWish/HelloTclTk/HelloTclTk.zip%|%here%|%\ .\ Unpack\ the\ HelloTclTk.zip.\ From\ the\ unpacking\ locate\ and\ copy\ and\ replace\ \ \"tcltkapplib.jar\"\ to\ your\ own\ project\ library\ folder\ named\ \"libs\".\n\n----\n'''\[Superlinux\]\ -\ 2014-03-05\ 14:23:45'''\n\nRegarding\ the\ keyboard\ input\ type,\ how\ about\ making\ a\ quick\ command\ like\ this:\n\n======\narray\ set\ entry_vs_input_type\ \{\ entry1_window_path\ entry1_input_type\ entry2_window_path\ entry2_input_type\ entry3_window_path\ entry3_input_type\ ...\ ...\ \}\nsdltk\ entry_input_types\ \$entry_vs_input_type\n======\n\nAnd\ this\ command\ is\ used\ at\ the\ bottom\ of\ the\ script\ after\ the\ last\ defined\ \[entry\].\ And\ has\ automatic\ \[bind\]\ <Focus>\ for\ all\ entries\ in\ the\ array.\n\n----\n'''\[eds\]\ -\ 2014-03-07\ 00:30:23'''\n\nA\ very\ simple\ request:\ could\ we\ have\ another\ env\ variable\ under\ AndroWish\ that\ would\ tell\ unambiguosly\ that\ we\ are\ under\ Android?\n\nOn\ my\ desktop:\ \ set\ env(MACHTYPE)\nyields:\ \ \ \ \ \ \ \ \ i686-suse-linux\n\nUnder\ AndroWish\ it\ is\ not\ defined.\ \ It\ would\ be\ very\ handy\ to\ test\ for\ something\ like\ this,\ to\ make\ AndroWish-specific\ changes.\n\n\[chw\]\ 2014-03-07:\ MACHTYPE\ is\ bash\ specific.\ Run\ tclsh\ from\ tcsh\ and\ you\ get\ ''i686''.\ Newer\ \[AndroWish\]es\ support\ this\ construct\n\n\ \ set\ android\ 0\n\ \ catch\ \{set\ android\ \[sdltk\ android\]\}\n\nto\ safely\ find\ out\ if\ you're\ running\ on\ Android.\n\n----\n'''\[eds\]\ -\ 2014-03-07\ 00:43:13'''\n\nA\ very\ useful\ feature:\ \n\ \ \ \ :\ \ \ chw\ 2014-03-03:\ in\ the\ Pioneer\ 10\ edition\ fonts\ are\ now\ chosen\ based\ on\ pixel\ density.\n\nBUT:\ it\ seems\ to\ override\ not\ just\ the\ defaults,\ but\ also\ the\ explicitly\ controlled\ font\ sizes,\ which\ messes\ up\ a\ picture,\ made\ with\ labels\ of\ a\ very\ particular\ size,\ as\ these\ labels\ now\ grow\ and\ start\ overlapping\ and\ make\ a\ mess\ of\ things.\ \ Pre-Edison\ editions\ worked\ just\ fine\ on\ an\ unedited\ script\ from\ Linux.\n\nIf\ I\ edit\ the\ script\ to\ scale\ back\ from\ 10\ to\ 6\ point\ font,\ the\ labels\ on\ the\ picture\ are\ back\ to\ normal,\ but\ if\ I\ run\ the\ same\ script\ under\ Linux\ or\ windows,\ they\ are\ way\ too\ small.\ \ Sounds\ like\ I\ need\ a\ system-dependent\ switch,\ or\ a\ \"Auto-scale\ fonts\"\ should\ be\ a\ selectable\ option\ under\ AndroWish.\n\n\[chw\]\ 2014-03-07:\ positive\ font\ sizes\ are\ now\ scaled\ to\ real\ world\ points\ (as\ on\ UN*X/Windows/MacOSX).\ Negative\ font\ sizes\ are\ pixel\ based.\ If\ you\ want\ to\ control\ your\ layout\ on\ pixel\ basis,\ use\ negative\ numbers.\ See\ the\ Tk\ documentation\ of\ the\ font\ command,\ and\ play\ with\ ''tk\ scaling''\ (which\ I've\ never\ tested\ with\ AndroWish).\n\n----\n'''\[GCS\]\ 2014-03-13'''\n\nIt\ would\ be\ nice\ to\ have\ events\ associated\ with\ the\ Menu\ and\ Back\ buttons,\ and\ the\ Volume\ Up/Down\ keys.\ Apologies\ if\ they\ are\ already\ there\ and\ I\ missed\ them.\n\nPS\ I\ am\ really\ curious\ about\ the\ development\ of\ AndroWish--is\ it\ just\ a\ hobby,\ or\ part\ of\ your\ work?\ Do\ you\ have\ specific\ project(s)\ in\ mind?\ ...?\ Anyhow,\ I\ am\ very\ very\ happy\ you\ are\ doing\ it.\n\n\[chw\]\ 2014-03-15:\ at\ least\ the\ Back\ button\ is\ mapped\ as\ keycode\ 270\ and\ starting\ with\ \"''The\ Ides\ of\ March''\"\ edition\ as\ keysym\ '''Break'''.\ The\ volume\ keys\ aren't\ exposed\ by\ SDL\ but\ consumed\ by\ the\ system.\ Unfortunately\ I\ have\ no\ device\ with\ a\ Menu\ key.\ If\ you\ can\ test\ the\ Menu\ key\ with\ this\ code\ snippet\n\n\ \ \ \ bind\ all\ <Key>\ \{\ puts\ \"keycode=%k\ \ \ \ \ keysym=%K\"\ \}\n\na\ later\ AndroWish\ could\ provide\ a\ mapping\ to\ an\ X11\ keysym.\ PS:\ yes,\ I\ have\ some\ commercial\ projects\ based\ on\ Tcl/Tk\ which\ I\ hope\ to\ port\ to\ the\ Android\ platform\ someday.\n\n'''\[GCS\]\ 2014-03-15''':\ Here\ is\ the\ output\ from\ hitting\ the\ Back\ and\ Menu\ buttons:\ \ \n======\nkeycode=270\ \ \ \ \ keysym=Break\nkeycode=118\ \ \ \ \ keysym=App\n======\nSo\ it\ seems\ what\ I\ need\ is\ already\ there!\ BTW,\ my\ plan\ is\ use\ these\ events\ to\ cycle\ through\ the\ open\ windows,\ since\ my\ SQLite\ GUI\ can\ have\ several\ open,\ and\ I\ know\ of\ no\ other\ convenient\ navigation\ mechanism.\n\nThanks\ for\ your\ prompt\ response.\n\n\[chw\]\ 2014-03-15:\ Right\ now,\ I've\ learned\ that\ the\ Menu\ key\ disappeared\ in\ Android\ >=\ 4.0\ (or\ was\ it\ 3.0\ already).\ Thus,\ I\ suggest\ only\ to\ use\ the\ Back\ button,\ if\ you\ want\ to\ ensure,\ that\ your\ program\ can\ be\ operated\ on\ all\ devices.\ Maybe\ some\ years\ into\ the\ future\ (Android\ 8.1\ comes\ to\ mind)\ even\ the\ Back\ button\ will\ have\ been\ eliminated\ (and\ those\ smart\ little\ things\ read-ahead\ our\ minds\ directly\ using\ DWIWM\ technology\ \;-)\n\n----\n'''\[hkoba\]\ 2014-03-21'''\n\nHi.\ Today,\ I\ wrote\ a\ minimum\ https://gist.github.com/hkoba/9682329%|%patch%|%\ to\ enable\ CJK\ input\ via\ textinput.\ It\ worked\ for\ me(but\ not\ enough\ tested).\nAnyway,\ without\ this,\ current\ AndroWish\ get\ corrupted\ string\ from\ input\ method.\ So,\ please\ include\ this\ into\ next\ release!\n\n\[chw\]\ 2014-03-22:\ thank\ you,\ \[hkoba\]-san.\ Your\ patch\ will\ go\ into\ the\ next\ edition.\ Did\ you\ find\ out\ the\ purpose\ of\ the\ SDL_TEXTEDITING\ event?\ Is\ that\ used\ for\ CJK\ input?\n\n----\n'''\[hkoba\]\ -\ 2014-03-22\ 07:44:36'''\n\n\[hkoba\]:\ Thank\ you\ \[chw\]!\ If\ I\ understood\ correctly,\ SDL_TEXTEDITING\ is\ sent\ by\ input\ method\ to\ inform\ application\nabout\ current(and\ possible)\ translation\ result.\ When\ user\ hits\ RETURN,\ it\ became\ final\ result\ and\ application\ will\ receive\ it\ via\ SDL_TEXTINPUT.\nFor\ more\ information,\ see\ http://wiki.libsdl.org/Tutorials/TextInput%|%SDL\ tutorial%|%.\ From\ 2...4\ is\ TEXTEDITING,\ 5\ is\ TEXTINPUT,\ I\ think.\n\nSo,\ expected\ (future,\ perfect)\ behavior\ is\ \"previewing\ such\ potential\ result\ as\ overlay\ on\ the\ spot\ of\ final\ destination\".\n\n\[chw\]\ 2014-03-22:\ I\ see,\ however\ (as\ far\ as\ I\ was\ able\ to\ type\ in\ Japanese\ or\ Korean\ symbols\ which\ are\ unreadable\ for\ me)\ even\ the\ Android\ contacts\ app\ does\ not\ use\ the\ \"on\ the\ spot\"\ preview,\ but\ instead\ there's\ a\ preview/selection\ area\ above\ the\ on-screen\ keyboard.\ OTOH,\ the\ SDL\ library\ supports\ the\ SDL_TEXTEDITING\ event\ on\ the\ Android\ platform.\ Would\ it\ make\ sense\ to\ synthesize\ a\ text\ selection\ (Entry\ and\ Text\ widgets)\ of\ the\ inserted\ text\ by\ SDL_TEXTEDITING\ so\ that\ the\ later\ commit\ by\ SDL_TEXTINPUT\ would\ first\ erase\ the\ SDL_TEXTEDITING\ selection\ and\ then\ replace\ it\ by\ its\ own\ string?\n\n----\n'''\[hkoba\]\ -\ 2014-03-23\ 02:41:53'''\n\n\[hkoba\]:\ To\ see\ \"on\ the\ spot\"\ preview,\ you\ may\ need\ to\ change\ settings\ of\ input\ method.\nUnder\ correct\ settings,\ you\ can\ see\ the\ preview\ in\ Android\ contact\ too.\ \nSee\ these\ https://plus.google.com/117341617553275163448/posts/8Cd6SLDUaxg%|%photos%|%.\n\nFor\ about\ \"synthesized\ text\ selection\",\ I'm\ not\ sure\ it\ is\ good\ way\ but\ if\ is\ not\ visible\ from\ Tk\ widget\ tree(like\ wish\ console),\ it\ may\ be\ a\ possible\ solution.\nActually,\ I'm\ bit\ curious\ about\ how\ other\ SDL\ apps\ implement\ this.\ There\ would\ be\ some\ recommended\ way\ (for\ SDL\ or\ Android),\ I\ guess.\nSo,\ IMHO,\ before\ implementing\ \"synthesized\ text\ selection\",\ we\ would\ better\ search\ other\ examples.\n\n\[chw\]\ 2014-03-23:\ again,\ I\ see,\ thank\ you\ \[hkoba\]-san.\ That\ is\ not\ quite\ exactly\ what\ my\ ASUS\ phablet\ displays\ when\ I\ select\ one\ of\ those\ languages\ I\ can't\ speak\ and\ read,\ but\ they\ present\ the\ preview\ of\ text\ input\ above\ the\ on-screen\ keybord\ as\ on\ your\ photos.\ So\ I\ think\ our\ best\ option\ for\ now\ is\ to\ add\ your\ patch\ and\ see\ how\ other\ languages\ (neither\ mine\ nor\ yours)\ go\ with\ \[AndroWish\].\ (Poor\ me\ at\ school\ last\ century.\ Only\ to\ become\ another\ brick\ in\ the\ wall.\ Should\ have\ learned\ more\ languages\ many\ years\ ago\ :(\n\n\[hkoba\]\ 2014-03-24:\ I\ agreed\ with\ your\ above\ option\ and\ thank\ you\ for\ including\ my\ patch.\ If\ you\ find\ problems\ about\ applying\ my\ patch,\ please\ let\ me\ know.\nFor\ about\ another\ SDL\ exampl,\ I\ searched\ \"SDL_TEXTEDITING\"\ deeply\ on\ github\ code\ search\ yesterday,\ \nbut\ I\ could\ find\ only\ one\ https://github.com/ledyba/Chisa/blob/master/src/chisa/tk/element/TextArea.cpp#L536%|%real\ use%|%.\ \nAnd\ I'm\ not\ sure\ this\ is\ good\ example\ or\ not.\n(For\ about\ reading\ many\ languages,\ same\ applies\ to\ me\;-)\ You\ might\ notice\ my\ english\ is\ strange,\ especially\ about\ tense.\ I\ should\ learn\ them\ more)\n\n----\n\n\[escargo\]\ 2014-04-05:\ It\ would\ be\ nice\ if\ the\ commands\ like\ `borg`\ were\ a\ bit\ more\ self-documenting,\ so\ that\ if\ you\nare\ experimenting\ with\ a\ small\ device\ where\ it's\ not\ practical\ to\ be\ looking\ at\ the\ documentation\ at\ the\ same\ instant,\nyou\ could\ do\ something\ like\ `borg\ ?`\ or\ `borg\ help`\ to\ access\ subcommand\ summaries.\ \[APN\]\ The\ rest\ of\ Tcl\ does\ not\nhave\ this\ feature\ (if\ you\ discount\ the\ informative\ error\ messages)\ so\ not\ clear\ why\ this\ particular\ command\ should.\n\n\[escargo\]\ From\ my\ point\ of\ view,\ the\ lack\ of\ built-in\ documentation\ in\ the\ rest\ of\ Tcl\ is\ a\ misfeature\ in\ the\ rest\ of\nTcl.\ While\ you\ can\ interactively\ force\ some\ of\ the\ informative\ error\ messages\ to\ be\ output,\ having\ useful\ messages\ncome\ out\ when\ you\ request\ them\ would\ be\ far\ better.\n\nCertainly\ it's\ possible\ to\ ignore\ this\ feature\ request\;\ I\ just\ think\ it\ would\ be\ helpful\ to\ be\ able\ to\ get\ any\ command\nto\ provide\ some\ useful\ information\ when\ you\ might\ not\ have\ access\ to\ real\ documentation\ (because\ of\ either\ no\ access\ or\nno\ room\ to\ run\ an\ application\ to\ display\ the\ info.\n\n----\n\[RS\]\ 2014-04-07\ Some\ self-documentation\ could\ be\ done\ as\ often\ in\ Tcl:\n\ %\ info\n\ wrong\ #\ args:\ should\ be\ \"info\ subcommand\ ?argument\ ...?\"\n\ %\ info\ sub#\n\ unknown\ or\ ambiguous\ subcommand\ \"sub#\":\ must\ be\ args,\ body,\ cmdcount,\ commands,\n\ complete,\ default,\ exists,\ frame,\ functions,\ globals,\ hostname,\ level,\ library,\n\ loaded,\ locals,\ nameofexecutable,\ patchlevel,\ procs,\ script,\ sharedlibextension,\n\ tclversion,\ or\ vars\n\ %\ info\ args\n\ wrong\ #\ args:\ should\ be\ \"info\ args\ procname\"\n\ %\n\n----\n'''\[ET\]\ -\ 2014-04-15\ 06:01:07'''\n\nAt\ the\ risk\ of\ stating\ the\ obvious,\ \n\n\ \ \ *\ I\ want\ an\ app\ store\ install\ of\ androwish.\ I\ don't\ want\ to\ deal\ with\ ant,\ java,\ sdks,\ etc.\ Just\ want\ to\ wish\ something.\ I'm\ now\ retired,\ and\ I\ only\ program\ for\ my\ own\ amusement,\ and\ nearly\ all\ using\ tcl/tk.\n\n\ \ \ *\ Then,\ an\ easy\ way\ to\ run\ a\ hello.tcl\ text\ file.\ I\ have\ 2\ thoughts\ on\ this,\ either\ the\ equivalent\ of\ wish\ myprogram.tcl,\ but\ as\ a\ shortcut\ icon\ I\ can\ just\ tap,\ or\ possibly,\ a\ single\ tcl/tk\ program\ which\ can\ easily\ source\ one\ or\ several\ other\ *.tcl\ scripts\ from\ a\ set\ of\ buttons\ inside\ the\ first\ tcl\ program.\n\nFor\ example,\ all\ my\ windows\ systems\ run\ a\ socket\ listener\ that\ can\ eval\ whatever\ is\ sent\ to\ it\ This\ lets\ me\ mail\ code\ such\ as,\n\n\ \ \ \ \ \ package\ require\ twapi\ \;\ twapi::suspend_system\ -state\ standby\ -force\ true\n\nto\ remotely\ put\ a\ windows\ computer\ into\ standby.\ (Don't\ freak,\ this\ is\ just\ for\ my\ private\ home\ lan.\ Security\ by\ obscurity)\n\nOn\ Windows,\ or\ ubuntu,\ this\ is\ trivial\ to\ do.\ I'd\ like\ to\ do\ this\ from\ my\ samsung\ tablet.\n\nSo,\ it\ seems\ to\ me\ that\ all\ that\ is\ really\ required\ is\ to\ wrap\ up\ that\ helloTclTk\ example\ so\ it\ can\ source\ a\ text\ file\ instead\ of\ the\ animation\ it\ does\ now.\n\n\[chw\]\ 2014-04-15:\ please\ don't\ expect\ AndroWish\ in\ an\ app\ store\ any\ time\ soon\ since\ I\ still\ regularly\ manage\ to\ break\ some\ binary\ interfaces\ which\ will\ make\ it\ a\ support\ nightmare\ when/if\ other\ packages\ rely\ on\ it.\ Putting\ it\ on\ Google\ Play\ or\ something\ else\ is\ on\ my\ to-do\ list\ but\ has\ low\ priority.\ You\ don't\ need\ ''ant''\ etc.\ just\ download\ and\ install\ the\ AndroWish-debug.apk\ on\ your\ device\ (after\ temporarily\ activating\ development\ mode).\n\nRegarding\ running\ Tcl\ scripts,\ there's\ the\ ''borg\ shortcut\ ...''\ command\ which\ allows\ you\ to\ make\ an\ icon\ on\ the\ Android\ desktop.\ Technically,\ this\ is\ identical\ to\ ''wish\ URI-of-Tcl-script''.\ Your\ other\ proposal\ is\ implementable\ by\ adding\ some\ Tcl\ to\ your\ ''.wishrc''.\n\nWith\ the\ current\ (''Leonhard\ Euler'')\ edition,\ ''dropbear''\ is\ included\ allowing\ for\ SSH\ and\ SFTP\ access\ on\ the\ behalf\ of\ the\ AndroWish\ package.\ See\ my\ example\ of\ a\ ''.wishrc''\ on\ the\ \[AndroWish\]\ page.\n\nAnother\ possibility\ to\ remotely\ start\ an\ arbitrary\ Android\ activity\ (can\ be\ a\ Tcl\ script)\ is\ now\ using\ SSH\ and\ the\ ''am''\ command\ on\ Android:\n\n\ \ #\ start\ an\ interactive\ AndroWish\n\ \ am\ start\ -n\ tk.tcl.wish/.AndroWish\n\ \ #\ start\ the\ widget\ demo\n\ \ am\ start\ -n\ tk.tcl.wish/.AndroWishLauncher\ -d\ file:///assets/sdl2tk8.6/demos/widget\ -a\ android.content.intent.VIEW\n\nThe\ latter\ is\ technically\ equivalent\ what\ the\ ''borg\ shortcut''\ places\ on\ the\ Android\ desktop.\ Yes,\ I\ agree\ with\ you,\ that\ this\ is\ much\ more\ to\ type\ than\ a\ simple\ ''wish\ widget''\ on\ a\ normal\ UN*X\ or\ Windows\ machine,\ but\ currently\ I\ know\ of\ no\ other\ method.\n\n\n\n----\n'''\[ET\]\ -\ 2014-04-15\ 11:59:20'''\n\nSomeone\ once\ said\ to\ me,\ if\ it's\ truly\ that\ easy,\ then\ you\ should\ be\ able\ to\ tell\ my\ dog\ how\ to\ do\ it.\ Joking\ aside,\ the\ absence\ of\ a\ short\ complete\ step\ by\ step\ installation\ guide\ in\ a\ nice\ pretty\ box\ at\ the\ top\ of\ the\ main\ androwish\ page\ is\ kinda\ telling\ here.\ \n\nIt\ seems\ the\ goal,\ for\ now\ at\ least,\ is\ to\ provide\ a\ framework\ so\ app\ developers\ can\ write\ apps\ for\ android\ using\ the\ androwish\ base.\ That\ is\ a\ worthy\ goal,\ but\ if\ it\ were\ me,\ I'd\ reverse\ my\ priorities.\n\nThere's\ likely\ many\ more\ end\ users\ who\ might\ want\ to\ write\ a\ few\ handy\ scripts\ for\ themself.\ That's\ me\ -\ I\ only\ just\ bought\ my\ first\ tablet\ computer\ a\ week\ ago\ and\ It's\ frustrating\ not\ to\ have\ tools\ like\ tcl/tk\ that\ are\ normally\ at\ my\ fingertips.\ \n\n''But\ oh\ that\ app\ store!''\ That's\ what\ sold\ me.\ \ To\ me,\ this\ is\ as\ important\ to\ user\ friendliness\ as\ the\ GUI\ was\ to\ the\ command\ line.\ I\ still\ shiver\ every\ time\ I\ have\ to\ install\ something\ on\ my\ windows\ computers.\ But\ any\ idiot\ with\ a\ phone\ knows\ what\ an\ app\ is.\ And\ they\ love\ how\ you\ buy\ them\ \ -\ like\ buying\ a\ song\ on\ itunes,\ only\ easier.\n\nSo\ dreaming\ ahead\ to\ a\ play\ store\ app,\ ...\ if\ .wishrc\ is\ to\ tcl\ like\ .bashrc\ is\ to\ bash\ then\ a\ line\ like\ this\ would\ suffice.\n\n\ \ \ \ if\ \[file\ exists\ \$startupFile\]\ \{source\ \$startupFile\}\n\nAll\ you'd\ need\ to\ do\ was\ explain\ where\ this\ file\ is\ and\ how\ to\ edit\ it.\ Maybe\ a\ little\ default\ startup\ script\ that\ brings\ up\ a\ screen\ with\ a\ handful\ of\ buttons\ to\ launch\ the\ other\ sample\ scripts.\ Something\ very\ simple\ to\ get\ people\ started.\ Think\ to\ the\ user,\ not\ the\ developer\ here.\n\nThere's\ no\ reason\ why\ there\ can't\ be\ an\ Androwish\ lite\ as\ well\ as\ developer\ versions.\ I\ think\ a\ lite\ version\ is\ within\ reach.\ Wouldn't\ you\ just\ love\ to\ see\ the\ app\ pop\ up\ in\ the\ store\ saying\ '''1,000,000\ downloads'''.\ Think\ of\ what\ that\ would\ do\ for\ our\ favorite\ computer\ language.\n\n\[chw\]\ 2014-04-15\ 14:38:07:\ to\ somewhat\ quote\ Leonard\ (Bones)\ McCoy\ (not\ Euler):\ ''I'm\ a\ developer\ and\ not\ a\ marketroid''.\ Really.\ If\ you\ have\ a\ nice\ startup\ script\ (btw\ \$HOME/.wishrc\ is\ the\ path\ name\ of\ that\ startup\ script\ as\ in\ a\ normal\ interactive\ wish\ on\ UN*X\ or\ Windows)\ what\ about\ publishing\ it\ here\ on\ the\ wiki?\ And,\ yes,\ that\ file\ is\ really\ in\ the\ same\ place\ as\ on\ UN*X\ or\ Windows,\ see\ \[AndroWish:\ Documentation\]\ for\ the\ environment\ variables.\n\nAlthough\ I've\ spent\ many\ days\ (and\ nights)\ now\ on\ developing\ it\ further,\ I\ still\ don't\ have\ the\ feeling\ that\ it\ is\ ready\ for\ prime\ time\ yet,\ despite\ the\ many\ millions\ of\ smartphone\ and\ tablet\ users\ awaiting\ it\ eagerly.\ Please,\ be\ a\ little\ patient.\n\n\n----\n'''\[ET\]\ -\ 2014-04-15\ 23:10:39'''\n\nI'd\ love\ to\ help\ out,\ but\ unless\ I'm\ missing\ something,\ I\ can't\ find\ instructions\ for\ installing\ it.\ The\ youtube\ video\ just\ confused\ me.\n\nI\ don't\ know\ how\ to\ download\ and\ install\ the\ AndroWish-debug.apk.\ I've\ got\ about\ 1\ week's\ experience\ with\ the\ little\ beasty\ (as\ McCoy\ would\ say).\ If\ it\ ain't\ in\ the\ play\ store,\ I'm\ stumped.\ About\ all\ I\ know\ so\ far\ is\ how\ to\ plug\ it\ into\ a\ win7\ system\ and\ see\ 2\ folders\ (internal\ and\ external\ sd\ card)\ if\ that's\ how\ one\ would\ install\ things\ outside\ the\ play\ store.\n\nI\ have\ a\ samsung\ galaxy\ tab\ 2\ 7.0\ with\ 4.2.2.\ That's\ not\ on\ the\ list\ so\ I\ don't\ even\ know\ if\ my\ tablet\ is\ compatible.\ And\ my\ development\ platform\ would\ be\ windows\ (have\ winxp\ and\ win7/64\ plus\ a\ win8/32\ virtual).\ I\ have\ an\ older\ ubuntu\ 10.04\ system\ as\ well.\n\nBut\ perhaps\ my\ ignorance\ could\ be\ used\ to\ advantage\ -\ for\ idiot\ proofing.\ So,\ if\ anyone\ is\ willing\ to\ step\ me\ through\ it,\ I'd\ take\ good\ notes\ and\ write\ up\ a\ page\ on\ the\ experience.\n\n\[MG\]\ The\ installing,\ at\ least,\ I\ can\ help\ with\ -\ just\ visit\ the\ AndroWish\ download\ page\ in\ your\ browser\ and\ download\ the\ .apk\ file.\ When\ it's\ done,\ open\ the\ Downloads\ folder\ on\ your\ tablet\ and\ double-tap\ the\ .apk\ file.\ It'll\ tell\ you\ it's\ installing\ it,\ the\ permissions\ it\ wants,\ etc.\ Tell\ it\ OK,\ and\ that's\ it\ -\ you'll\ find\ AndroWish\ in\ your\ installed\ apps.\n\nAs\ for\ the\ developing..\ I've\ also\ been\ trying\ on\ Windows,\ but\ have\ had\ no\ luck\ whatsoever\ so\ far\ using\ Eclipse\ (it\ appears\ to\ compile\ fine,\ but\ errors\ out\ when\ I\ try\ and\ run\ it).\ If\ you\ have\ any\ luck\ with\ that\ part,\ please\ let\ me\ know\ how!\n\n\[ET\]\ Ahhhh,\ thanks.\ That\ was\ a\ lot\ easier\ than\ I\ thought\ it\ would\ be.\ BTW,\ how\ does\ one\ uninstall\ it,\ say\ when\ a\ new\ versions\ is\ available?\n\nI\ see\ now\ that\ many\ of\ the\ issues\ I\ have\ discovered,\ like\ no\ arrow\ keys\ on\ my\ keyboard,\ have\ already\ been\ addressed\ by\ others\ and\ the\ sftp\ and\ ssh\ connections\ seem\ to\ be\ the\ way\ to\ get\ into\ the\ system.\ I\ couldn't\ figure\ out\ how\ to\ change\ the\ window\ size\ of\ the\ console.\ I\ didn't\ see\ any\ scroll\ bars\ after\ I\ typed\ in\ parray\ env.\ So\ I\ could\ only\ see\ the\ last\ few.\ I'm\ assuming\ that\ env(HOME)\ is\ where\ to\ place\ the\ .wishrc\ file.\ I\ can\ find\ the\ folder\ from\ my\ win7\ system,\ though\ it\ does\ not\ treat\ the\ device\ as\ a\ regular\ flash\ drive,\ rather\ it\ thinks\ its\ a\ music\ device,\ so\ some\ things\ are\ not\ there,\ like\ right\ click\ search.\n\nI\ develop\ my\ tlc/tk\ code\ all\ on\ windows\ using\ a\ few\ utilities\ I\ bought\ years\ ago.\ Then\ I\ hide\ all\ machine\ particulars\ inside\ procs\ that\ test\ for\ the\ machine\ type\ (tcl_platform\ array).\ I\ see\ this\ one\ says\ linux\ for\ os\ and\ platform\ is\ unix.\ The\ machine\ said\ arm7l.\ I\ wonder\ if\ the\ console\ used\ here\ will\ accept\ my\ mods\ that\ add\ several\ buttons\ to\ the\ left\ side\ of\ the\ console.\ The\ last\ time\ I\ was\ on\ linux,\ I\ had\ to\ use\ a\ trick\ to\ get\ a\ console.\n\nAnyway\ I'm\ off\ to\ figure\ out\ how\ to\ get\ in\ via\ the\ ssh/sftp\ tools.\ I\ have\ a\ few\ windows\ programs,\ webdrive\ and\ putty\ for\ that.\n\n\[MG\]\ You\ can\ uninstall\ it\ from\ the\ Applications\ menu.\ However,\ you\ don't\ need\ to\ do\ that\ to\ upgrade\ -\ all\ Android\ apps\ have\ a\ unique,\ internal\ name\ which\ never\ changes\ throughout\ the\ life\ of\ the\ app.\ Android\ uses\ that\ to\ tell\ if\ you're\ installing\ a\ new\ app\ or\ upgrading\ an\ existing\ one.\ So\ you\ can\ just\ download\ and\ install\ a\ newer\ version,\ and\ the\ OS\ will\ automatically\ remove\ the\ old\ one\ and\ upgrade.\n\n----\n'''\[ET\]\ -\ 2014-04-23\ 08:34:53'''\n\nBut\ I'm\ stuck\ on\ how\ to\ send\ a\ '''wake\ on\ lan\ '''magic\ packet....\ \n\n'''Update''':\n\nUsing\ version,\ Let\ it\ Be,\ I've\ been\ able\ to\ get\ this\ working.\ There\ are\ two\ caveats,\ one\ is\ to\ use\ the\ load\ command\ shown\ rather\ than\ the\ package\ require\ (for\ now,\ to\ be\ fixed\ later\ AW\ version).\ Second,\ without\ the\ close\ of\ the\ socket,\ it\ would\ crash\ AW\ on\ the\ second\ attempt\ to\ call\ testit.\ I\ don't\ know\ if\ this\ means\ a\ second\ open\ socket\ is\ the\ problem,\ but\ it's\ my\ guess.\n\nAdapted\ from\ example\ WOL\ code\ at\ \[Generating\ The\ Wake\ On\ Lan\ Magic\ Packet\]\n======\nbutton\ .ex\ -text\ exit\ -command\ exit\nbutton\ .test\ -text\ test\ -command\ \{testloop\}\npack\ .ex\ .test\ -fill\ both\ -expand\ 1\n#package\ require\ udp\nload\ libtcludp.so\ Udp\nwm\ geom\ .\ 300x400+300+100\nproc\ testloop\ \{\}\ \{\n\ \ \ \ set\ last\ 50\n\ \ \ \ for\ \{set\ m\ 0\}\ \{\$m\ <\ \$last\}\ \{incr\ m\}\ \{\n\ \ \ \ \ \ \ \ puts\ \"testit\ \$m\"\n\ \ \ \ \ \ \ \ testit\ \{192.168.1.255\ 00:24:8c:9b:01:72\}\ \;#\ change\ 1\ if\ needed\ to\ match\ the\ local\ subnet\n\ \ \ \ \ \ \ \ after\ 1000\n\ \ \ \ \ \ \ \ update\n\ \ \ \ \}\n\}\n\n\nproc\ testit\ \{av\}\ \{\n\ \ \ \ #\ Select\ the\ ipaddress\ and\ the\ port\ number.\n\ \ \ \ set\ ipaddress\ \[lindex\ \$av\ 0\]\n\ \ \ \ set\ port\ \ \ 32767\n\ \ \ \ \n\ \ \ \ #\ Create\ a\ broadcast\ sending\ udp\ socket.\n\ \ \ \ set\ s\ \[udp_open\ \$port\]\n\ \ \ \ puts\ \"s=\ |\$s|\ \"\n\ \ \ \ fconfigure\ \$s\ -buffering\ none\ -blocking\ 0\ -translation\ binary\n\ \ \ \ fconfigure\ \$s\ -broadcast\ 1\ -remote\ \[list\ \$ipaddress\ \$port\]\n\ \ \ \ \n\ \ \ \ #\ Generate\ and\ send\ the\ magic\ packet\n\ \ \ \ set\ hw_addr\ \[binary\ format\ H*\ \[string\ map\ \{:\ \"\"\}\ \[lindex\ \$av\ 1\]\]\]\n\ \ \ \ set\ msg\ \"\\xff\\xff\\xff\\xff\\xff\\xff\[string\ repeat\ \$hw_addr\ 16\]\"\n\ \ \ \ #\ Lets\ send\ it\ 4\ times\ to\ be\ safe\n\ \ \ \ for\ \{set\ a\ 0\}\ \{\$a\ <\ 4\}\ \{incr\ a\}\ \{\n\ \ \ \ \ \ \ \ puts\ -nonewline\ \$s\ \$msg\n\ \ \ \ \ \ \ \ puts\ \"sent\ a\ wol\ \$a\"\n\ \ \ \ \ \ \ \ after\ 100\n\ \ \ \ \}\n\ \ \ \ close\ \$s\ \;#\ without\ this,\ a\ second\ call\ to\ testit\ caused\ a\ crash\ of\ AW\n\}\n======\n\n\[chw\]\ 2014-05-21:\ \ Without\ the\ close\ of\ the\ socket\ you\ should\ have\ seen\ an\ error\ since\ you've\ tried\ to\ open\ that\ 32767\ port\ again\ without\ setting\ -reuse\ at\ the\ very\ first\ open.\ Due\ to\ a\ missing\ compiler\ switch\ that\ triggered\ the\ crash.\ It\ will\ be\ fixed\ in\ the\ next\ edition\ of\ \[AndroWish\].\ Good\ for\ me\ that\ you\ found\ that\ out!\n\n----\n'''\[Superlinux\]\ -\ 2014-06-19\ 16:24:56'''\n\nHi.\ how\ can\ I\ port\ this\ http://wiki.tcl.tk/39215\ to\ AndroWish?\ And\ please\ if\ you\ can\ port\ it,\ please\ do.\n\n----\n\[nb\]\ Another\ vote\ for\ usb-serial\ functionality.\ This\ would\ let\ us\ write\ an\ FSM\ controller\ in\ Tcl\ and\ a\ ui\ in\ Tk\ to\ talk\ to\ physical\ hardware\ (seensors,\ pumps\ industrial\ process...)\ Edit:\ Opps\ just\ saw\ that\ usbserial\ is\ now\ included:-)\n----\n'''\[escargo\]\ -\ 2014-07-07'''\n\nMaybe\ AndroWish\ could\ be\ added\ to\ the\ F-Droid\ repository\ of\ free\ applications\ for\ Android:\ https://f-droid.org/\n\nThat\ might\ make\ installing\ updates\ a\ bit\ easier.\n----\n'''\[KL\]\ -\ 2014-08-03'''\n\nFirst\ of\ all\ thanks\ to\ chw\ for\ AndroWish!!\ I\ struggeled\ in\ the\ past\ with\ etcl\ (www.evolane.com)\ but\ missed\ official\ support\ for\ android\ devices.\ A\ great\ feature\ of\ etcl\ is\ that\ you\ can\ wrap\ the\ interpreter\ and\ the\ script\ into\ one\ application.\ Same\ is\ possible\ with\ freewrap\ (http://freewrap.sourceforge.net/).\ Do\ you\ think\ it\ is\ possible\ to\ add\ this\ kind\ of\ wrapping\ as\ well\ to\ AndroWish??\nThanks\ and\ Regards,\nK.L\n\n\[chw\]\ 2014-08-07:\ currently\ there's\ another\ approach\ available:\ build\ your\ own\ small\ app\ using\ Android\ SDK\ which\ contains\ your\ Tcl\ stuff\ and\ some\ precompiled\ Java\ libs\ but\ uses\ at\ runtime\ the\ shared\ libraries\ and\ tcl\ modules\ of\ an\ already\ installed\ \[AndroWish\]\ app.\ More\ information\ on\ http://www.androwish.org/index.html/wiki?name=HelloTclTk\n\n\[KL\]\ 2014-08-07:\ I\ already\ found\ this\ approach\ and\ I\ did\ already\ create\ my\ small\ app.\ But\ to\ run\ the\ app\ you\ need\ to\ have\ an\ installed\ \[AndroWish\]\ app.\ Packing\ the\ interpreter\ itself\ in\ the\ app\ would\ be\ a\ perfect\ possibility\ to\ distribute\ own\ apps.\ \n\n\[nb\]\ 2014-09-22\nAgain\ great\ work\ with\ AW.\ I\ was\ wondering\ if\ I\ could\ get\ some\ help\ with\ this\ starkit.\nhttps://dl.dropboxusercontent.com/u/85561940/hydro.kit\nI'm\ using\ the\ moore\ package\ and\ tclral\ package.\ The\ above\ starkit\ works\ fine\ in\ WIN\ with\ 8.6\ tclkit\ and\ 8.5\ basekit.\ I\ believe\ my\ problem\ is\ related\ to\ this\ post\ \"\[Moore\ Type\ State\ Models\]\".\ If\ so\ can\ we\ get\ the\ included\ \[tclRAL\]\ upgraded/linked\ against\ tcl8.6\ and\ include\ the\ ralutil\ package?\ TIA\n\n----\n\[escargo\]\ 2015-02-05:\ Is\ there\ a\ way\ to\ access\ Music\ playlists?\ I\ was\ really\ unhappy\ with\ how\ the\ so-called\ shuffle\nfunction\ played\ songs.\ The\ order\ was\ odd\;\ some\ songs\ were\ played\ twice\ and\ some\ not\ at\ all.\ I\ would\ like\ to\ see\ something\nthat\ could\ manipulate\ play\ lists.\ Even\ if\ it\ couldn't\ modify\ existing\ ones,\ having\ a\ program\ create\ a\ new\ play\ list\ with\nbetter\ randomization,\ elimination\ of\ duplicates,\ and\ other\ features\ would\ be\ more\ pleasing.\n\n\[chw\]\ 2015-02-06:\ Maybe\ this\ is\ possible\ using\ \"borg\ content\ ...\".\ But\ you\ have\ to\ dig\ deep\ into\ Android's\ MediaStore.Audio\ documentation.\ I've\ tried\ the\ following:\n======\n#\ get\ a\ cursor\ on\ the\ audio\ media\ store\nset\ cursor\ \[borg\ content\ query\ content://media/external/audio/media\]\n#\ read\ out\ records\nwhile\ \{\[\$cursor\ move\ 1\]\}\ \{\n\ \ \ \ puts\ \[\$cursor\ getrow\]\n\}\n#\ many\ rows\ of\ output\ ...\ e.g.\n_id\ 3704\ _data\ /mnt/sdcard/music/mm/the_pale_emperor/04the_mephistopheles_of_los_angeles.mp3\ _display_name\ 04the_mephistopheles_of_los_angeles.mp3\ _size\ 7135360\ mime_type\ audio/mpeg\ date_added\ 1422041426\ is_drm\ 0\ date_modified\ 1422018634\ title\ \{The\ Mephistopheles\ Of\ Los\ Angeles\}\ title_key\ \{...\}\ duration\ 297195\ artist_id\ 18\ composer\ \{\}\ album_id\ 38\ track\ 4\ year\ 2015\ is_ringtone\ 0\ is_music\ 1\ is_alarm\ 0\ is_notification\ 0\ is_podcast\ 0\ bookmark\ \{\}\ album_artist\ \{\}\ volid\ 1633892149\ alive\ 1\ artist_id:1\ 18\ artist_key\ \{...\}\ artist\ \{Marilyn\ Manson\}\ album_id:1\ 38\ album_key\ \{...\}\ album\ \{The\ Pale\ Emperor\}\n======\n\nThe\ playlists\ are\ in\n======\ncontent://media/external/audio/playlists\n======\n\nUsing\ the\ \"_id\"\ column\ (345\ in\ this\ example)\ of\ a\ specific\ playlist\ you\ can\ read\ out\ its\ members\n======\ncontent://media/external/audio/playlists/345/members\n======\n\nFor\ further\ information\ use\ the\ source,\ Luke,\ of\ Android's\ MediaStore\ .../frameworks/base/core/java/android/provider/MediaStore.java.\nSadly,\ an\ overview\ on\ the\ tables\ and\ relations\ of\ the\ media\ meta\ information\ in\ our\ shiny\ tablets\ and\ smart\ phones\ would\ have\ fit\ on\ a\ single\ cheat\ sheet\ but\ in\ our\ Brave\ New\ Software\ World\ that\ has\ to\ be\ expressed\ as\ tons\ of\ Java\ classes\ and\ interfaces.\n\n======\n\[MDD\]:\ \ It\ would\ be\ great\ if\ the\ \[Muzic\]\ MIDI\ package\ could\ be\ added,\ making\ it\ easy\ to\ create\ games\ like\ \[Muse\]\ that\ could\ make\ direct\ MIDI\ calls\ on\ Android.\n\n<<categories>>Android|AndroWish regexp2} CALL {my render {AndroWish Feature Requests} **Features\ to\ be\ added\ to\ AndroWish**\n\n\[MG\]\ would\ love\ to\ see\ support\ for\ the\ \[vfs\]\ package,\ a\ requirement\ for\ loading\ \[starkit\]s.\n\n\[chw\]\ the\ \[vfs\]\ package\ is\ now\ included\ starting\ with\ the\ ''\"James\ Joyce\"''\ edition\ (2014-01-13).\n\n\[MG\]\ Brilliant,\ thanks\ for\ the\ quick\ response.\n\n\[MG\]\ Follow-up:\ I\ installed\ the\ newer\ version\ of\ AndroWish\ in\ the\ emulator,\ did\ a\ \n======\npackage\ require\ starkit\n======\nwhich\ worked\ (1.3.3).\ I\ then\ tried\ to\ \[source\]\ my\ starkit,\ but\ that\ failed\ with\ the\ error\n\n======\ncan't\ find\ package\ vfs::mkcl\n\ \ while\ executing\n\"package\ require\ vfs::mkcl\"\n\ \ (procedure\ \"::vfs::mk4::Mount\"\ line\ 4)\n\ \ invoked\ from\ within\n\"::vfs::mk4::Mount\ /storage/sdcard/Download/starkit.kit\ /storage/sdcard/Download/starkit.kit\ -readonly\"\n\ \ (\"eval\"\ body\ line\ 1)\n\ \ invoke\ from\ within\n\"eval\ \[list\ ::vfs::\$\{driver\}::Mount\ \$self\ \$self\}\ \$args\"\n======\n\n\[chw\]\ so\ there's\ something\ missing\ in\ the\ CVS\ version\ of\ vfs.\ Can\ you\ please\ point\ me\ to\ where\ I\ can\ fetch\ a\ complete\ vfs\ source\ archive\ including\ the\ required\ stuff\ for\ starkits?\ There\ must\ also\ be\ some\ C\ code\ which\ needs\ to\ be\ adapted\ for\ Android\ which\ I\ didn't\ find\ on\ the\ web,\ either.\n\n\n\[MG\]\ It\ looks\ like\ it\ tries\ to\ load\ vfs::mkcl\ as\ a\ fallback\ when\ the\ \[Mk4tcl\]\ package\ isn't\ available.\ I\ can't\ actually\ find\ any\ info\ about\ vfs::mkcl,\ but\ it\ seems\ \[Mk4tcl\]\ can\ be\ obtained\ from\ \[http://equi4.com/metakit/tcl.html\]\n\n\[chw\]\ 2014-01-18:\ hopefully\ fixed\ with\ the\ ''\"Amphetamine\"''\ edition\ which\ includes\ the\ read-only\ tclkit\ vqtcl\ module.\n\n\[MG\]\ 99%!\ It\ errors\ out\ when\ trying\ to\ \[cd\]\ to\ a\ directory\ in\ a\ starkit\ (complains\ it's\ not\ a\ directory,\ while\ under\ other\ OSes\ you\ can\ CD\ into\ the\ file\ structure\ of\ a\ starkit\ without\ a\ problem).\ Curiously,\ though,\ it\ has\ created\ images\ with\ `image\ create\ photo\ -file\ ...`\ which\ are\ located\ inside\ the\ starkit.\ Anyway,\ I\ removed\ the\ \[cd\]\ and\ it\ loaded\ the\ starkit,\ which\ seems\ to\ be\ running\ perfectly.\ Thank\ you\ :)\n\n\[chw\]\ 2014-01-21:\ when\ I\ try\ this\ on\ /storage/sdcard0/clock.kit\n======\npackage\ require\ vfs::mkcl\nvfs::mkcl::Mount\ /storage/sdcard0/clock.kit\ /mystarkit\n======\nit\ is\ possible\ to\ cd\ into\ the\ mounted\ startkit\ on\ /mystarkit,\ to\ glob,\ and\ to\ open\ files.\n\n----\n\n\[ramsan\]\ I\ would\ like\ to\ see\ a\ short\ tutorial\ in\ how\ to\ compile\ a\ simple\ tcl\ package\ that\ contains\ c/c++\ code\n\n\[chw\]\ unfortunately\ unsupported\ as\ a\ standalone\ piece\ since\ everything\ is\ built\ as\ a\ whole\ and\ finally\ packaged\ into\ an\ APK.\ So\ your\ best\ option\ is\ to\ fetch\ the\ complete\ source,\ add\ your\ tcl\ package\ containing\ native\ code\ to\ the\ .../jni\ subdirectory\ of\ the\ source\ tree,\ pick\ one\ of\ the\ Android.mk\ makefiles\ from\ the\ many\ ported\ extensions,\ adapt\ it\ to\ your\ package,\ add\ an\ appropriate\ pkgIndex.tcl\ to\ the\ .../assets\ subdirectory,\ and\ build\ the\ beast\ using\ Android\ NDK/SDK\ and\ \"ant\".\ A\ short\ recipe\ is\ in\ \[Tcl/Tk\ on\ android\ poll\].\n\n\[ramsan\]\ But\ then\ ...\ I\ cannot\ offer\ the\ package\ to\ other\ users.\ In\ my\ specific\ case,\ I\ have\ RamDebugger\ running\ ok\ on\ Androwish.\ But\ some\ parts\ of\ this\ program\ are\ made\ in\ c++\ to\ instrument\ and\ colorize\ files\ faster.\ How\ can\ I\ create\ the\ dynamic\ library\ for\ this\ code\ in\ order\ for\ RamDebugger\ to\ run\ properly?\n\n\[chw\]\ 2014-01-21:\ glimpsed\ over\ RamDebugger-source8.1.zip\ and\ saw\ many\ DLLs\ and\ shared\ libraries\ but\ no\ source\ code.\ As\ stated\ above,\ you\ should\ fetch\ the\ AndroWish\ sources,\ put\ your\ sources\ of\ those\ DLLs/shared\ libraries\ below\ the\ .../jni\ subdirectory\ and\ create\ appropriate\ Android.mk\ makefiles.\ Finally,\ you\ might\ want\ to\ call\ your\ application\ \"RamDebugger\":\ you\ have\ to\ subclass\ from\ tk.tcl.wish.AndroWish\ (an\ empty\ class\ body\ should\ do)\ in\ order\ to\ give\ the\ application\ another\ package/class\ name.\ That\ java\ stuff\ is\ below\ the\ .../src\ subdirectory.\ Adapt\ the\ AndroidManifest.xml\ to\ that\ package/class\ name\ and\ change\ the\ resources\ in\ .../res\ (strings,\ icons)\ to\ your\ needs.\ That\ should\ give\ you\ your\ RamDebugger\ APK\ at\ the\ end.\n\n\[ramsan\]\ 2014-01-22:\ You\ are\ describing\ how\ to\ create\ an\ application\ only\ for\ myself.\ But\ this\ is\ not\ the\ objective.\ The\ objective\ is\ to\ create\ a\ package,\ an\ editor\ and\ debugger,\ that\ can\ be\ used\ by\ any\ user\ of\ androwish.\ (NOTE:\ the\ source\ code\ is\ at:\ scripts/RamDebuggerInstrumenter.cc).\ You\ can\ access\ the\ fossil\ source\ code\ at:\ \[http://www.compassis.com/c/ramdebugger/index\]\n\n\[chw\]\ 2014-01-23:\ then\ package\ RamDebugger\ into\ a\ starkit.\ I'm\ afraid,\ however,\ that\ for\ the\ shared\ libraries\ you\ have\ to\ carry\ out\ the\ above\ mentioned\ steps\ (get\ AndroWish\ sources,\ Android\ NDK,\ put\ C/C++\ sources\ below\ .../jni,\ create\ Android.mk,\ use\ ndk-build\ to\ generate\ shared\ libraries).\ Another\ point\ to\ watch\ out\ for\ is\ that\ AndroWish\ builds\ for\ ARM\ and\ x86\ processors,\ i.e.\ there\ are\ two\ versions\ of\ each\ shared\ library\ which\ you\ have\ to\ put\ into\ the\ starkit.\ And\ the\ package\ specific\ Tcl\ load\ command\ must\ use\ \$tcl_platform(machine)\ to\ find\ out\ which\ library\ to\ load\ (I've\ never\ tested\ loading\ native\ code\ from\ a\ starkit,\ BTW).\n\n----\n\[PO\]\ would\ like\ to\ have\ an\ Android\ theme\ and\ the\ possibility\ to\ simulate\ right\ clicks\ (if\ possible).\n\n\[dbohdan\]\ 2014-12-07:\ It\ would\ be\ really\ nice\ to\ have\ a\ Ttk\ (pixmap)\ theme\ based\ on\ \[https://developer.android.com/design/style/themes.html%|%Holo\]\ or\ the\ more\ recent\ \[https://developer.android.com/design/material/%|%Material\ Design\]\ to\ make\ AndroWish\ apps\ better\ blend\ in\ with\ the\ rest\ of\ Android.\ (This\ was\ the\ complaint\ in\ the\ most\ upvoted\ comment\ in\ the\ AndroWish\ thread\ \[https://news.ycombinator.com/item?id=8572292%|%on\ Hacker\ News\].)\ However,\ I\ don't\ know\ anyone\ who'd\ be\ up\ to\ the\ task\ of\ designing\ this\ kind\ of\ a\ pixmap\ theme\ right\ now\;\ certainly\ not\ me.\ In\ the\ meantime\ I\ wonder\ how\ much\ you\ could\ accomplish\ by\ just\ tweaking\ the\ colors/font\ on\ Tk\ controls\ and\ putting\ a\ gradient\ in\ the\ background.\ That's\ more\ or\ less\ how\ (some)\ \[http://phonegap.com/%|%PhoneGap\]\ apps\ try\ to\ fit\ in\ (except\ that\ they\ use\ HTML\ and\ CSS,\ with\ offers\ glow\ effects\ and\ whatnot),\ with\ mixed\ results.\n\nAnother\ school\ of\ thought\ says\ that\ if\ you\ can't\ behave\ 100%\ native\ you\ shouldn't\ try\ to\ look\ native\ at\ all\;\ instead,\ try\ to\ find\ your\ own\ a\ distinct\ look.\ Perhaps\ the\ latter\ approach\ could\ work\ more\ easily\ for\ AndroWish\ and\ apps\ made\ with\ it.\n\n\[chw\]\ 2014-12-07:\ schools,\ tastes,\ themes\ come\ and\ go\ faster\ as\ one\ can\ catch\ 'em\ up.\ Why\ care\ about\ it?\ All\ that\ I\ can\ do\ is\ to\ provide\ the\ stuff\ we\ like\ on\ our\ \"old-shool\"\ (desk|lap|whatever)tops\ for\ our\ new\ shiny\ smartphonish\ or\ tabletish\ gadgetry.\ Of\ course,\ I'm\ open\ for\ really\ good\ looking\ alternative\ themes\ but\ I'm\ not\ an\ artist,\ painter,\ designer,\ Steve\ Jobs.\ What\ about\ going\ back\ to\ the\ roots,\ back\ to\ the\ \"bisque\"\ theme\ of\ the\ very\ beginnings\ of\ Tk,\ which\ looked\ rather\ \"Material\"ly\ designed\ like\ the\ Dunes\ where\ once\ upon\ a\ time\ the\ sandworms\ lived\ and\ where\ all\ that\ silicon\ came\ from.\n\n----\n\[jima\]\ 2014-01-14\n\nAs\ asked\ for\ in\ the\ Tcler's\ Chat:\n\nDo\ you\ know\ if/how\ a\ script\ can\ be\ started\ with\ AndroWish\ instead\ of\ starting\ it\ with\ an\ interactive\ console\ and\ a\ tk\ default\ window?\n\nThis\ question\ has\ also\ arised\ in\ comp.lang.tcl:\n\nhttps://groups.google.com/forum/#!topic/comp.lang.tcl/m9A6bWKPi_8\n\n\[chw\]\ that\ is\ were\ the\ \"borg\"\ command\ comes\ into\ play\ as\ mentioned\ in\ \[AndroWish\]:\n\n\ \ \ borg\ shortcut\ add\ <name-of-shortcut>\ <file-to-be-sourced>\ <png-icon-as-base64-string>\n\nThe\ last\ parameter\ can\ be\ left\ out\ in\ which\ case\ Aladdin's\ magic\ device\ is\ shown.\ However,\ YMMV\ depending\ on\ Android\ version.\ On\ my\ 4.x\ devices\ it\ worked\ but\ the\ opposite\ (borg\ shortcut\ delete)\ did\ not.\ The\ <file-to-be-sourced>\ must\ be\ given\ as\ an\ absolute\ path\ and\ it\ must\ be\ readable\ by\ the\ user\ id\ under\ which\ the\ AndroWish\ package\ has\ been\ registered\ by\ the\ Android\ installer.\n\n\n----\n'''\[ed.s\]\ -\ 2014-02-12\ 02:24:31'''\n\n1.BTL/RBC,\ please!\ I\ would\ love\ even\ a\ partial\ implementation\ -\ specifically,\ graph,\ if\ this\ is\ easier\ than\ a\ full\ implementation.\n\n2.I\ am\ assuming\ things\ like\ complex/fourier\ can\ be\ simply\ included,\ as\ they\ are\ completely\ self\ contained\ and\ require\ no\ hardware\ access,\ is\ this\ right?\ Still,\ is\ there\ a\ place\ one\ can\ place\ such\ common\ tools?\ On\ Linux\ it\ would\ be\ /usr/share/tcl\ or\ something\ similar,\ could\ we\ have\ a\ /storage/sdcard0/AndroWish\ take\ up\ the\ same\ role?\ This\ would\ also\ be\ a\ good\ place\ to\ contain\ .androwishrc,\ to\ be\ executed\ at\ startup,\ if\ present\ (default\ font\ sizes,\ etc.).\ User\ scripts\ would\ also\ be\ placed\ there,\ and\ I\ would\ also\ write\ a\ little\ script\ that\ looks\ through\ this\ space,\ finds\ all\ file.tcl\ (and\ the\ matching\ file.png,\ if\ available)\ and\ create\ buttons\ associated\ with\ launching\ each\ of\ these\ (Borg\ shortcut\ ...).\n\n----\n'''\[Superlinux\]\ -\ 2014-02-26\ 06:08:47'''\nThere\ should\ be\ a\ way\ to\ check\ whether\ AndroWish\ is\ installed\ after\ I\ made\ my\ HelloTclTk\ package.\ \nIf\ it's\ not\ installed,\ I\ should\ be\ able\ to\ grab\ it\ from\ Google\ Play\ store.\ Whenever\ \[chw\]\ wants,\ I\ can\ let\ him\ upload\ AndroWish\ releases\ \non\ my\ Google\ Developer\ Console\ account\ by\ sending\ me\ the\ signed\ released\ package.\n\nIn\ HelloTclTk.java\ file,\ \ the\ following\ override\ of\ OnCreate(Bundle\ savedInstanceState)\ method\ can\ be\ added\ as\ a\ checkpoint.\ this\ is\ not\ Tcl.\ this\ is\ purely\ in\ Java.\n\n======cpp\n\ \ \ \ PackageManager\ pm\ =\ getPackageManager()\;\n\ \ \ \ List<ResolveInfo>\ activityList\ =\ pm.queryIntentActivities(shareIntent,\ 0)\;\n\ \ \ \ boolean\ AndroWish_is_installed=false\;\n\ \ \ \ for\ (final\ ResolveInfo\ app\ :\ activityList)\ \{\n\ \ \ \ \ \ \ \ if\ ((app.activityInfo.name).contains(\"wish\"))\ \{\n\ \ \ \ \ \ \ \ \ \ \ AndroWish_is_installed=true\;\n\ \ \ \ \ \ \ \ \ \ \ break\;\n\ \ \ \ \ \ \ \ \}\n\ \ \ \ \}\n\ \ \ \ if\ (!AndroWish_is_installed)\{\n\ \ \ \ \ \ \ \ /*don't\ forget\ to\ define\ in\ strings.xml\ the\ value\ \"@string/You_Must_Install_AndroWish\"\ ,\n\ \ \ \ \ \ \ \ \ \ just\ to\ display\ the\ same\ meaning\ in\ as\ many\ languages\ as\ possible.\n\ \ \ \ \ \ \ \ \ */\n\ \ \ \ \ \ \ \ Toast.makeText(TableOfContents.this,R.string.You_Must_Install_AndroWish,\ Toast.LENGTH_LONG).show()\;\n\ \ \ \ \ \ \ \ //Let's\ assume\ that\ the\ Androwish\ package\ name\ is\ the\ following\ string\n\ \ \ \ \ \ \ \ String\ package_name=\"tk.tcl.wish\"\;\n\ \ \ \ \ \ \ \ //This\ will\ open\ the\ Play\ Store\ app\ to\ the\ following\ link\n\ \ \ \ \ \ \ \ Uri\ marketuriString\ =\ Uri.parse(\"market://details?id=\"\ +\ package_name)\;\n\ \ \ \ \ \ \ \ //\ \"market://details?id=tk.tcl.wish\"\n\ \ \ \ \ \ \ \ Intent\ intent\ =\ new\ Intent(Intent.ACTION_VIEW,\ marketuriString)\;\n\ \ \ \ \ \ \ \ startActivity(intent)\;\n\ \ \ \ \}\n======\n\n\[chw\]\ 2014-02-27:\ good\ idea.\ The\ library\ stuff\ (also\ in\ Java)\ which\ is\ inherited\ by\ the\ HelloTclTk\ class\ has\ a\ static\ initializer\ which\ already\ might\ have\ detected\ the\ absence\ of\ vital\ native\ shared\ libraries\ (since\ it\ was\ not\ able\ to\ load\ them).\ Therefore\ code\ to\ deal\ with\ prompting\ the\ user\ for\ AndroWish\ installation\ belongs\ in\ that\ library,\ not\ in\ the\ APP\ template.\ But\ implementing\ that\ stuff\ is\ low\ priority\ on\ my\ list,\ since\ there\ are\ more\ problematic\ open\ ends\ left.\n\n\[chw\]\ 2014-03-03:\ this\ is\ partly\ solved\ in\ the\ ''Pioneer\ 10''\ edition.\n\n----\n'''\[bmidy\]\ -\ 2014-02-26\ 08:45:09'''\n\nHi,\ very\ nice\ work!!\n\nI\ d\ like\ to\ get\ Tix\ support\ and\ also\ BLT\ like\ another\ one\ asked.\n\nThanks\n\n\[chw\]\ 2014-02-26:\ I\ can\ see\ benefits\ of\ having\ BLT\ for\ data\ visualization\ but\ what\ gives\ Tix\ when\ there\ are\ ttk,\ treeview,\ tktable,\ tklib\ etc.\ all\ available\ and\ ready\ to\ use?\n\n\[bmidy\]\ -\ 2014-02-27:\ Hi,\ I\ d\ like\ to\ get\ Tix\ as\ I\ used\ it\ a\ lots\ in\ many\ of\ my\ projects,\ I\ d\ like\ to\ port\ to\ android.\n\n\n----\n'''\[pbb\]\ -\ 2014-02-27\ 11:01:12'''\n\nI\ would\ like\ to\ have\ gnocl\ (Tcl/GTK+\ bindings)\ package\ included\ in\ AndroWish.\ Mainly\ for\ its\ text\ widget,\ which\ can\ do\ BIDI\ type\ rendering\ for\ Sanskrit\ script\ using\ the\ Devanagari\ font.\n\n\[chw\]\ 2014-02-27:\ postponed\ until\ a\ stable\ GTK\ port\ is\ available\ for\ Android.\ Better\ give\ me\ a\ pointer\ to\ a\ fribidi\ or\ ICU/ubidi\ patch\ for\ the\ Tk\ text\ widget.\n\n----\n'''\[bmidy\]\ -\ 2014-02-27\ 14:17:29'''\n\nHi,\ I\ also\ wanted\ to\ use\ your\ great\ Androwish\ to\ open\ serial\ port\ using\ a\ OTG\ USB\ adapter\ with\ an\ USB-serial\ adapter.\nso\ the\ serial\ port\ is\ available\ as\ /dev/ttyUSB0\ but\ I\ could\ not\ use\ the\ \"fconfigure\ -mode\"\ command.\nIs\ there\ a\ reason\ ?\ a\ workaround\ to\ open\ serial\ port.\n\nThanks\n\n\[chw\]\ 2014-02-27:\ probably\ a\ permission\ issue.\ Android\ APPs\ normally\ aren't\ allowed\ to\ open\ character\ devices.\ Since\ about\ Android\ 4.0\ there's\ support\ for\ USB\ device\ access\ from\ Java\ code,\ see\ the\ pointer\ to\ the\ usb-serial\ github\ project\ above.\ The\ downside\ is\ that\ the\ entire\ device\ driver\ seems\ to\ require\ to\ be\ written\ in\ Java.\ Adding\ the\ usb-serial\ is\ on\ my\ \[wish\]\ list,\ but\ has\ very\ low\ priority.\n\n----\n'''\[bmidy\]\ -\ 2014-02-27\ 15:52:36'''\n\nAlso\ another\ thing\ that\ would\ be\ interesting:\ As\ I\ m\ using\ a\ SG\ Note\ 3\ I\ get\ a\ 1920x1080\ resolution\ which\ is\ good\ but\ all\ looks\ like\ very\ small.\nSo\ it\ will\ be\ nice\ if\ it\ would\ be\ possible\ to\ have\ the\ possibility\ to\ zoom/pinch\ on\ the\ screen,\ but\ without\ additional\ code,\ I\ mean\ if\ it\ could\ be\ built-in\ in\ the\ \"Tk/X\"\ implementation.\nI\ do\ not\ know\ If\ my\ explanation\ is\ good\ enough,\ I\ hope.\n\n\[chw\]\ 2014-03-03:\ in\ the\ ''Pioneer\ 10''\ edition\ fonts\ are\ now\ chosen\ based\ on\ pixel\ density.\ It\ should\ be\ readable\ on\ full\ HD\ displays\ now.\n\n----\n'''\[bmidy\]\ -\ 2014-02-27\ 17:10:50'''\n\nAlso\ another\ things\ that\ would\ be\ usefull:\ Associate\ .tcl\ file\ with\ the\ AndroWish\ app,\ so\ that\ the\ Androwish\ start\ and\ load\ the\ .tcl\ file.\nSo\ it\ would\ be\ very\ easy\ to\ test\ our\ scripts.\n\n\[chw\]\ 2014-03-02:\ already\ implemented\ by\ android.intent.action.VIEW\ for\ file\ URLs\ with\ any\ pattern\ and\ by\ android.intent.action.SEND\ for\ MIME\ type\ application/x-tcl.\ YMMV\ depending\ on\ Android's\ launcher\ and/or\ file\ manager.\n\n----\n'''\[Superlinux\]\ -\ 2014-03-02\ 09:10:20'''\n\nHi.\ How\ can\ I\ force\ the\ virtual\ keyboard\ to\ be\ only\ numeric,\ or\ to\ make\ the\ keyboard\ help\ me\ in\ typing\ Internet\ addresses\ ..etc?\n\n\[chw\]\ 2014-03-02:\ This\ is\ not\ supported\ by\ the\ underlying\ libSDL\ 2.0.1\ infrastructure.\ What\ about\ asking\ for\ this\ feature\ on\ http://www.libsdl.org\ ?\ Update:\ seems\ to\ be\ controllable\ by\ a\ simple\ integer\ mask,\ will\ try\ to\ add\ this\ in\ the\ \"sdltk\ textinput\"\ command.\n\n\[chw\]\ 2014-03-03:\ in\ the\ ''Pioneer\ 10''\ edition\ that\ mask\ is\ added\ to\ the\ \"sdltk\ textinput\"\ command.\ However,\ the\ standard\ event\ bindings\ don't\ use\ this\ feature.\n\n----\n'''\[Superlinux\]\ -\ 2014-03-04\ 10:53:22'''\n\nWell\ A\ reminder\ here\ to\ everyone,\ if\ you\ updated\ to\ AndroWish\ runtime\ \"Pioneer\ 10\ edition,\ 2014-03-03\",\ then\ remember\ to\ update\ the\ java\ library\ of\ file\ name\ \"tcltkapplib.jar\"\ that\ comes\ in\ the\ HelloTclTk\ skeleton\ project.\ Just\ re-Download\ the\ HelloTclTk\ skeleton\ project\ from\ http://www.ch-werner.de/sdltk/AndroWish/HelloTclTk/HelloTclTk.zip%|%here%|%\ .\ Unpack\ the\ HelloTclTk.zip.\ From\ the\ unpacking\ locate\ and\ copy\ and\ replace\ \ \"tcltkapplib.jar\"\ to\ your\ own\ project\ library\ folder\ named\ \"libs\".\n\n----\n'''\[Superlinux\]\ -\ 2014-03-05\ 14:23:45'''\n\nRegarding\ the\ keyboard\ input\ type,\ how\ about\ making\ a\ quick\ command\ like\ this:\n\n======\narray\ set\ entry_vs_input_type\ \{\ entry1_window_path\ entry1_input_type\ entry2_window_path\ entry2_input_type\ entry3_window_path\ entry3_input_type\ ...\ ...\ \}\nsdltk\ entry_input_types\ \$entry_vs_input_type\n======\n\nAnd\ this\ command\ is\ used\ at\ the\ bottom\ of\ the\ script\ after\ the\ last\ defined\ \[entry\].\ And\ has\ automatic\ \[bind\]\ <Focus>\ for\ all\ entries\ in\ the\ array.\n\n----\n'''\[eds\]\ -\ 2014-03-07\ 00:30:23'''\n\nA\ very\ simple\ request:\ could\ we\ have\ another\ env\ variable\ under\ AndroWish\ that\ would\ tell\ unambiguosly\ that\ we\ are\ under\ Android?\n\nOn\ my\ desktop:\ \ set\ env(MACHTYPE)\nyields:\ \ \ \ \ \ \ \ \ i686-suse-linux\n\nUnder\ AndroWish\ it\ is\ not\ defined.\ \ It\ would\ be\ very\ handy\ to\ test\ for\ something\ like\ this,\ to\ make\ AndroWish-specific\ changes.\n\n\[chw\]\ 2014-03-07:\ MACHTYPE\ is\ bash\ specific.\ Run\ tclsh\ from\ tcsh\ and\ you\ get\ ''i686''.\ Newer\ \[AndroWish\]es\ support\ this\ construct\n\n\ \ set\ android\ 0\n\ \ catch\ \{set\ android\ \[sdltk\ android\]\}\n\nto\ safely\ find\ out\ if\ you're\ running\ on\ Android.\n\n----\n'''\[eds\]\ -\ 2014-03-07\ 00:43:13'''\n\nA\ very\ useful\ feature:\ \n\ \ \ \ :\ \ \ chw\ 2014-03-03:\ in\ the\ Pioneer\ 10\ edition\ fonts\ are\ now\ chosen\ based\ on\ pixel\ density.\n\nBUT:\ it\ seems\ to\ override\ not\ just\ the\ defaults,\ but\ also\ the\ explicitly\ controlled\ font\ sizes,\ which\ messes\ up\ a\ picture,\ made\ with\ labels\ of\ a\ very\ particular\ size,\ as\ these\ labels\ now\ grow\ and\ start\ overlapping\ and\ make\ a\ mess\ of\ things.\ \ Pre-Edison\ editions\ worked\ just\ fine\ on\ an\ unedited\ script\ from\ Linux.\n\nIf\ I\ edit\ the\ script\ to\ scale\ back\ from\ 10\ to\ 6\ point\ font,\ the\ labels\ on\ the\ picture\ are\ back\ to\ normal,\ but\ if\ I\ run\ the\ same\ script\ under\ Linux\ or\ windows,\ they\ are\ way\ too\ small.\ \ Sounds\ like\ I\ need\ a\ system-dependent\ switch,\ or\ a\ \"Auto-scale\ fonts\"\ should\ be\ a\ selectable\ option\ under\ AndroWish.\n\n\[chw\]\ 2014-03-07:\ positive\ font\ sizes\ are\ now\ scaled\ to\ real\ world\ points\ (as\ on\ UN*X/Windows/MacOSX).\ Negative\ font\ sizes\ are\ pixel\ based.\ If\ you\ want\ to\ control\ your\ layout\ on\ pixel\ basis,\ use\ negative\ numbers.\ See\ the\ Tk\ documentation\ of\ the\ font\ command,\ and\ play\ with\ ''tk\ scaling''\ (which\ I've\ never\ tested\ with\ AndroWish).\n\n----\n'''\[GCS\]\ 2014-03-13'''\n\nIt\ would\ be\ nice\ to\ have\ events\ associated\ with\ the\ Menu\ and\ Back\ buttons,\ and\ the\ Volume\ Up/Down\ keys.\ Apologies\ if\ they\ are\ already\ there\ and\ I\ missed\ them.\n\nPS\ I\ am\ really\ curious\ about\ the\ development\ of\ AndroWish--is\ it\ just\ a\ hobby,\ or\ part\ of\ your\ work?\ Do\ you\ have\ specific\ project(s)\ in\ mind?\ ...?\ Anyhow,\ I\ am\ very\ very\ happy\ you\ are\ doing\ it.\n\n\[chw\]\ 2014-03-15:\ at\ least\ the\ Back\ button\ is\ mapped\ as\ keycode\ 270\ and\ starting\ with\ \"''The\ Ides\ of\ March''\"\ edition\ as\ keysym\ '''Break'''.\ The\ volume\ keys\ aren't\ exposed\ by\ SDL\ but\ consumed\ by\ the\ system.\ Unfortunately\ I\ have\ no\ device\ with\ a\ Menu\ key.\ If\ you\ can\ test\ the\ Menu\ key\ with\ this\ code\ snippet\n\n\ \ \ \ bind\ all\ <Key>\ \{\ puts\ \"keycode=%k\ \ \ \ \ keysym=%K\"\ \}\n\na\ later\ AndroWish\ could\ provide\ a\ mapping\ to\ an\ X11\ keysym.\ PS:\ yes,\ I\ have\ some\ commercial\ projects\ based\ on\ Tcl/Tk\ which\ I\ hope\ to\ port\ to\ the\ Android\ platform\ someday.\n\n'''\[GCS\]\ 2014-03-15''':\ Here\ is\ the\ output\ from\ hitting\ the\ Back\ and\ Menu\ buttons:\ \ \n======\nkeycode=270\ \ \ \ \ keysym=Break\nkeycode=118\ \ \ \ \ keysym=App\n======\nSo\ it\ seems\ what\ I\ need\ is\ already\ there!\ BTW,\ my\ plan\ is\ use\ these\ events\ to\ cycle\ through\ the\ open\ windows,\ since\ my\ SQLite\ GUI\ can\ have\ several\ open,\ and\ I\ know\ of\ no\ other\ convenient\ navigation\ mechanism.\n\nThanks\ for\ your\ prompt\ response.\n\n\[chw\]\ 2014-03-15:\ Right\ now,\ I've\ learned\ that\ the\ Menu\ key\ disappeared\ in\ Android\ >=\ 4.0\ (or\ was\ it\ 3.0\ already).\ Thus,\ I\ suggest\ only\ to\ use\ the\ Back\ button,\ if\ you\ want\ to\ ensure,\ that\ your\ program\ can\ be\ operated\ on\ all\ devices.\ Maybe\ some\ years\ into\ the\ future\ (Android\ 8.1\ comes\ to\ mind)\ even\ the\ Back\ button\ will\ have\ been\ eliminated\ (and\ those\ smart\ little\ things\ read-ahead\ our\ minds\ directly\ using\ DWIWM\ technology\ \;-)\n\n----\n'''\[hkoba\]\ 2014-03-21'''\n\nHi.\ Today,\ I\ wrote\ a\ minimum\ https://gist.github.com/hkoba/9682329%|%patch%|%\ to\ enable\ CJK\ input\ via\ textinput.\ It\ worked\ for\ me(but\ not\ enough\ tested).\nAnyway,\ without\ this,\ current\ AndroWish\ get\ corrupted\ string\ from\ input\ method.\ So,\ please\ include\ this\ into\ next\ release!\n\n\[chw\]\ 2014-03-22:\ thank\ you,\ \[hkoba\]-san.\ Your\ patch\ will\ go\ into\ the\ next\ edition.\ Did\ you\ find\ out\ the\ purpose\ of\ the\ SDL_TEXTEDITING\ event?\ Is\ that\ used\ for\ CJK\ input?\n\n----\n'''\[hkoba\]\ -\ 2014-03-22\ 07:44:36'''\n\n\[hkoba\]:\ Thank\ you\ \[chw\]!\ If\ I\ understood\ correctly,\ SDL_TEXTEDITING\ is\ sent\ by\ input\ method\ to\ inform\ application\nabout\ current(and\ possible)\ translation\ result.\ When\ user\ hits\ RETURN,\ it\ became\ final\ result\ and\ application\ will\ receive\ it\ via\ SDL_TEXTINPUT.\nFor\ more\ information,\ see\ http://wiki.libsdl.org/Tutorials/TextInput%|%SDL\ tutorial%|%.\ From\ 2...4\ is\ TEXTEDITING,\ 5\ is\ TEXTINPUT,\ I\ think.\n\nSo,\ expected\ (future,\ perfect)\ behavior\ is\ \"previewing\ such\ potential\ result\ as\ overlay\ on\ the\ spot\ of\ final\ destination\".\n\n\[chw\]\ 2014-03-22:\ I\ see,\ however\ (as\ far\ as\ I\ was\ able\ to\ type\ in\ Japanese\ or\ Korean\ symbols\ which\ are\ unreadable\ for\ me)\ even\ the\ Android\ contacts\ app\ does\ not\ use\ the\ \"on\ the\ spot\"\ preview,\ but\ instead\ there's\ a\ preview/selection\ area\ above\ the\ on-screen\ keyboard.\ OTOH,\ the\ SDL\ library\ supports\ the\ SDL_TEXTEDITING\ event\ on\ the\ Android\ platform.\ Would\ it\ make\ sense\ to\ synthesize\ a\ text\ selection\ (Entry\ and\ Text\ widgets)\ of\ the\ inserted\ text\ by\ SDL_TEXTEDITING\ so\ that\ the\ later\ commit\ by\ SDL_TEXTINPUT\ would\ first\ erase\ the\ SDL_TEXTEDITING\ selection\ and\ then\ replace\ it\ by\ its\ own\ string?\n\n----\n'''\[hkoba\]\ -\ 2014-03-23\ 02:41:53'''\n\n\[hkoba\]:\ To\ see\ \"on\ the\ spot\"\ preview,\ you\ may\ need\ to\ change\ settings\ of\ input\ method.\nUnder\ correct\ settings,\ you\ can\ see\ the\ preview\ in\ Android\ contact\ too.\ \nSee\ these\ https://plus.google.com/117341617553275163448/posts/8Cd6SLDUaxg%|%photos%|%.\n\nFor\ about\ \"synthesized\ text\ selection\",\ I'm\ not\ sure\ it\ is\ good\ way\ but\ if\ is\ not\ visible\ from\ Tk\ widget\ tree(like\ wish\ console),\ it\ may\ be\ a\ possible\ solution.\nActually,\ I'm\ bit\ curious\ about\ how\ other\ SDL\ apps\ implement\ this.\ There\ would\ be\ some\ recommended\ way\ (for\ SDL\ or\ Android),\ I\ guess.\nSo,\ IMHO,\ before\ implementing\ \"synthesized\ text\ selection\",\ we\ would\ better\ search\ other\ examples.\n\n\[chw\]\ 2014-03-23:\ again,\ I\ see,\ thank\ you\ \[hkoba\]-san.\ That\ is\ not\ quite\ exactly\ what\ my\ ASUS\ phablet\ displays\ when\ I\ select\ one\ of\ those\ languages\ I\ can't\ speak\ and\ read,\ but\ they\ present\ the\ preview\ of\ text\ input\ above\ the\ on-screen\ keybord\ as\ on\ your\ photos.\ So\ I\ think\ our\ best\ option\ for\ now\ is\ to\ add\ your\ patch\ and\ see\ how\ other\ languages\ (neither\ mine\ nor\ yours)\ go\ with\ \[AndroWish\].\ (Poor\ me\ at\ school\ last\ century.\ Only\ to\ become\ another\ brick\ in\ the\ wall.\ Should\ have\ learned\ more\ languages\ many\ years\ ago\ :(\n\n\[hkoba\]\ 2014-03-24:\ I\ agreed\ with\ your\ above\ option\ and\ thank\ you\ for\ including\ my\ patch.\ If\ you\ find\ problems\ about\ applying\ my\ patch,\ please\ let\ me\ know.\nFor\ about\ another\ SDL\ exampl,\ I\ searched\ \"SDL_TEXTEDITING\"\ deeply\ on\ github\ code\ search\ yesterday,\ \nbut\ I\ could\ find\ only\ one\ https://github.com/ledyba/Chisa/blob/master/src/chisa/tk/element/TextArea.cpp#L536%|%real\ use%|%.\ \nAnd\ I'm\ not\ sure\ this\ is\ good\ example\ or\ not.\n(For\ about\ reading\ many\ languages,\ same\ applies\ to\ me\;-)\ You\ might\ notice\ my\ english\ is\ strange,\ especially\ about\ tense.\ I\ should\ learn\ them\ more)\n\n----\n\n\[escargo\]\ 2014-04-05:\ It\ would\ be\ nice\ if\ the\ commands\ like\ `borg`\ were\ a\ bit\ more\ self-documenting,\ so\ that\ if\ you\nare\ experimenting\ with\ a\ small\ device\ where\ it's\ not\ practical\ to\ be\ looking\ at\ the\ documentation\ at\ the\ same\ instant,\nyou\ could\ do\ something\ like\ `borg\ ?`\ or\ `borg\ help`\ to\ access\ subcommand\ summaries.\ \[APN\]\ The\ rest\ of\ Tcl\ does\ not\nhave\ this\ feature\ (if\ you\ discount\ the\ informative\ error\ messages)\ so\ not\ clear\ why\ this\ particular\ command\ should.\n\n\[escargo\]\ From\ my\ point\ of\ view,\ the\ lack\ of\ built-in\ documentation\ in\ the\ rest\ of\ Tcl\ is\ a\ misfeature\ in\ the\ rest\ of\nTcl.\ While\ you\ can\ interactively\ force\ some\ of\ the\ informative\ error\ messages\ to\ be\ output,\ having\ useful\ messages\ncome\ out\ when\ you\ request\ them\ would\ be\ far\ better.\n\nCertainly\ it's\ possible\ to\ ignore\ this\ feature\ request\;\ I\ just\ think\ it\ would\ be\ helpful\ to\ be\ able\ to\ get\ any\ command\nto\ provide\ some\ useful\ information\ when\ you\ might\ not\ have\ access\ to\ real\ documentation\ (because\ of\ either\ no\ access\ or\nno\ room\ to\ run\ an\ application\ to\ display\ the\ info.\n\n----\n\[RS\]\ 2014-04-07\ Some\ self-documentation\ could\ be\ done\ as\ often\ in\ Tcl:\n\ %\ info\n\ wrong\ #\ args:\ should\ be\ \"info\ subcommand\ ?argument\ ...?\"\n\ %\ info\ sub#\n\ unknown\ or\ ambiguous\ subcommand\ \"sub#\":\ must\ be\ args,\ body,\ cmdcount,\ commands,\n\ complete,\ default,\ exists,\ frame,\ functions,\ globals,\ hostname,\ level,\ library,\n\ loaded,\ locals,\ nameofexecutable,\ patchlevel,\ procs,\ script,\ sharedlibextension,\n\ tclversion,\ or\ vars\n\ %\ info\ args\n\ wrong\ #\ args:\ should\ be\ \"info\ args\ procname\"\n\ %\n\n----\n'''\[ET\]\ -\ 2014-04-15\ 06:01:07'''\n\nAt\ the\ risk\ of\ stating\ the\ obvious,\ \n\n\ \ \ *\ I\ want\ an\ app\ store\ install\ of\ androwish.\ I\ don't\ want\ to\ deal\ with\ ant,\ java,\ sdks,\ etc.\ Just\ want\ to\ wish\ something.\ I'm\ now\ retired,\ and\ I\ only\ program\ for\ my\ own\ amusement,\ and\ nearly\ all\ using\ tcl/tk.\n\n\ \ \ *\ Then,\ an\ easy\ way\ to\ run\ a\ hello.tcl\ text\ file.\ I\ have\ 2\ thoughts\ on\ this,\ either\ the\ equivalent\ of\ wish\ myprogram.tcl,\ but\ as\ a\ shortcut\ icon\ I\ can\ just\ tap,\ or\ possibly,\ a\ single\ tcl/tk\ program\ which\ can\ easily\ source\ one\ or\ several\ other\ *.tcl\ scripts\ from\ a\ set\ of\ buttons\ inside\ the\ first\ tcl\ program.\n\nFor\ example,\ all\ my\ windows\ systems\ run\ a\ socket\ listener\ that\ can\ eval\ whatever\ is\ sent\ to\ it\ This\ lets\ me\ mail\ code\ such\ as,\n\n\ \ \ \ \ \ package\ require\ twapi\ \;\ twapi::suspend_system\ -state\ standby\ -force\ true\n\nto\ remotely\ put\ a\ windows\ computer\ into\ standby.\ (Don't\ freak,\ this\ is\ just\ for\ my\ private\ home\ lan.\ Security\ by\ obscurity)\n\nOn\ Windows,\ or\ ubuntu,\ this\ is\ trivial\ to\ do.\ I'd\ like\ to\ do\ this\ from\ my\ samsung\ tablet.\n\nSo,\ it\ seems\ to\ me\ that\ all\ that\ is\ really\ required\ is\ to\ wrap\ up\ that\ helloTclTk\ example\ so\ it\ can\ source\ a\ text\ file\ instead\ of\ the\ animation\ it\ does\ now.\n\n\[chw\]\ 2014-04-15:\ please\ don't\ expect\ AndroWish\ in\ an\ app\ store\ any\ time\ soon\ since\ I\ still\ regularly\ manage\ to\ break\ some\ binary\ interfaces\ which\ will\ make\ it\ a\ support\ nightmare\ when/if\ other\ packages\ rely\ on\ it.\ Putting\ it\ on\ Google\ Play\ or\ something\ else\ is\ on\ my\ to-do\ list\ but\ has\ low\ priority.\ You\ don't\ need\ ''ant''\ etc.\ just\ download\ and\ install\ the\ AndroWish-debug.apk\ on\ your\ device\ (after\ temporarily\ activating\ development\ mode).\n\nRegarding\ running\ Tcl\ scripts,\ there's\ the\ ''borg\ shortcut\ ...''\ command\ which\ allows\ you\ to\ make\ an\ icon\ on\ the\ Android\ desktop.\ Technically,\ this\ is\ identical\ to\ ''wish\ URI-of-Tcl-script''.\ Your\ other\ proposal\ is\ implementable\ by\ adding\ some\ Tcl\ to\ your\ ''.wishrc''.\n\nWith\ the\ current\ (''Leonhard\ Euler'')\ edition,\ ''dropbear''\ is\ included\ allowing\ for\ SSH\ and\ SFTP\ access\ on\ the\ behalf\ of\ the\ AndroWish\ package.\ See\ my\ example\ of\ a\ ''.wishrc''\ on\ the\ \[AndroWish\]\ page.\n\nAnother\ possibility\ to\ remotely\ start\ an\ arbitrary\ Android\ activity\ (can\ be\ a\ Tcl\ script)\ is\ now\ using\ SSH\ and\ the\ ''am''\ command\ on\ Android:\n\n\ \ #\ start\ an\ interactive\ AndroWish\n\ \ am\ start\ -n\ tk.tcl.wish/.AndroWish\n\ \ #\ start\ the\ widget\ demo\n\ \ am\ start\ -n\ tk.tcl.wish/.AndroWishLauncher\ -d\ file:///assets/sdl2tk8.6/demos/widget\ -a\ android.content.intent.VIEW\n\nThe\ latter\ is\ technically\ equivalent\ what\ the\ ''borg\ shortcut''\ places\ on\ the\ Android\ desktop.\ Yes,\ I\ agree\ with\ you,\ that\ this\ is\ much\ more\ to\ type\ than\ a\ simple\ ''wish\ widget''\ on\ a\ normal\ UN*X\ or\ Windows\ machine,\ but\ currently\ I\ know\ of\ no\ other\ method.\n\n\n\n----\n'''\[ET\]\ -\ 2014-04-15\ 11:59:20'''\n\nSomeone\ once\ said\ to\ me,\ if\ it's\ truly\ that\ easy,\ then\ you\ should\ be\ able\ to\ tell\ my\ dog\ how\ to\ do\ it.\ Joking\ aside,\ the\ absence\ of\ a\ short\ complete\ step\ by\ step\ installation\ guide\ in\ a\ nice\ pretty\ box\ at\ the\ top\ of\ the\ main\ androwish\ page\ is\ kinda\ telling\ here.\ \n\nIt\ seems\ the\ goal,\ for\ now\ at\ least,\ is\ to\ provide\ a\ framework\ so\ app\ developers\ can\ write\ apps\ for\ android\ using\ the\ androwish\ base.\ That\ is\ a\ worthy\ goal,\ but\ if\ it\ were\ me,\ I'd\ reverse\ my\ priorities.\n\nThere's\ likely\ many\ more\ end\ users\ who\ might\ want\ to\ write\ a\ few\ handy\ scripts\ for\ themself.\ That's\ me\ -\ I\ only\ just\ bought\ my\ first\ tablet\ computer\ a\ week\ ago\ and\ It's\ frustrating\ not\ to\ have\ tools\ like\ tcl/tk\ that\ are\ normally\ at\ my\ fingertips.\ \n\n''But\ oh\ that\ app\ store!''\ That's\ what\ sold\ me.\ \ To\ me,\ this\ is\ as\ important\ to\ user\ friendliness\ as\ the\ GUI\ was\ to\ the\ command\ line.\ I\ still\ shiver\ every\ time\ I\ have\ to\ install\ something\ on\ my\ windows\ computers.\ But\ any\ idiot\ with\ a\ phone\ knows\ what\ an\ app\ is.\ And\ they\ love\ how\ you\ buy\ them\ \ -\ like\ buying\ a\ song\ on\ itunes,\ only\ easier.\n\nSo\ dreaming\ ahead\ to\ a\ play\ store\ app,\ ...\ if\ .wishrc\ is\ to\ tcl\ like\ .bashrc\ is\ to\ bash\ then\ a\ line\ like\ this\ would\ suffice.\n\n\ \ \ \ if\ \[file\ exists\ \$startupFile\]\ \{source\ \$startupFile\}\n\nAll\ you'd\ need\ to\ do\ was\ explain\ where\ this\ file\ is\ and\ how\ to\ edit\ it.\ Maybe\ a\ little\ default\ startup\ script\ that\ brings\ up\ a\ screen\ with\ a\ handful\ of\ buttons\ to\ launch\ the\ other\ sample\ scripts.\ Something\ very\ simple\ to\ get\ people\ started.\ Think\ to\ the\ user,\ not\ the\ developer\ here.\n\nThere's\ no\ reason\ why\ there\ can't\ be\ an\ Androwish\ lite\ as\ well\ as\ developer\ versions.\ I\ think\ a\ lite\ version\ is\ within\ reach.\ Wouldn't\ you\ just\ love\ to\ see\ the\ app\ pop\ up\ in\ the\ store\ saying\ '''1,000,000\ downloads'''.\ Think\ of\ what\ that\ would\ do\ for\ our\ favorite\ computer\ language.\n\n\[chw\]\ 2014-04-15\ 14:38:07:\ to\ somewhat\ quote\ Leonard\ (Bones)\ McCoy\ (not\ Euler):\ ''I'm\ a\ developer\ and\ not\ a\ marketroid''.\ Really.\ If\ you\ have\ a\ nice\ startup\ script\ (btw\ \$HOME/.wishrc\ is\ the\ path\ name\ of\ that\ startup\ script\ as\ in\ a\ normal\ interactive\ wish\ on\ UN*X\ or\ Windows)\ what\ about\ publishing\ it\ here\ on\ the\ wiki?\ And,\ yes,\ that\ file\ is\ really\ in\ the\ same\ place\ as\ on\ UN*X\ or\ Windows,\ see\ \[AndroWish:\ Documentation\]\ for\ the\ environment\ variables.\n\nAlthough\ I've\ spent\ many\ days\ (and\ nights)\ now\ on\ developing\ it\ further,\ I\ still\ don't\ have\ the\ feeling\ that\ it\ is\ ready\ for\ prime\ time\ yet,\ despite\ the\ many\ millions\ of\ smartphone\ and\ tablet\ users\ awaiting\ it\ eagerly.\ Please,\ be\ a\ little\ patient.\n\n\n----\n'''\[ET\]\ -\ 2014-04-15\ 23:10:39'''\n\nI'd\ love\ to\ help\ out,\ but\ unless\ I'm\ missing\ something,\ I\ can't\ find\ instructions\ for\ installing\ it.\ The\ youtube\ video\ just\ confused\ me.\n\nI\ don't\ know\ how\ to\ download\ and\ install\ the\ AndroWish-debug.apk.\ I've\ got\ about\ 1\ week's\ experience\ with\ the\ little\ beasty\ (as\ McCoy\ would\ say).\ If\ it\ ain't\ in\ the\ play\ store,\ I'm\ stumped.\ About\ all\ I\ know\ so\ far\ is\ how\ to\ plug\ it\ into\ a\ win7\ system\ and\ see\ 2\ folders\ (internal\ and\ external\ sd\ card)\ if\ that's\ how\ one\ would\ install\ things\ outside\ the\ play\ store.\n\nI\ have\ a\ samsung\ galaxy\ tab\ 2\ 7.0\ with\ 4.2.2.\ That's\ not\ on\ the\ list\ so\ I\ don't\ even\ know\ if\ my\ tablet\ is\ compatible.\ And\ my\ development\ platform\ would\ be\ windows\ (have\ winxp\ and\ win7/64\ plus\ a\ win8/32\ virtual).\ I\ have\ an\ older\ ubuntu\ 10.04\ system\ as\ well.\n\nBut\ perhaps\ my\ ignorance\ could\ be\ used\ to\ advantage\ -\ for\ idiot\ proofing.\ So,\ if\ anyone\ is\ willing\ to\ step\ me\ through\ it,\ I'd\ take\ good\ notes\ and\ write\ up\ a\ page\ on\ the\ experience.\n\n\[MG\]\ The\ installing,\ at\ least,\ I\ can\ help\ with\ -\ just\ visit\ the\ AndroWish\ download\ page\ in\ your\ browser\ and\ download\ the\ .apk\ file.\ When\ it's\ done,\ open\ the\ Downloads\ folder\ on\ your\ tablet\ and\ double-tap\ the\ .apk\ file.\ It'll\ tell\ you\ it's\ installing\ it,\ the\ permissions\ it\ wants,\ etc.\ Tell\ it\ OK,\ and\ that's\ it\ -\ you'll\ find\ AndroWish\ in\ your\ installed\ apps.\n\nAs\ for\ the\ developing..\ I've\ also\ been\ trying\ on\ Windows,\ but\ have\ had\ no\ luck\ whatsoever\ so\ far\ using\ Eclipse\ (it\ appears\ to\ compile\ fine,\ but\ errors\ out\ when\ I\ try\ and\ run\ it).\ If\ you\ have\ any\ luck\ with\ that\ part,\ please\ let\ me\ know\ how!\n\n\[ET\]\ Ahhhh,\ thanks.\ That\ was\ a\ lot\ easier\ than\ I\ thought\ it\ would\ be.\ BTW,\ how\ does\ one\ uninstall\ it,\ say\ when\ a\ new\ versions\ is\ available?\n\nI\ see\ now\ that\ many\ of\ the\ issues\ I\ have\ discovered,\ like\ no\ arrow\ keys\ on\ my\ keyboard,\ have\ already\ been\ addressed\ by\ others\ and\ the\ sftp\ and\ ssh\ connections\ seem\ to\ be\ the\ way\ to\ get\ into\ the\ system.\ I\ couldn't\ figure\ out\ how\ to\ change\ the\ window\ size\ of\ the\ console.\ I\ didn't\ see\ any\ scroll\ bars\ after\ I\ typed\ in\ parray\ env.\ So\ I\ could\ only\ see\ the\ last\ few.\ I'm\ assuming\ that\ env(HOME)\ is\ where\ to\ place\ the\ .wishrc\ file.\ I\ can\ find\ the\ folder\ from\ my\ win7\ system,\ though\ it\ does\ not\ treat\ the\ device\ as\ a\ regular\ flash\ drive,\ rather\ it\ thinks\ its\ a\ music\ device,\ so\ some\ things\ are\ not\ there,\ like\ right\ click\ search.\n\nI\ develop\ my\ tlc/tk\ code\ all\ on\ windows\ using\ a\ few\ utilities\ I\ bought\ years\ ago.\ Then\ I\ hide\ all\ machine\ particulars\ inside\ procs\ that\ test\ for\ the\ machine\ type\ (tcl_platform\ array).\ I\ see\ this\ one\ says\ linux\ for\ os\ and\ platform\ is\ unix.\ The\ machine\ said\ arm7l.\ I\ wonder\ if\ the\ console\ used\ here\ will\ accept\ my\ mods\ that\ add\ several\ buttons\ to\ the\ left\ side\ of\ the\ console.\ The\ last\ time\ I\ was\ on\ linux,\ I\ had\ to\ use\ a\ trick\ to\ get\ a\ console.\n\nAnyway\ I'm\ off\ to\ figure\ out\ how\ to\ get\ in\ via\ the\ ssh/sftp\ tools.\ I\ have\ a\ few\ windows\ programs,\ webdrive\ and\ putty\ for\ that.\n\n\[MG\]\ You\ can\ uninstall\ it\ from\ the\ Applications\ menu.\ However,\ you\ don't\ need\ to\ do\ that\ to\ upgrade\ -\ all\ Android\ apps\ have\ a\ unique,\ internal\ name\ which\ never\ changes\ throughout\ the\ life\ of\ the\ app.\ Android\ uses\ that\ to\ tell\ if\ you're\ installing\ a\ new\ app\ or\ upgrading\ an\ existing\ one.\ So\ you\ can\ just\ download\ and\ install\ a\ newer\ version,\ and\ the\ OS\ will\ automatically\ remove\ the\ old\ one\ and\ upgrade.\n\n----\n'''\[ET\]\ -\ 2014-04-23\ 08:34:53'''\n\nBut\ I'm\ stuck\ on\ how\ to\ send\ a\ '''wake\ on\ lan\ '''magic\ packet....\ \n\n'''Update''':\n\nUsing\ version,\ Let\ it\ Be,\ I've\ been\ able\ to\ get\ this\ working.\ There\ are\ two\ caveats,\ one\ is\ to\ use\ the\ load\ command\ shown\ rather\ than\ the\ package\ require\ (for\ now,\ to\ be\ fixed\ later\ AW\ version).\ Second,\ without\ the\ close\ of\ the\ socket,\ it\ would\ crash\ AW\ on\ the\ second\ attempt\ to\ call\ testit.\ I\ don't\ know\ if\ this\ means\ a\ second\ open\ socket\ is\ the\ problem,\ but\ it's\ my\ guess.\n\nAdapted\ from\ example\ WOL\ code\ at\ \[Generating\ The\ Wake\ On\ Lan\ Magic\ Packet\]\n======\nbutton\ .ex\ -text\ exit\ -command\ exit\nbutton\ .test\ -text\ test\ -command\ \{testloop\}\npack\ .ex\ .test\ -fill\ both\ -expand\ 1\n#package\ require\ udp\nload\ libtcludp.so\ Udp\nwm\ geom\ .\ 300x400+300+100\nproc\ testloop\ \{\}\ \{\n\ \ \ \ set\ last\ 50\n\ \ \ \ for\ \{set\ m\ 0\}\ \{\$m\ <\ \$last\}\ \{incr\ m\}\ \{\n\ \ \ \ \ \ \ \ puts\ \"testit\ \$m\"\n\ \ \ \ \ \ \ \ testit\ \{192.168.1.255\ 00:24:8c:9b:01:72\}\ \;#\ change\ 1\ if\ needed\ to\ match\ the\ local\ subnet\n\ \ \ \ \ \ \ \ after\ 1000\n\ \ \ \ \ \ \ \ update\n\ \ \ \ \}\n\}\n\n\nproc\ testit\ \{av\}\ \{\n\ \ \ \ #\ Select\ the\ ipaddress\ and\ the\ port\ number.\n\ \ \ \ set\ ipaddress\ \[lindex\ \$av\ 0\]\n\ \ \ \ set\ port\ \ \ 32767\n\ \ \ \ \n\ \ \ \ #\ Create\ a\ broadcast\ sending\ udp\ socket.\n\ \ \ \ set\ s\ \[udp_open\ \$port\]\n\ \ \ \ puts\ \"s=\ |\$s|\ \"\n\ \ \ \ fconfigure\ \$s\ -buffering\ none\ -blocking\ 0\ -translation\ binary\n\ \ \ \ fconfigure\ \$s\ -broadcast\ 1\ -remote\ \[list\ \$ipaddress\ \$port\]\n\ \ \ \ \n\ \ \ \ #\ Generate\ and\ send\ the\ magic\ packet\n\ \ \ \ set\ hw_addr\ \[binary\ format\ H*\ \[string\ map\ \{:\ \"\"\}\ \[lindex\ \$av\ 1\]\]\]\n\ \ \ \ set\ msg\ \"\\xff\\xff\\xff\\xff\\xff\\xff\[string\ repeat\ \$hw_addr\ 16\]\"\n\ \ \ \ #\ Lets\ send\ it\ 4\ times\ to\ be\ safe\n\ \ \ \ for\ \{set\ a\ 0\}\ \{\$a\ <\ 4\}\ \{incr\ a\}\ \{\n\ \ \ \ \ \ \ \ puts\ -nonewline\ \$s\ \$msg\n\ \ \ \ \ \ \ \ puts\ \"sent\ a\ wol\ \$a\"\n\ \ \ \ \ \ \ \ after\ 100\n\ \ \ \ \}\n\ \ \ \ close\ \$s\ \;#\ without\ this,\ a\ second\ call\ to\ testit\ caused\ a\ crash\ of\ AW\n\}\n======\n\n\[chw\]\ 2014-05-21:\ \ Without\ the\ close\ of\ the\ socket\ you\ should\ have\ seen\ an\ error\ since\ you've\ tried\ to\ open\ that\ 32767\ port\ again\ without\ setting\ -reuse\ at\ the\ very\ first\ open.\ Due\ to\ a\ missing\ compiler\ switch\ that\ triggered\ the\ crash.\ It\ will\ be\ fixed\ in\ the\ next\ edition\ of\ \[AndroWish\].\ Good\ for\ me\ that\ you\ found\ that\ out!\n\n----\n'''\[Superlinux\]\ -\ 2014-06-19\ 16:24:56'''\n\nHi.\ how\ can\ I\ port\ this\ http://wiki.tcl.tk/39215\ to\ AndroWish?\ And\ please\ if\ you\ can\ port\ it,\ please\ do.\n\n----\n\[nb\]\ Another\ vote\ for\ usb-serial\ functionality.\ This\ would\ let\ us\ write\ an\ FSM\ controller\ in\ Tcl\ and\ a\ ui\ in\ Tk\ to\ talk\ to\ physical\ hardware\ (seensors,\ pumps\ industrial\ process...)\ Edit:\ Opps\ just\ saw\ that\ usbserial\ is\ now\ included:-)\n----\n'''\[escargo\]\ -\ 2014-07-07'''\n\nMaybe\ AndroWish\ could\ be\ added\ to\ the\ F-Droid\ repository\ of\ free\ applications\ for\ Android:\ https://f-droid.org/\n\nThat\ might\ make\ installing\ updates\ a\ bit\ easier.\n----\n'''\[KL\]\ -\ 2014-08-03'''\n\nFirst\ of\ all\ thanks\ to\ chw\ for\ AndroWish!!\ I\ struggeled\ in\ the\ past\ with\ etcl\ (www.evolane.com)\ but\ missed\ official\ support\ for\ android\ devices.\ A\ great\ feature\ of\ etcl\ is\ that\ you\ can\ wrap\ the\ interpreter\ and\ the\ script\ into\ one\ application.\ Same\ is\ possible\ with\ freewrap\ (http://freewrap.sourceforge.net/).\ Do\ you\ think\ it\ is\ possible\ to\ add\ this\ kind\ of\ wrapping\ as\ well\ to\ AndroWish??\nThanks\ and\ Regards,\nK.L\n\n\[chw\]\ 2014-08-07:\ currently\ there's\ another\ approach\ available:\ build\ your\ own\ small\ app\ using\ Android\ SDK\ which\ contains\ your\ Tcl\ stuff\ and\ some\ precompiled\ Java\ libs\ but\ uses\ at\ runtime\ the\ shared\ libraries\ and\ tcl\ modules\ of\ an\ already\ installed\ \[AndroWish\]\ app.\ More\ information\ on\ http://www.androwish.org/index.html/wiki?name=HelloTclTk\n\n\[KL\]\ 2014-08-07:\ I\ already\ found\ this\ approach\ and\ I\ did\ already\ create\ my\ small\ app.\ But\ to\ run\ the\ app\ you\ need\ to\ have\ an\ installed\ \[AndroWish\]\ app.\ Packing\ the\ interpreter\ itself\ in\ the\ app\ would\ be\ a\ perfect\ possibility\ to\ distribute\ own\ apps.\ \n\n\[nb\]\ 2014-09-22\nAgain\ great\ work\ with\ AW.\ I\ was\ wondering\ if\ I\ could\ get\ some\ help\ with\ this\ starkit.\nhttps://dl.dropboxusercontent.com/u/85561940/hydro.kit\nI'm\ using\ the\ moore\ package\ and\ tclral\ package.\ The\ above\ starkit\ works\ fine\ in\ WIN\ with\ 8.6\ tclkit\ and\ 8.5\ basekit.\ I\ believe\ my\ problem\ is\ related\ to\ this\ post\ \"\[Moore\ Type\ State\ Models\]\".\ If\ so\ can\ we\ get\ the\ included\ \[tclRAL\]\ upgraded/linked\ against\ tcl8.6\ and\ include\ the\ ralutil\ package?\ TIA\n\n----\n\[escargo\]\ 2015-02-05:\ Is\ there\ a\ way\ to\ access\ Music\ playlists?\ I\ was\ really\ unhappy\ with\ how\ the\ so-called\ shuffle\nfunction\ played\ songs.\ The\ order\ was\ odd\;\ some\ songs\ were\ played\ twice\ and\ some\ not\ at\ all.\ I\ would\ like\ to\ see\ something\nthat\ could\ manipulate\ play\ lists.\ Even\ if\ it\ couldn't\ modify\ existing\ ones,\ having\ a\ program\ create\ a\ new\ play\ list\ with\nbetter\ randomization,\ elimination\ of\ duplicates,\ and\ other\ features\ would\ be\ more\ pleasing.\n\n\[chw\]\ 2015-02-06:\ Maybe\ this\ is\ possible\ using\ \"borg\ content\ ...\".\ But\ you\ have\ to\ dig\ deep\ into\ Android's\ MediaStore.Audio\ documentation.\ I've\ tried\ the\ following:\n======\n#\ get\ a\ cursor\ on\ the\ audio\ media\ store\nset\ cursor\ \[borg\ content\ query\ content://media/external/audio/media\]\n#\ read\ out\ records\nwhile\ \{\[\$cursor\ move\ 1\]\}\ \{\n\ \ \ \ puts\ \[\$cursor\ getrow\]\n\}\n#\ many\ rows\ of\ output\ ...\ e.g.\n_id\ 3704\ _data\ /mnt/sdcard/music/mm/the_pale_emperor/04the_mephistopheles_of_los_angeles.mp3\ _display_name\ 04the_mephistopheles_of_los_angeles.mp3\ _size\ 7135360\ mime_type\ audio/mpeg\ date_added\ 1422041426\ is_drm\ 0\ date_modified\ 1422018634\ title\ \{The\ Mephistopheles\ Of\ Los\ Angeles\}\ title_key\ \{...\}\ duration\ 297195\ artist_id\ 18\ composer\ \{\}\ album_id\ 38\ track\ 4\ year\ 2015\ is_ringtone\ 0\ is_music\ 1\ is_alarm\ 0\ is_notification\ 0\ is_podcast\ 0\ bookmark\ \{\}\ album_artist\ \{\}\ volid\ 1633892149\ alive\ 1\ artist_id:1\ 18\ artist_key\ \{...\}\ artist\ \{Marilyn\ Manson\}\ album_id:1\ 38\ album_key\ \{...\}\ album\ \{The\ Pale\ Emperor\}\n======\n\nThe\ playlists\ are\ in\n======\ncontent://media/external/audio/playlists\n======\n\nUsing\ the\ \"_id\"\ column\ (345\ in\ this\ example)\ of\ a\ specific\ playlist\ you\ can\ read\ out\ its\ members\n======\ncontent://media/external/audio/playlists/345/members\n======\n\nFor\ further\ information\ use\ the\ source,\ Luke,\ of\ Android's\ MediaStore\ .../frameworks/base/core/java/android/provider/MediaStore.java.\nSadly,\ an\ overview\ on\ the\ tables\ and\ relations\ of\ the\ media\ meta\ information\ in\ our\ shiny\ tablets\ and\ smart\ phones\ would\ have\ fit\ on\ a\ single\ cheat\ sheet\ but\ in\ our\ Brave\ New\ Software\ World\ that\ has\ to\ be\ expressed\ as\ tons\ of\ Java\ classes\ and\ interfaces.\n\n======\n\[MDD\]:\ \ It\ would\ be\ great\ if\ the\ \[Muzic\]\ MIDI\ package\ could\ be\ added,\ making\ it\ easy\ to\ create\ games\ like\ \[Muse\]\ that\ could\ make\ direct\ MIDI\ calls\ on\ Android.\n\n<<categories>>Android|AndroWish} CALL {my revision {AndroWish Feature Requests}} CALL {::oo::Obj445357 process revision/AndroWish+Feature+Requests} CALL {::oo::Obj445355 process}

-errorcode

NONE

-errorinfo

Unknow state transition: LINE -> END
    while executing
"error $msg"
    (class "::Wiki" method "render_wikit" line 6)
    invoked from within
"my render_$default_markup $N $C $mkup_rendering_engine"
    (class "::Wiki" method "render" line 8)
    invoked from within
"my render $name $C"
    (class "::Wiki" method "revision" line 31)
    invoked from within
"my revision $page"
    (class "::Wiki" method "process" line 56)
    invoked from within
"$server process [string trim $uri /]"

-errorline

4