Re: Mapping of the special characters to the control sequences available?

2018-02-09 Thread Eduardo Bustamante
On Fri, Feb 9, 2018 at 11:43 AM, Peng Yu  wrote:
> I see CR is on the same line as M. Are the special characters mapped
> to the 3rd column of the table (e.g., BS maps to control-V control-H)?

Wikipedia explains it:
https://en.wikipedia.org/wiki/Control_character#How_control_characters_map_to_keyboards

  ASCII-based keyboards have a key labelled "Control", "Ctrl", or
(rarely) "Cntl" which is used much like a shift key,
  being pressed in combination with another letter or symbol key. In
one implementation, the control key generates
  the code 64 places below the code for the (generally) uppercase
letter it is pressed in combination with (i.e., subtract
  64 from ASCII code value in decimal of the (generally) uppercase
letter). The other implementation is to take the
  ASCII code produced by the key and bitwise AND it with 31, forcing
bits 6 and 7 to zero.



Mapping of the special characters to the control sequences available?

2018-02-09 Thread Peng Yu
Hi,

The following URL says control-v followed by control-m will insert a CR.

https://superuser.com/questions/942217/how-do-i-interactively-type-r-n-terminated-query-in-netcat?answertab=active#tab-top

I understand control-v is to enter the next character typed literally.
And control-m is a CR.

https://en.wikipedia.org/wiki/Carriage_return

Is there a complete table of the mapping of the special characters to
the control sequences?

-- 
Regards,
Peng