| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Forcing re-eval of the Prompt c |
-=> Quoting Andy McArdle to Greg Kerr <=-
Hi Andy (& Greg),
GK>>> Prompt "*`date*`*nCLI:%N RC:%R CD:%S-> "
FWIW, here's my regular prompt alias:
alias pr Prompt "*e[33mRC=%R*n*e[32m%S*n%N*e[37m[]>*e[31m"
AM>> Funnily enough, it appears to be only the "date" cmd that needs
AM>> the "`"s to be escaped like this. :\
GK> I gathered that.. luckily I only need the date command :-)
For a while I was using a prompt with rx "say time()" in it, but I
can't remember the exact format off hand.
AM> I've had a bit of an experiment and found others that also
AM> *need* escaping... such as 'list'
AM> Also any cmd that outputs multiple lines of text should be
AM> escaped, else it only displays the first few chars of the first
AM> line, until the prompt length = 80 chars.
Here are a few of my favourite "`" aliases:
alias res resident *`which []*`
alias ls list *`which []*`
alias st status full
alias kill rx "shell;z='*`st com []*`';do until z='';
parse VAR z n z;c='break' n;say c;c;end"
I also have to mention this little gem:
alias files rx "shell;f=showdir('','F');do while f~='';
parse VAR f n f;[] n;end"
AM>> Weird! :\
GK> That it is!
It's not really that weird, just a symptom of the way AmigaDOS
tokenizes, I guess. I've spent hours stuffing around with * and `
trying to get obscure aliases & prompt strings working.
AM> What's weirder is someone elses discovery. They loaded CShell
AM> from the std Shell, then staying in the *std* shell they tried
AM> it again and it worked properly!!
GK>>> nqiregvfref
AM>> ^^^^ Gurl arrq n fhoyvzvany qvpgvbanel! O:-)
GK> be ng yrnfg n fcryy purpxre
AM> N fcryy purpxre pncnoyr bs unaqyvat EBG? Abj gung'f na vqrn!
N cvrpr bs pnxr, hfvat zl ErkkFcryy yvoenel! :)
FWIW, here's a little patch that automatically ROT13s text as it's
rendered. :)
ROTPatch by Michael Stapleton of Graphic Bits. Public Domain.
CLI only!
begin 644 RotPatch
M```#\P`````````"``````````$````N````%{at}```^D````N2.<_/BQY````H
M!$/Y````"'``3J[]V"/`````!&GK>>> * Origin: Gfuv zrffntr vf oebhtug gb lbh ol fhoyvzvany* Origin: Mach One BBS (3:713/615) SEEN-BY: 620/243 621/505 623/630 625/100 711/401 409 413 430 808 809 934 SEEN-BY: 712/515 713/111 317 615 618 700 888 914 714/906 800/1 @PATH: 713/888 711/808 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.