[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: keyboard position



Flash,

I never use F9 anymore. I used new improved F9. Carl worked out a routine, 
which I have modified, that makes the Enter key do all the work. In text, 
it puts out the normal cr/lf. If cursor is on the command line, it does the 
XC --if that leads to an error it acts as  and tries to execute a 
frame. In my implementation, if that produces an error, it assumes I wanted 
to do a CD, so it runs a U2 frame with shortcuts for every oft-used 
directory and subdirectory.


E.g., suppose I do this on the CM line:

r

It tires to eXeCute the r, but there's no such command so it tries to 
launch a help frame named {{5r}} but there's no such help frame (in my U2), 
so it next tries launching {{5hbcd}} and in that frame there's a line that 
says: if r is hit, do cd \   (r for root).


And if I enter nonsense, like:

djflasdjf

It responds: $H says: Nonsense entry

$H being the name of the routine assigned to the Enter key.

The beauty part is that one can, in action, forget about the distinction 
between native commands and U2 frames and just ENTER away.


My code is rather specific to my setup but FWIW, here it is:


'%--_XYENCode_start--
{{5$H}}_HB_mod_of_CLD_rev.9/29/08._HB'._11/26/12._NB'._calls_'`
hbcd'`_frame'^~B~:~M~~',*',_if_in_te
xt,_put_a_carriage-return+line-feed'^',*','^',*','JM2.hbcd'Q2~<
EX~>'^~~>~~>~~>',*',
_store_variables'^',*',_next_2_lines_are_only_way_to_handle_th
ese_commands'._exit_before_rest'^~)==0
'|"D_WA"~{@upr(~)==0~>'XC~~',*',_exit_now'^~<
IF"VA/NV_EB"~{@upr(~)==0'|"VA/NV_WA"~{@upr(~)==0
~>'XC~~',*','^',*',_next_line_is_a_kludge_so_that_NB
_isn'`t_taken_as_"non-break"_'^~=="nb~>'BXcd
_\nb'Q2~~',*',_'^~==0&".bas"~{~_'BCCan'`t_RUN_a_.BAS_file~~',*','^',*',_sub
'._resets_WA_and_EB',_initial_es_1_allows_display_of_any_later
_errmsg'^~'Q2'BXd_eb=~'Q2
'NO~>',*',keep_the_es_1'^'BXd_eb=0,0'Q2'BXd_wa=0'Q2',*',_will_
be_reset_on_exit'^~',*',_must_have_this_in_a_s/g_
for_next_XS'^~~{@upr(~)==0~>~',*',_put_argument_of_HELP_in_50'^'JM2.HELP'Q2~~
~',*',_get_help_and_exit'^',*',≫≫≫≫≫≫≫≫≫≫≫_REA
L_STUFF_STARTS_BELOW_HERE_≪≪≪≪≪≪≪<'^'XC',*',__XC_to_exe
cute_native_Xy_commands_(like_CA_foo.bar)'^~)~>',
*','^',*',~~>~<1&~'JM2
%.$S'Q2~'^~~~',*',_native_cmd_fine',_ad
d_to_STACK,_reset_&_exit'^',*','^',*',_Below_here'._a_"regular
_error,"_a_U2_call,_or_a_hbcd_call'^',*','^',*',_1)_for_"regul
ar"_errors_(e.g.,_"not_found")'._display_as_prompt_&_exit'^~<>12~>~~>~~'BXes_0'Q2
~~',*','^',*',_2)_The_biggie'._try_it_as_a_U2_call'^
'JM2.PrsCMline'Q2~<>21290~>',*',~'^~
~',*',_21290_=_no_U2_frame'^~~>'JM2.hbcd'Q2~
',*',_3)_last_resort'._try_it_as_hbcd_call'^~~>'BC~

~~~~B'^ '%--_XYENCode___end-- And here is what I believe is an unmodified version of Carl's $X '%--_XYENCode_start-- {{5$X}}_Issue_COMMAND[_arg(s)]_or_U2'-FRAMENAME[_arg(s) ]_with_the_same_key_[CLD_rev.1/24/09]'^~B~ <1~>~~>~>~~~==28'| ~==104~>~'JM2.null'Q2~~<2~>:~M~~~~<1&~'JM2.$S'Q2~~<>0&~=="?"'|~<>1&"HELP"~{@upr(~)<>0~>~~>~~>'BXd_wa=0'Q2~+"'Q2 "~>~+"'Q2"~>~ )==0'|"DEFAULT_EB"~{@upr(~)==0'|"D_$EB"~{@upr(~) ==0'|"DEFAULT_$EB"~{@upr(~)==0'|"VA/NV_EB"~{@upr(~)==0'|"VA/NV_$EB"~{@upr(~)==0~>~~~)==0'|"DEFAULT_WA"~{@upr(~) ==0~>~~~'BXd_eb=0,0'Q2~~)==0~>~~~~<1'|"BEEP"~{@upr(~)==0'|"RUN_"~{@upr(~)==0'| @upr(~)=="RUN"~>~~'BXes'Q2'BX~'Q2~< EX~>~'BXes_1'Q2'BX'Q2'BXes'Q2~<0&"|CALL|CD|CHDIR|DELETE|EDIT|ERASE|ERNV|READ|RU N"~=("|"+@upr(~))~>~+"_"+~~>~ 'BX~'Q2~)'|~<>12~>~~ ~~'BXwait'Q2~~~~~<>""~>~~>~~'BXes'Q2'JM2.PrsSG5 0'Q2~B'^ '%--_XYENCode___end--

Bill, What I see is that the notebook keys are very flat and close to the underlying notebook chassis, compared to an external keyboard where the keys are a) raised, and b) have raised edges and sunken centers. Furthermore, external keyboards are inclined: the "qwerty" row is higher up than the "asdfg" row, which is higher up than the "zxcvb" row, like the rows of seats in an auditorium. This is not so with notebooks, which lie flat. One suggestion: make yourself an inclined mount; this might help you to hit the keys more accurately. Better still, buy one with cooling fans. The attached photos show my modified duplicate F9 key on an external keyboard, and an inclined notebook mount with whisper fans (mute groupies?).