Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!ucbvax!hplabs!hpda!hpcupt1!dhb From: dhb@hpcupt1.HP.COM (Dan Barnes) Newsgroups: comp.sys.hp Subject: Re: CI.STK history function Message-ID: <-286539962@hpcupt1.HP.COM> Date: 22 Feb 90 18:00:46 GMT References: <1990Feb19.235123.5458@sjuphil.uucp> Organization: Hewlett Packard, Cupertino Lines: 22 Here is a set of alias's that I have. This may seem long. The reason it seems long is that it tries to move the cursor up to the specified line if you tell it do display a particular number of lines. Note: The characters ^[ are a two character representation for the escape character. alias / 'csc_p1 \!:*' alias // 'csc_p1 2' alias /5 'csc_p1 6' alias /11 'csc_p1 12' alias /22 'csc_p1 23' alias csc_p1 'echo ^[J--- Commands ---;\\ @ csc = \!:*;if (\!:* == )@ csc = $history;history -h $csc;\\ if (\!:* != )repeat \!:* echo -n ^[A;set csc = $<;\\ echo -n ^[R^[J^[A^[d;sleep 1' alias x 'set csc = $<;echo -n ^[R^[J^[A^[d;sleep 1' Dan Barnes