Loading ...
Sorry, an error occurred while loading the content.

Re: updated strtrans() patch for special keys

Expand Messages
  • Eric Arnold
    Trying again. It looks like gmail cached the wrong version in it s attachment area.
    Message 1 of 9 , May 22, 2006
    • 0 Attachment
      Trying again. It looks like gmail cached the wrong version in it's
      attachment area.

      On 5/22/06, Eric Arnold <eric.p.arnold@...> wrote:
      > Here's a version which translates meta chars also. I haven't done
      > anything with multi-byte chars, since I don't know if that's something
      > useful on systems using multi-byte.
      >
      >
      > strtrans({expr}[, {flags}]) *strtrans()*
      > The result is a String, which is {expr} with all unprintable
      > characters translated into printable characters |'isprint'|.
      > Like they are shown in a window. Example: >
      > echo strtrans(@a)
      > < This displays a newline in register a as "^@" instead of
      > starting a new line.
      >
      > Flags can be:
      > 'l' Long mode. Translates control keys and
      > special keys to the format, "<C-C>", "<ESC",
      > etc.
      > 'e' Evaluatable mode. Similar to long mode, but
      > creates a string which can be evaluated to get
      > back the original keys, "\<C-C>", "\<ESC", etc.
      > 'a' All mode, also translate keys in the ~-255 range.
      > Can be used in conjunction with 'l' or 'e'.
      >
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.