[BACK]Return to xterm-keys.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/Attic/xterm-keys.c between version 1.18 and 1.19

version 1.18, 2016/01/19 15:59:12 version 1.19, 2016/10/03 22:52:11
Line 40 
Line 40 
  * We accept any but always output the latter (it comes first in the table).   * We accept any but always output the latter (it comes first in the table).
  */   */
   
 int     xterm_keys_match(const char *, const char *, size_t, size_t *,  static int      xterm_keys_match(const char *, const char *, size_t, size_t *,
             key_code *);                      key_code *);
 int     xterm_keys_modifiers(const char *, size_t, size_t *, key_code *);  static int      xterm_keys_modifiers(const char *, size_t, size_t *,
                       key_code *);
   
 struct xterm_keys_entry {  struct xterm_keys_entry {
         key_code         key;          key_code         key;
         const char      *template;          const char      *template;
 };  };
   
 const struct xterm_keys_entry xterm_keys_table[] = {  static const struct xterm_keys_entry xterm_keys_table[] = {
         { KEYC_F1,      "\033[1;_P" },          { KEYC_F1,      "\033[1;_P" },
         { KEYC_F1,      "\033O1;_P" },          { KEYC_F1,      "\033O1;_P" },
         { KEYC_F1,      "\033O_P" },          { KEYC_F1,      "\033O_P" },
Line 114 
Line 115 
  * Match key against buffer, treating _ as a wildcard. Return -1 for no match,   * Match key against buffer, treating _ as a wildcard. Return -1 for no match,
  * 0 for match, 1 if the end of the buffer is reached (need more data).   * 0 for match, 1 if the end of the buffer is reached (need more data).
  */   */
 int  static int
 xterm_keys_match(const char *template, const char *buf, size_t len,  xterm_keys_match(const char *template, const char *buf, size_t len,
     size_t *size, key_code *modifiers)      size_t *size, key_code *modifiers)
 {  {
Line 148 
Line 149 
 }  }
   
 /* Find modifiers from buffer. */  /* Find modifiers from buffer. */
 int  static int
 xterm_keys_modifiers(const char *buf, size_t len, size_t *pos,  xterm_keys_modifiers(const char *buf, size_t len, size_t *pos,
     key_code *modifiers)      key_code *modifiers)
 {  {

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19