^M

Ted Ozolins ted
Mon May 17 11:46:59 PDT 2004


James McDonald wrote:

> Ted Ozolins wrote:
>
>> During my days working with cp/m I use to use in scripts ^M to obtain 
>> the action of <Enter>. How or what can be used in bash (as in 
>> rc.local) to get the same action?
>> TIA
>
>
> Isn't it just a matter of doing a an echo -e \xxx where xxx is the 
> octal value of the ascii code? Although I couldn't figure out the code 
> for ^M by looking at the "man ascii" page... if someone knows I'm 
> curious now aswell.

The only value I can get are the keycodes (28 and 96) 28 being in the 
qwerty section and 98 by the numeric keypad. I use to have an old cpm-80 
book that listed all those goodies but no longer am sure where it is<G>

Ted Ozolins (VE7TVO)
Westbank, B.C.



More information about the Linux-users mailing list