ok what about Terminal?

On Mon, 2004-11-22 at 14:18 +1300, Carl Cerecke wrote:
> Steve Holdoway wrote:
> > Just wondering, is it a good idea(tm) to remap ctrl-m?
> 
> Ctrl-m is usually a synonym for the Enter key, i.e. it sends a newline 
> character.
> 
> Try this in a shell (% indicates the terminal prompt)
> 
> % cat > foo
> 
> Then type Ctrl-m followed by Enter followed by Ctrl-d
> 
> Ctrl-d sends end-of-file. You have just created a two-character file 
> with the character generated by a ctrl-m and the character generated go 
> the Enter key.
> 
> Now, to examine the characters in the file:
> 
> % od -c foo
> 0000000  \n  \n
> 0000002
> 
> We see that both Ctrl-m and Enter added a \n character to the file.
> 
> And:
> % man ascii
> shows us that \n is the line feed character, with a decimal value of 10.
> 
> Cheers,
> Carl.
> 
-- 
Caleb Sawtell <[EMAIL PROTECTED]>

Reply via email to