plan9front_-_fn_reply_and_prompt
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
plan9front_-_fn_reply_and_prompt [2023/01/06 05:23] – [reply with selected text] hc9 | plan9front_-_fn_reply_and_prompt [2024/09/07 06:30] (current) – … ☺ hc9 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== function, reply and prompt ====== | ||
+ | |||
+ | |x| Tutorial [ ] Guide [x]| | ||
+ | |||
+ | ===== function (fn) ===== | ||
+ | |||
+ | ^# | ||
+ | |**1.**|…[[resources_for_website_builders# | ||
+ | |// | ||
+ | |**2.**|// | ||
+ | |// | ||
+ | |**3.**|// | ||
+ | |// | ||
+ | |**4.**| [[plan9front_-_acme_sam_abaco_mothra_and_man# | ||
+ | |// | ||
+ | |||
+ | **Example #1:** | ||
+ | |||
+ | < | ||
+ | cpu% lc profile.edit | ||
+ | profile.edit | ||
+ | cpu% sam -d profile.edit | ||
+ | -. profile.edit | ||
+ | /fn | ||
+ | fn | ||
+ | fn term%{ $* } | ||
+ | /fn | ||
+ | fn | ||
+ | fn cpu%{ $* } | ||
+ | a | ||
+ | fn vim { sam $* } | ||
+ | . | ||
+ | w | ||
+ | profile.edit: | ||
+ | q | ||
+ | cpu% | ||
+ | </ | ||
+ | |||
+ | === whatis vim: === | ||
+ | |||
+ | < | ||
+ | cpu% whatis vim | ||
+ | fn vim { | ||
+ | sam $* | ||
+ | } | ||
+ | cpu% | ||
+ | </ | ||
+ | |||
+ | ===== reply with selected text ===== | ||
+ | |||
+ | |x|'' | ||
+ | |||
+ | === ireply: === | ||
+ | |||
+ | <file config $home/ | ||
+ | #!/bin/rc | ||
+ | awk '{ print "> " $0}' | ||
+ | </ | ||
+ | |||
+ | |1.|select text to include in reply with button 1| | ||
+ | |2.|//type ((Prepend '' | ||
+ | |3.|run **'' | ||
+ | |4.|use the button 1,3 chord to paste text into reply| | ||
+ | |5.|remove Include: line from message and type your reply.| | ||
+ | |||
+ | Start acme to access the mbox. | ||
+ | |||
+ | < | ||
+ | % acme | ||
+ | </ | ||
+ | |||
+ | ^Newcol Kill Putall Dump Exit^^^ | ||
+ | |**New Cut Paste Snarf Sort Zerox Delcol**|::: | ||
+ | |||
+ | ^Newcol Kill Putall Dump Exit^^^ | ||
+ | |**New Cut Paste Snarf Sort Zerox Delcol**|::: | ||
+ | |||
+ | ^Newcol Kill Putall Dump Exit^^^ | ||
+ | |**New Cut Paste Snarf Sort Zerox Delcol Mail**|::: | ||
+ | |||
+ | ^Newcol Kill Putall Dump Exit^^^ | ||
+ | |**New Cut Paste Snarf Sort Zerox Delcol Mail**| | ||
+ | |**/// | ||
+ | |2/|:::|⇐ An Email messages is here. Mouse button 3 press #2.| | ||
+ | |1/| | ||
+ | |**/// | ||
+ | |From: ne1nb00k@9p.sdf.org| | ||
+ | |To: | ||
+ | |Date: Fri Jun 24 23:06:59 +0000 2022| | ||
+ | |Subject: practice reply| | ||
+ | |[blank]| | ||
+ | |That was some good neinbook!| | ||
+ | |[blank]| | ||
+ | |> Some text to reply to|:::|⇐ This is the text highlighting example area.| | ||
+ | |[blank]| | ||
+ | |Other text| | ||
+ | |Other text| | ||
+ | |||
+ | === whatis ireply: === | ||
+ | |||
+ | < | ||
+ | cpu% whatis ireply | ||
+ | /bin/ireply | ||
+ | cpu% | ||
+ | </ | ||
+ | |||
+ | ===== prompt ===== | ||
+ | |||
+ | < | ||
+ | cpu% cp $home/ | ||
+ | </ | ||
+ | |||
+ | ^# | ||
+ | |**1.**|// | ||
+ | |// | ||
+ | |**2.**|// | ||
+ | |// | ||
+ | |// | ||
+ | |**3.**|A Plan 9 Boot Camp user contributed prompt.| | ||
+ | |// | ||
+ | |// | ||
+ | |||
+ | **Example #1:** | ||
+ | |||
+ | < | ||
+ | cpu% lc profile.edit | ||
+ | profile.edit | ||
+ | cpu% sam -d profile.edit | ||
+ | -. profile.edit | ||
+ | /fn | ||
+ | fn | ||
+ | fn term%{ $* } | ||
+ | /fn | ||
+ | fn | ||
+ | fn cpu%{ $* } | ||
+ | s/cpu%{ \$\*/cd { builtin cd $* \& | ||
+ | . | ||
+ | fn cd { builtin cd $* && prompt=(`{pwd}^% '' | ||
+ | w | ||
+ | profile.edit: | ||
+ | q | ||
+ | cpu% | ||
+ | </ | ||
+ | |||
+ | === whatis cd: === | ||
+ | |||
+ | < | ||
+ | cpu% whatis cd | ||
+ | fn cd { | ||
+ | builtin cd $* && prompt=(`{ | ||
+ | pwd | ||
+ | }^% '' | ||
+ | } | ||
+ | cpu% | ||
+ | </ | ||