Changeset f87c490 for keypress.c
- Timestamp:
- Apr 20, 2003, 3:48:31 PM (21 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- e51b410
- Parents:
- aaf6071
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
keypress.c
rac70242 rf87c490 127 127 }; 128 128 129 #define OWL_CTRL(key) ((key)&037) 130 /* OWL_META is definied in owl.h */ 131 129 132 /* returns 0 on success */ 130 133 int owl_keypress_tostring(int j, int esc, char *buff, int bufflen) { … … 134 137 *kb = '\0'; 135 138 for (sm = specialmap; sm->kj!=0; sm++) { 136 if (j == META(sm->kj) || (esc && j == sm->kj)) {139 if (j == OWL_META(sm->kj) || (esc && j == sm->kj)) { 137 140 strcat(kb, "M-"); 138 141 strcat(kb, sm->ks); … … 144 147 } 145 148 if (!*kb) { 146 if (j& META(0)) {149 if (j&OWL_META(0)) { 147 150 strcat(kb, "M-"); 148 j &= ~ META(0);149 } 150 if (( CTRL(j) == j)) {151 j &= ~OWL_META(0); 152 } 153 if ((OWL_CTRL(j) == j)) { 151 154 strcat(kb, "C-"); 152 155 j |= 0x60; … … 196 199 if (j==ERR) return(ERR); 197 200 if (isctrl) { 198 j = CTRL(j);201 j = OWL_CTRL(j); 199 202 } 200 203 if (ismeta) { 201 j = META(j);204 j = OWL_META(j); 202 205 } 203 206 return(j);
Note: See TracChangeset
for help on using the changeset viewer.