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

Re: flexible command line



Reply to note from "Morris Krok"  Sat, 29 Nov
2003 11:13:40 +0200

> I am interested to know whether the U2 file contains something
> similar.

Morris: See frame CMLINE, which saves the current CMline to Save/Get
616. Unlike Tyson's code, it's built from the ground up for
Xy4|XyWin|NBWin, and saves|restores everything, including hard-to-
handle 3-byte characters. CMLINE is based on Robert's classic (and
indispensable) STACK.PM, which you'd also do well to investigate. Go
to http://users.datarealm.com/xywwweb/#stack and follow the link. There's
no reason in the world to live without STACK!

Here's how to use CMLINE: In XPL, to save the current CMline, do
JM 2.CMlineQ2 (where "JM " and "Q2 " are, of course 3-byte functions).
Later, to restore the saved CMline: BC .

In the KBD file, save the CMline with nn=JM(,2,.,C,M,l,i,n,e,).
Restore it with nn=NOXHBCJM(,2,.,P,r,s,K,b,d,A,r,g,),P,V, ,6,1,6,NO.

Your code to move the line under the cursor to the top of the screen
(Tyson again, I presume) duplicates U2's MOVEHM, which is half the
size and twice as fast -- again, made for Xy4+. Check it out.

--
Carl Distefano
cld@xxxxxxxx