Path: utzoo!attcan!uunet!ncc!myrias!cg From: cg@myrias.UUCP (Chris Gray) Newsgroups: comp.sys.amiga Subject: Re: Fun with prompts! Summary: Some more useful aliases Message-ID: <671@myrias.UUCP> Date: 29 Nov 88 00:41:19 GMT References: <9980@watdragon.waterloo.edu> Organization: Myrias Research Corporation Lines: 28 In article <9980@watdragon.waterloo.edu> bmacintyre@watsol.waterloo.edu (Blair MacIntyre) writes: > >What this is leading to are the neat possibilities this opens up. For >example, try using these to make your prompt more attractive: > > prompt "*E[33m[*E[31m%S*[33m]*E31m >" > >( I did that from memory and toned it down a bit ... mine has the > directory in it too! ) > I leave the current directory in mine. With my regular palette, that turns the prompt into blue (same as the cursor) on a grey background. Another useful set of aliases is to use the "lformat" option on 'eval' to make commands that do conversions to/from hex,octal,decimal and ASCII. I don't remember the details, but they go something like: alias hex eval {} lformat="%X8*N" alias octal eval {} lformat="%O9*N" alias char eval {} lformat="'%C'*N" Unfortunately, only one field-width digit is allowed, so the octal one won't print a 32 bit value. Also, make 'eval' resident for good response. I was happily surprised to find that 'A' is a valid integer for 'eval'. -- Chris Gray Myrias Research, Edmonton +1 403 428 1616 {uunet!mnetor,ubc-vision,watmath,vax135}!alberta!myrias!cg