Re: putting ascii keys in a script
On Thu, Dec 09, 2004 at 08:54:52AM +0800, Robert Vangel wrote:
> Michael Martinell wrote:
> >I have a script that I need to send an enter keystroke with.
> >
> >On the keyboard I can do alt + 013 which is the ascii code for the enter
> >key. I wanted to put this into my script using vi. Any suggestions for an
> >escape-type sequence that will record the keystroke and not cause vi to
> >interpret it as a request to insert a new line?
>
> what about
>
> echo -e "\n"
Or if you really need the actual character (or another special
character), type ctrl-v first.
Richard
Reply to: