**** BEGIN LOGGING AT Tue Jan 17 02:59:57 2012 Jan 17 03:28:26 what is it? :) Jan 17 03:56:45 dtzWill, i figured out the bug with htop Jan 17 03:56:53 and the lines that dont look right Jan 17 03:56:58 oh hooray Jan 17 03:57:03 when the erase line escape code is sent Jan 17 03:57:09 the characters are erased Jan 17 03:57:28 but the last graphic state from the cursor is set to the erased cels Jan 17 03:57:30 cells Jan 17 03:57:38 so if u erase from cursor to end of line Jan 17 03:57:59 the graphics state of the cursor cell is set to the all the cells after the cursor Jan 17 03:58:34 i've tried a few ways to get this to work but i suck Jan 17 04:04:16 oh i see Jan 17 04:04:20 and what should it be set to? Jan 17 04:05:26 i mean what is the correct behavior Jan 17 04:05:34 (esp as compared to the above) Jan 17 05:44:53 dtzWill, instead of the erased chars being set to defaultgraphics state they should be the set to the graphics state at the cursor location Jan 17 05:45:21 it's been a while, apparently erasing means "set to blank" not "remove"? Jan 17 05:45:30 right Jan 17 05:45:38 ah Jan 17 05:45:38 blank as in replace with a space Jan 17 05:45:43 delete is separate Jan 17 05:45:53 and this is erase line Jan 17 05:47:04 \033[K or \033[0K or \033[1 or \033[2 Jan 17 05:47:34 \033[2K Jan 17 06:28:06 Brybry, what are you using for esc? Jan 17 06:36:39 the basic stuff works...but none of the "special" keys work. Jan 17 06:38:00 good start...need to find the keycodes I did earlier Jan 17 10:06:00 ka6sox, I have the hp bt keyboard so no escape key Jan 17 10:06:47 I might hook up a usb keyboard again to see (but I think some of the keys for that didn't send any events) Jan 17 16:28:36 Brybry, ka6sox, run vttest, which i ship with wterm Jan 17 16:28:52 once in it, go to menu 5 Jan 17 16:28:55 test of keyboard Jan 17 16:29:07 then do test 3 Jan 17 16:29:22 and test 9 Jan 17 16:29:35 test 3 is basic layout Jan 17 16:29:41 9 is control keys Jan 17 16:29:54 let me know what you cant get to in those test Jan 17 16:30:09 also bty Jan 17 16:30:16 Ctrl+[ == Escape Jan 17 17:57:53 dtzWill, ping Jan 17 18:14:55 PuffTheMagic, you are aware of the issue when you switch from landscape to portrait and back that anything that was off the screen in portrait is now no longer visible in portrait when you go back again. Jan 17 18:15:16 s/last portrait/landscape Jan 17 18:16:44 is that an issue or reality of term resizing? Jan 17 18:16:52 was this in an app or just at the shell prompt Jan 17 18:17:07 shell prompt Jan 17 18:17:31 I cat'd a file then switched between landscape to portrait to landscape and its cutoff. Jan 17 18:17:48 hmm Jan 17 18:17:57 well file it as a bug I will see what I can do about it Jan 17 18:18:01 its a wrap issue Jan 17 18:18:33 and you are using the redmine @ redmine.webos-internals.org? or github's bugs? Jan 17 18:18:39 github Jan 17 18:18:42 i dont think its wrap related, wterm passes all the autowrap tests in vttest Jan 17 18:18:42 kk Jan 17 18:18:55 but I have an idea why this would happy Jan 17 18:18:57 happen Jan 17 18:18:59 okay sorry Jan 17 18:19:03 no, its ok Jan 17 18:19:04 this was a vi session Jan 17 18:19:22 i've only played with rotating in htop and mc Jan 17 18:19:25 just relooked at it. Jan 17 18:19:31 and they both resize properly Jan 17 18:19:34 I was in a vi session. Jan 17 18:19:52 thought I could just move it... Jan 17 18:19:55 still using vt102? Jan 17 18:19:58 yes Jan 17 18:20:27 but bt now instead of VKB. Jan 17 18:20:44 try xterm Jan 17 18:20:50 kk Jan 17 18:20:52 will do so Jan 17 18:21:23 I really like the way that VT works on highlighting though. Jan 17 18:21:32 hmm, i cant reproduce that with xterm or vt102 Jan 17 18:21:43 you dont have to keep it at xterm Jan 17 18:21:45 in a vi session? Jan 17 18:21:47 ya Jan 17 18:21:52 wierd. Jan 17 18:21:53 okay Jan 17 18:22:03 let me go thru the steps again. Jan 17 18:22:05 what file you opening Jan 17 18:22:15 one on my laptop.... Jan 17 18:22:19 oh Jan 17 18:22:19 ohhh Jan 17 18:22:23 so u are ssh'd? Jan 17 18:22:29 yup...duh Jan 17 18:22:41 ya, there is some weirdness when going though ssh i havent tracked down yet Jan 17 18:22:42 he he... Jan 17 18:22:51 its probably a termcap issue Jan 17 18:23:11 and the terminfo not being passed thru. Jan 17 18:23:24 the terminfo doesnt need to get passed though Jan 17 18:23:34 the space of possible escape codes is fixed Jan 17 18:23:39 kk Jan 17 18:23:43 so a term just need to be able to handle them all Jan 17 18:23:54 right Jan 17 18:24:00 its up to the app to use the right escapecodes for the TERM that is set Jan 17 18:24:01 nm... Jan 17 18:24:04 which is where terminfo comes in Jan 17 18:24:24 I don't remember what I have mine set to on the lappy. Jan 17 18:24:35 might be xterm, most likely ANSI Jan 17 18:24:46 ANSI? Jan 17 18:24:48 never seen that Jan 17 18:24:59 let me look @ that. Jan 17 18:25:14 ka6sox, while you are here will you do the keyboard tests in vttest with the bt keyboard Jan 17 18:25:28 yes, I will Jan 17 18:25:39 thanks Jan 17 19:29:19 will someone review the saneness of this commit -> Jan 17 19:29:27 dwc-, dtzWill stbuehler Brybry ^ Jan 17 19:29:30 lol Jan 17 19:29:34 https://github.com/PuffTheMagic/wTerm/commit/79cb53b1fd9aecb89d3f35de565a60b608a7252e Jan 17 19:29:40 guess it would help if i gave the link Jan 17 19:30:29 nah, we're mindreaders Jan 17 19:31:27 seems sane. I don't know much about js/enyo stuff though Jan 17 19:33:34 oh, this is interesting... touchpad doesn't have very many terms Jan 17 19:33:56 no xterm actually Jan 17 19:34:05 huh? Jan 17 19:34:12 per /etc/terminfo anyways Jan 17 19:34:27 oh wait, nm. it's a symlink Jan 17 19:34:35 * dwc- was grep'ing in /md5sums Jan 17 19:37:52 PuffTheMagic: looks fine, assuming it works :) Jan 17 19:38:28 is there a difference between those enyo events (which you then forward to the pdk app) and using the sdl active events described here: https://developer.palm.com/content/api/dev-guide/pdk/handling-app-interrupts.html ? Jan 17 19:43:26 hmm, could that cause a ton of events to pile up and then all try to redraw at once every 10000 ticks? Jan 17 19:45:37 Brybry: we should be processing events as much as possible before rendering Jan 17 19:46:04 yeah, it wouldn't actually *render* anything anyway Jan 17 19:46:08 so I guess it wouldn't be an issue Jan 17 19:46:34 it's possible we're not however, i think redraw() isn't down with the sdl_gl_swapbuffers that's for-sure only done when the event queue is empty Jan 17 19:58:10 my only worry would be that, say you ran cmatrix, then minimized, and during one of the long SDL_Delays all of the events would pile up, and then you switch back in, and then it maybe has to processes 234324 VIDEOEXPOSE all at once? Jan 17 19:58:14 I'd have to test it to see Jan 17 20:02:15 Brybry: agreed and understood Jan 17 20:02:26 that should be solved by moving any/all redrawing to the end of the loop Jan 17 20:02:37 (with the sdl_gl_Swapbuffers()) Jan 17 20:02:48 and it wouldn't break out of a long SDL_Delay either if you switch back in right at the start of that Jan 17 20:02:49 and use a flag/dirty bit while processing events to indicate we need to redraw Jan 17 20:02:57 though I dunno how long 10000 ticks really is Jan 17 20:03:36 and no, unfortunately sdl_delay doesn't also automagically select() on the event queue or something :) Jan 17 20:03:46 idk either, although we could probably still do 1000 and be fine Jan 17 20:03:54 errrr assuming ms lolol Jan 17 20:04:01 "idk what unit that is, but here's my recommendation" Jan 17 20:04:11 I think SDL_WaitEvent is probably some of the best sleep behavior, and maybe just have sdlterminal not send expose events if inactive? Jan 17 20:04:47 unless skipping them does bad things Jan 17 20:04:48 I don't really know Jan 17 20:04:49 lol Jan 17 20:04:49 hmm Jan 17 20:05:23 nah, it might if we actually looked at what was exposed and did a partial redraw or something Jan 17 20:05:46 (i have no idea if sdl_Videoexpose contains damage rects) Jan 17 20:06:05 dtzWill, only fullscreen PDK apps get the SDL_ACTIVE events Jan 17 20:06:10 thus the need for a relay Jan 17 20:06:40 PuffTheMagic: great, thanks. sounds good to me then, modulo things like "is the wait time too long" and ensuring our event loop does what we want Jan 17 20:06:57 ka6sox, get a chance to do the keyboard tests in vttest yet? Jan 17 20:07:40 PuffTheMagic: i think plugins get a sdk event too when the app is "disabled" Jan 17 20:07:47 dtzWill, ya im sure there are things to tune, i just wanted to get something basic in there first so it wasnt wasting cycles when someone wasnt looking at it Jan 17 20:08:01 stbuehler, nope Jan 17 20:08:04 PuffTheMagic: sometimes it even stops enyo <-> plugin communication completely and throws error on js side Jan 17 20:08:07 i confirmed it with ben Jan 17 20:08:39 @unwiredben I take it SDL_ACTIVEEVENTevents are not relayed to non-fullscreen PDK plugins? Jan 17 20:08:48 @_PuffTheMagic_ no, they only apply to full-screen apps. You'll have to catch activation in JS and pass it one with a method call Jan 17 20:09:07 PuffTheMagic: yeah that sounds great re:lower usage when not looked at Jan 17 20:09:41 dtzWill, did u understand what I was trying to describe last night about the line erasing? Jan 17 20:10:11 well, i'm pretty sure i got errors in my qr decoder if i had a javascript timer call plugin methods while it wasn't fullscreen :) Jan 17 20:10:24 but perhaps it was on pre- only Jan 17 20:10:42 pdk stuff has evolved a lot since it first came out Jan 17 20:11:03 PuffTheMagic: yep i believe so. haven't looked at any code yet though Jan 17 20:11:29 flying out to NY tomorrow for a demo of some stuff i'm working on and...just found out it's my /other/ project that i'm demo'ing not the one i spent the last 6 months on >_> Jan 17 20:11:41 so just haven't had a chance to code Jan 17 20:11:47 gotta love that Jan 17 20:11:58 wonder what it'd take to setup a mini tp-dev setup for wterm hacking on the plane :D Jan 17 20:12:14 PuffTheMagic: not really :( Jan 17 20:12:15 :P :D Jan 17 20:17:57 dtzWill, i was using tide and wterm yesterday to work on wterm Jan 17 20:18:05 :D Jan 17 20:18:18 can also use vi Jan 17 20:18:27 vim from optware is wonky Jan 17 20:18:30 idk what is wrong with it Jan 17 20:18:37 yeah i'd use vim probably, but i meant build env Jan 17 20:18:50 is gcc/etc in optware and such good enough to build the plugin? Jan 17 20:19:02 ummm Jan 17 20:19:04 PuffTheMagic: oh okay. fair enough re:broken vim Jan 17 20:19:32 dtzWill, if u copy staging armv7 from build.git over Jan 17 20:19:35 and then install a toolchain Jan 17 20:19:40 u might be good to go Jan 17 20:19:45 well Jan 17 20:19:46 lol Jan 17 20:19:57 if i make a build env with libs and a toolchain and headers Jan 17 20:19:57 haha Jan 17 20:20:18 yeah, i was hoping for something more automagic, shrug. worst case i play with it on the plane Jan 17 20:20:37 i bet i don't need much other than the headers from the pdk (for SDL, etc) Jan 17 20:20:47 since libs are already there... Jan 17 20:20:50 echo -e -n "\033[1J\033[10;30H\033[44mBOWL OF DICKS\033[K\033\033[m\n" Jan 17 20:20:58 is how u can see this bug i was talking about Jan 17 20:21:36 heh urxvt seems to get that wrong Jan 17 20:21:42 opps Jan 17 20:21:48 there is in extra \033 Jan 17 20:21:50 assuming you didn't type and konsole gets it right Jan 17 20:21:50 not that it matters Jan 17 20:21:52 oh then nvm Jan 17 20:22:20 with the extra \033 it shows up wrong in urxvt (shows "]m" at the end) Jan 17 20:22:25 konsole doesn't seem to care Jan 17 20:22:48 echo -e -n "\033[1J\033[10;30H\033[44mBOWL OF DICKS\033[10;29H\033[1K\033[m\n" Jan 17 20:22:53 here is the bug going backwards Jan 17 20:23:16 replace [1K with [2K to see the bug on the whole line Jan 17 20:23:37 basically what ever is erased get its term state set to what ever the termstate is at the cursor Jan 17 20:27:05 hmm Jan 17 20:28:18 PuffTheMagic: run top from wterm, set top update to 0.5 (hit s and type 0.5), then minimize wterm to card Jan 17 20:28:43 and then watch wterm from ssh/novaterm =/ Jan 17 20:28:45 bad things happen Jan 17 20:29:02 memory leaks to death or something Jan 17 20:30:33 or maybe the GL stuff just keeps getting added to buffer but it never clears cause swap never gets called? Jan 17 20:30:39 I don't really know opengl =( Jan 17 20:32:42 hmm yess that is not good Jan 17 20:32:46 mem keeps going up Jan 17 20:32:59 till plugin dies Jan 17 20:33:35 I think I fixed it Jan 17 20:33:46 wait, nope Jan 17 20:33:47 damn Jan 17 21:40:46 Brybry, ping Jan 17 21:40:54 I know what causes it and how to fix it Jan 17 21:40:59 I'm just thinking the best way Jan 17 21:41:02 awesome Jan 17 21:41:16 will u do something else for me Jan 17 21:41:19 its quick Jan 17 21:41:31 sure Jan 17 21:41:44 run the keyboard test in vttest Jan 17 21:41:51 with the bt keyboard Jan 17 21:42:17 once in the keyboard menu run test 9 and 3 Jan 17 21:45:33 i am curious what keys cant be accessed with the bt keyboard Jan 17 21:48:06 vttest hates me Jan 17 21:48:17 whys that? Jan 17 21:51:09 because I'm on windows and I haven't made a windows-happy makefile for it yet Jan 17 21:51:26 lol Jan 17 21:51:39 Brybry, just steal it out of an ipk Jan 17 21:51:43 and install it in /usr/bin Jan 17 21:51:55 or i could send it to u Jan 17 21:51:59 either way Jan 17 21:52:04 I have it stolen from an ipk somewhere Jan 17 21:52:08 I just have to remember where I put it Jan 17 21:52:20 bug the bigger question is why you are on windows Jan 17 21:52:49 because linux gaming is an oxymoron and dual booting gets tiring Jan 17 21:52:53 much easier to just run linux VMs Jan 17 21:53:11 i dualboot for Civ5 Jan 17 21:53:25 but i usually play that in 1-2 day binges Jan 17 21:53:39 then stop for a few weks Jan 17 21:57:35 layout test: no escape key, the backspace key is labeled delete and shows up as delete on vttest so no true backspace key I guess Jan 17 21:57:53 definitely no LF/line feed key Jan 17 21:58:12 well that test is for REALLY old keyboards Jan 17 21:58:14 the HP bt keyboard is pretty sad on keys for such a nice slim keyboard Jan 17 21:58:15 so ya ther eis no lf Jan 17 21:58:25 and backspace actually sends del in linux Jan 17 21:58:45 Brybry, ctrl+[ will send escape Jan 17 21:58:52 which u will find when u do the other test Jan 17 22:01:03 what happens if you stty erase ^H first Jan 17 22:01:48 there is a special mode to make esp actually send ^H Jan 17 22:02:14 but default linux terms start up as \x7f Jan 17 22:02:50 hmm well actually Jan 17 22:03:03 stty erase ^H is different Jan 17 22:03:13 ctrl+@/space doesn't work, ctrl+H gives <127> and kicks me out of the test, ctrl+[ doesn't work and makes the usb mode notification toggle Jan 17 22:03:17 from the private mode escape code that sets backspace mode Jan 17 22:03:23 my ctrl space doesn't work either Jan 17 22:03:29 vkb Jan 17 22:03:33 dwc-, it should Jan 17 22:03:37 and sometimes the background change/dehighlighting breaks Jan 17 22:03:39 on git master Jan 17 22:03:45 (but it picks up the keys fine) Jan 17 22:03:47 and can't seem to ctrl-shift anything Jan 17 22:03:53 I'm not sure if that's a term setting issue or not Jan 17 22:04:03 dwc-, wtf is ctrl-shift supposed to do? Jan 17 22:04:11 I'm running on dfdfcffb98a4c8e7ae7ea03179712fc556ec57ac (remove cruft) Jan 17 22:04:14 from this morning Jan 17 22:04:18 oh, and ctrl+A doesn't work Jan 17 22:04:19 ctrl-shift-@ Jan 17 22:04:37 Brybry, this is with bt keyboard right Jan 17 22:04:40 yeah Jan 17 22:04:47 I think ctrl+H is what breaks my background stuff Jan 17 22:04:52 dwc-, what is that supposed to do? Jan 17 22:04:56 need to verify it first~ Jan 17 22:05:08 hmm, something broke the vkb's keys somewhat Jan 17 22:05:43 I went ctrl a-z and E and Q didn't work and now ^Y isn't working Jan 17 22:05:53 and it worked last time when I went ctrl-qwerty Jan 17 22:06:14 PuffTheMagic: don't you need shift for ctrl-@ ^ ~ _ or ? Jan 17 22:06:32 or am I supposed to use capslock Jan 17 22:06:40 umm Jan 17 22:07:03 latest wterm doesnt support the ctrl+ bindings that need shift atm Jan 17 22:07:16 but u can pass that whole set of tests with out shift Jan 17 22:07:18 hmm I see CTRL-E showing up but it's not unhighlighting them Jan 17 22:07:24 except for ctrl+space Jan 17 22:07:27 which sends null Jan 17 22:07:30 dwc-: that's the bug I run into Jan 17 22:07:31 and is getting ignored for some reason Jan 17 22:07:34 sometimes unhighlighting breaks Jan 17 22:07:58 too bad they didnt' have ^L also redraw the screen Jan 17 22:09:23 hmmm Jan 17 22:09:41 i cant remember what I did with those few shifted ctrl tests Jan 17 22:10:21 used capslock? Jan 17 22:10:28 no Jan 17 22:10:38 ctrl+_ works Jan 17 22:10:39 caps doesn't seem to do "what I expect" for non-alpha keys Jan 17 22:10:45 (using shift_ Jan 17 22:10:48 shift) Jan 17 22:10:54 and so does ctrl+^ Jan 17 22:11:06 thats for US and RS Jan 17 22:11:11 the rest dont need shift Jan 17 22:11:32 Brybry, so it sounds like u just need arrow key bindings for the bt keyboard? Jan 17 22:11:48 which key are you hitting first? Jan 17 22:12:18 well, other people have bt keyboards with escape keys and all Jan 17 22:12:19 hmm, now my ctrl key is broken Jan 17 22:12:27 but yeah, for the most part bt keyboards already worked fine Jan 17 22:12:28 now I'm getting ` -- not a CTRL key Jan 17 22:12:30 is it stuck down? Jan 17 22:12:46 some keys have caused the unit to reboot. Jan 17 22:12:46 they just needed arrow key bindings (which I have in my experimental branch) Jan 17 22:12:51 no, I'm holding CTRL down Jan 17 22:13:08 and I hit ` and it says "` -- not a CTRL key" but without letting go of CTRL I hit Q and it registers ^Q Jan 17 22:13:09 like keys from the apple BT keyboard. Jan 17 22:13:16 ka6sox: that's awesome Jan 17 22:13:29 ctrl-openapple reset? Jan 17 22:13:38 someone @ palm discovered that. Jan 17 22:13:50 can't remember who. Jan 17 22:13:54 I wonder if the ctrl key ran into the stuck down bug Jan 17 22:14:00 and so a up never fired Jan 17 22:14:07 oh look, my TP has been on power long enough that webos is telling me about 3.0.5 now Jan 17 22:14:37 and I am ignoring it till AUSMT is sorted out. Jan 17 22:14:45 dwc-, ya it seems to be related to missing the touchup events Jan 17 22:14:46 nope, can't figure out a what where it gets stuck up, hmm Jan 17 22:15:51 sometimes the keys depress on their own which I don't understand either Jan 17 22:16:00 never seen that Jan 17 22:16:04 like I'll be holding down ctrl or shift or something Jan 17 22:17:34 i wonder if there is a way to find out if there are any fingers on the screen Jan 17 22:17:40 and poll or something Jan 17 22:17:49 that'd make a funny app Jan 17 22:18:07 "take your grubby little paws off me" Jan 17 22:19:34 I have noticed for some reason...that CAPS key (aka shift) sometimes takes a fairly HARD PUSH to make it work right. Jan 17 22:19:47 and that it gets LOCKED up, like it misses events. Jan 17 22:20:06 so I suspect that the BT keyboard driver needs work. Jan 17 22:20:54 with the vkb ctrl+space@ and ctrl+^~` and ctrl+_? don't work for me Jan 17 22:20:57 and everything else is good Jan 17 22:21:14 use capslock and you should be able to pass those Jan 17 22:21:41 Brybry, the space/@ issue is because something in the terminal code is not allowing a null to be sent Jan 17 22:22:04 ah, yes, capslock does fix that Jan 17 22:23:03 I don't remember if the code I need to look @ is in the kernel or the way Luna processes the info. Jan 17 22:23:20 ctrl+shift worked as well for _ :D Jan 17 22:23:38 and ^ Jan 17 22:23:43 it's just very awkward to do Jan 17 22:23:56 weird, mine still doesn't like ctrl-shift Jan 17 22:24:01 maybe it's a 3.0.4 thing? Jan 17 22:24:23 it depends where I put my fingers Jan 17 22:25:22 do like lctrl + rshift + _ Jan 17 22:44:34 PuffTheMagic: basically do a check in SDLCore::eventLoop() case SDL_VIDEOEXPOSE: if (active) { redraw(); setdirty(blah); } Jan 17 22:44:38 that at least fixes the worst case Jan 17 22:46:52 basically redraw() puts stuff in the buffer and that doesn't get cleared until SDL_GL_SwapBuffers() Jan 17 23:37:42 Brybry: oh really? so the memory leak was just a the command bufffer and such getting filled?! Jan 17 23:37:51 didn't realize that'd happen, interesting. good to know and thanks for tracking that down Jan 18 01:17:28 Brybry, u found the fix, end a pull request ;) Jan 18 02:03:13 or i can do it **** ENDING LOGGING AT Wed Jan 18 02:59:56 2012