Rewrite fkey_tab to produce unique sequences for all fkeys

Get rid of overloaded fkeys
This commit is contained in:
Andrey A. Chernov 1995-01-26 09:58:37 +00:00
parent e7a1520824
commit 325e89b668
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5931
3 changed files with 60 additions and 42 deletions

View file

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: kbdtables.h,v 1.19 1994/12/31 11:38:39 ache Exp $
* $Id: kbdtables.h,v 1.20 1995/01/26 08:43:24 ache Exp $
*/
#define SET8 0x80 /* eight bit for emacs SET8-key */
@ -869,21 +869,27 @@ keymap_t key_map = { 0x6C, /* US iso8859 keymap */
#endif
fkeytab_t fkey_tab[63] = {
fkeytab_t fkey_tab[65] = {
/* F1 - F12 */
/* 00-03 */ {"\033[M", 3}, {"\033[N", 3}, {"\033[O", 3}, {"\033[P", 3},
/* 04-07 */ {"\033[Q", 3}, {"\033[R", 3}, {"\033[S", 3}, {"\033[T", 3},
/* 08-0B */ {"\033[U", 3}, {"\033[V", 3}, {"\033[W", 3}, {"\033[X", 3},
/* 0C-0F */ {"\033[W", 3}, {"\033[X", 3}, {"\033[Y", 3}, {"\033[Z", 3},
/* 10-13 */ {"\033[a", 3}, {"\033[b", 3}, {"\033[c", 3}, {"\033[d", 3},
/* 14-17 */ {"\033[e", 3}, {"\033[f", 3}, {"\033[g", 3}, {"\033[h", 3},
/* 18-1B */ {"\033[g", 3}, {"\033[h", 3}, {"\033[i", 3}, {"\033[j", 3},
/* 1C-1F */ {"\033[k", 3}, {"\033[l", 3}, {"\033[m", 3}, {"\033[n", 3},
/* 20-23 */ {"\033[o", 3}, {"\033[p", 3}, {"\033[q", 3}, {"\033[r", 3},
/* 24-27 */ {"\033[g", 3}, {"\033[h", 3}, {"\033[i", 3}, {"\033[j", 3},
/* 28-2B */ {"\033[k", 3}, {"\033[l", 3}, {"\033[m", 3}, {"\033[n", 3},
/* 2C-2F */ {"\033[o", 3}, {"\033[p", 3}, {"\033[q", 3}, {"\033[E", 3},
/* 30-33 */ {"\033[H", 3}, {"\033[A", 3}, {"\033[I", 3}, {"-" , 1},
/* 34-37 */ {"\033[D", 3}, {"\033[K", 3}, {"\033[C", 3}, {"+" , 1},
/* Shift F1 - F12 */
/* 0C-0F */ {"\033[m", 3}, {"\033[n", 3}, {"\033[o", 3}, {"\033[p", 3},
/* 10-13 */ {"\033[q", 3}, {"\033[r", 3}, {"\033[s", 3}, {"\033[t", 3},
/* 14-17 */ {"\033[u", 3}, {"\033[v", 3}, {"\033[w", 3}, {"\033[x", 3},
/* Ctrl F1 - F12 */
/* 18-1B */ {"\033[\315", 3}, {"\033[\316", 3}, {"\033[\317", 3}, {"\033[\320", 3},
/* 1C-1F */ {"\033[\321", 3}, {"\033[\322", 3}, {"\033[\323", 3}, {"\033[\324", 3},
/* 20-23 */ {"\033[\325", 3}, {"\033[\326", 3}, {"\033[\327", 3}, {"\033[\330", 3},
/* Ctrl+Shift F1 - F12 */
/* 24-27 */ {"\033[\355", 3}, {"\033[\356", 3}, {"\033[\357", 3}, {"\033[\360", 3},
/* 28-2B */ {"\033[\361", 3}, {"\033[\362", 3}, {"\033[\363", 3}, {"\033[\364", 3},
/* 2C-2F */ {"\033[\365", 3}, {"\033[\366", 3}, {"\033[\367", 3}, {"\033[\370", 3},
/* Others */
/* 30-33 */ {"\033[H", 3}, {"\033[A", 3}, {"\033[I", 3}, {"\033[J", 3},
/* 34-37 */ {"\033[D", 3}, {"\033[K", 3}, {"\033[C", 3}, {"\033[Y", 3},
/* 38-3B */ {"\033[F", 3}, {"\033[B", 3}, {"\033[G", 3}, {"\033[L", 3},
/* 3C-3E */ {"\033[s", 3}, {"\033[t", 3}, {"\033[u", 3}
/* 3C-3B */ {"\033[@", 3}, {"\033[y", 3}, {"\033[z", 3}, {"\033[Z", 3},
/* 3D */ {"\033[E", 3}
};

View file

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: kbdtables.h,v 1.19 1994/12/31 11:38:39 ache Exp $
* $Id: kbdtables.h,v 1.20 1995/01/26 08:43:24 ache Exp $
*/
#define SET8 0x80 /* eight bit for emacs SET8-key */
@ -869,21 +869,27 @@ keymap_t key_map = { 0x6C, /* US iso8859 keymap */
#endif
fkeytab_t fkey_tab[63] = {
fkeytab_t fkey_tab[65] = {
/* F1 - F12 */
/* 00-03 */ {"\033[M", 3}, {"\033[N", 3}, {"\033[O", 3}, {"\033[P", 3},
/* 04-07 */ {"\033[Q", 3}, {"\033[R", 3}, {"\033[S", 3}, {"\033[T", 3},
/* 08-0B */ {"\033[U", 3}, {"\033[V", 3}, {"\033[W", 3}, {"\033[X", 3},
/* 0C-0F */ {"\033[W", 3}, {"\033[X", 3}, {"\033[Y", 3}, {"\033[Z", 3},
/* 10-13 */ {"\033[a", 3}, {"\033[b", 3}, {"\033[c", 3}, {"\033[d", 3},
/* 14-17 */ {"\033[e", 3}, {"\033[f", 3}, {"\033[g", 3}, {"\033[h", 3},
/* 18-1B */ {"\033[g", 3}, {"\033[h", 3}, {"\033[i", 3}, {"\033[j", 3},
/* 1C-1F */ {"\033[k", 3}, {"\033[l", 3}, {"\033[m", 3}, {"\033[n", 3},
/* 20-23 */ {"\033[o", 3}, {"\033[p", 3}, {"\033[q", 3}, {"\033[r", 3},
/* 24-27 */ {"\033[g", 3}, {"\033[h", 3}, {"\033[i", 3}, {"\033[j", 3},
/* 28-2B */ {"\033[k", 3}, {"\033[l", 3}, {"\033[m", 3}, {"\033[n", 3},
/* 2C-2F */ {"\033[o", 3}, {"\033[p", 3}, {"\033[q", 3}, {"\033[E", 3},
/* 30-33 */ {"\033[H", 3}, {"\033[A", 3}, {"\033[I", 3}, {"-" , 1},
/* 34-37 */ {"\033[D", 3}, {"\033[K", 3}, {"\033[C", 3}, {"+" , 1},
/* Shift F1 - F12 */
/* 0C-0F */ {"\033[m", 3}, {"\033[n", 3}, {"\033[o", 3}, {"\033[p", 3},
/* 10-13 */ {"\033[q", 3}, {"\033[r", 3}, {"\033[s", 3}, {"\033[t", 3},
/* 14-17 */ {"\033[u", 3}, {"\033[v", 3}, {"\033[w", 3}, {"\033[x", 3},
/* Ctrl F1 - F12 */
/* 18-1B */ {"\033[\315", 3}, {"\033[\316", 3}, {"\033[\317", 3}, {"\033[\320", 3},
/* 1C-1F */ {"\033[\321", 3}, {"\033[\322", 3}, {"\033[\323", 3}, {"\033[\324", 3},
/* 20-23 */ {"\033[\325", 3}, {"\033[\326", 3}, {"\033[\327", 3}, {"\033[\330", 3},
/* Ctrl+Shift F1 - F12 */
/* 24-27 */ {"\033[\355", 3}, {"\033[\356", 3}, {"\033[\357", 3}, {"\033[\360", 3},
/* 28-2B */ {"\033[\361", 3}, {"\033[\362", 3}, {"\033[\363", 3}, {"\033[\364", 3},
/* 2C-2F */ {"\033[\365", 3}, {"\033[\366", 3}, {"\033[\367", 3}, {"\033[\370", 3},
/* Others */
/* 30-33 */ {"\033[H", 3}, {"\033[A", 3}, {"\033[I", 3}, {"\033[J", 3},
/* 34-37 */ {"\033[D", 3}, {"\033[K", 3}, {"\033[C", 3}, {"\033[Y", 3},
/* 38-3B */ {"\033[F", 3}, {"\033[B", 3}, {"\033[G", 3}, {"\033[L", 3},
/* 3C-3E */ {"\033[s", 3}, {"\033[t", 3}, {"\033[u", 3}
/* 3C-3B */ {"\033[@", 3}, {"\033[y", 3}, {"\033[z", 3}, {"\033[Z", 3},
/* 3D */ {"\033[E", 3}
};

View file

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: kbdtables.h,v 1.19 1994/12/31 11:38:39 ache Exp $
* $Id: kbdtables.h,v 1.20 1995/01/26 08:43:24 ache Exp $
*/
#define SET8 0x80 /* eight bit for emacs SET8-key */
@ -869,21 +869,27 @@ keymap_t key_map = { 0x6C, /* US iso8859 keymap */
#endif
fkeytab_t fkey_tab[63] = {
fkeytab_t fkey_tab[65] = {
/* F1 - F12 */
/* 00-03 */ {"\033[M", 3}, {"\033[N", 3}, {"\033[O", 3}, {"\033[P", 3},
/* 04-07 */ {"\033[Q", 3}, {"\033[R", 3}, {"\033[S", 3}, {"\033[T", 3},
/* 08-0B */ {"\033[U", 3}, {"\033[V", 3}, {"\033[W", 3}, {"\033[X", 3},
/* 0C-0F */ {"\033[W", 3}, {"\033[X", 3}, {"\033[Y", 3}, {"\033[Z", 3},
/* 10-13 */ {"\033[a", 3}, {"\033[b", 3}, {"\033[c", 3}, {"\033[d", 3},
/* 14-17 */ {"\033[e", 3}, {"\033[f", 3}, {"\033[g", 3}, {"\033[h", 3},
/* 18-1B */ {"\033[g", 3}, {"\033[h", 3}, {"\033[i", 3}, {"\033[j", 3},
/* 1C-1F */ {"\033[k", 3}, {"\033[l", 3}, {"\033[m", 3}, {"\033[n", 3},
/* 20-23 */ {"\033[o", 3}, {"\033[p", 3}, {"\033[q", 3}, {"\033[r", 3},
/* 24-27 */ {"\033[g", 3}, {"\033[h", 3}, {"\033[i", 3}, {"\033[j", 3},
/* 28-2B */ {"\033[k", 3}, {"\033[l", 3}, {"\033[m", 3}, {"\033[n", 3},
/* 2C-2F */ {"\033[o", 3}, {"\033[p", 3}, {"\033[q", 3}, {"\033[E", 3},
/* 30-33 */ {"\033[H", 3}, {"\033[A", 3}, {"\033[I", 3}, {"-" , 1},
/* 34-37 */ {"\033[D", 3}, {"\033[K", 3}, {"\033[C", 3}, {"+" , 1},
/* Shift F1 - F12 */
/* 0C-0F */ {"\033[m", 3}, {"\033[n", 3}, {"\033[o", 3}, {"\033[p", 3},
/* 10-13 */ {"\033[q", 3}, {"\033[r", 3}, {"\033[s", 3}, {"\033[t", 3},
/* 14-17 */ {"\033[u", 3}, {"\033[v", 3}, {"\033[w", 3}, {"\033[x", 3},
/* Ctrl F1 - F12 */
/* 18-1B */ {"\033[\315", 3}, {"\033[\316", 3}, {"\033[\317", 3}, {"\033[\320", 3},
/* 1C-1F */ {"\033[\321", 3}, {"\033[\322", 3}, {"\033[\323", 3}, {"\033[\324", 3},
/* 20-23 */ {"\033[\325", 3}, {"\033[\326", 3}, {"\033[\327", 3}, {"\033[\330", 3},
/* Ctrl+Shift F1 - F12 */
/* 24-27 */ {"\033[\355", 3}, {"\033[\356", 3}, {"\033[\357", 3}, {"\033[\360", 3},
/* 28-2B */ {"\033[\361", 3}, {"\033[\362", 3}, {"\033[\363", 3}, {"\033[\364", 3},
/* 2C-2F */ {"\033[\365", 3}, {"\033[\366", 3}, {"\033[\367", 3}, {"\033[\370", 3},
/* Others */
/* 30-33 */ {"\033[H", 3}, {"\033[A", 3}, {"\033[I", 3}, {"\033[J", 3},
/* 34-37 */ {"\033[D", 3}, {"\033[K", 3}, {"\033[C", 3}, {"\033[Y", 3},
/* 38-3B */ {"\033[F", 3}, {"\033[B", 3}, {"\033[G", 3}, {"\033[L", 3},
/* 3C-3E */ {"\033[s", 3}, {"\033[t", 3}, {"\033[u", 3}
/* 3C-3B */ {"\033[@", 3}, {"\033[y", 3}, {"\033[z", 3}, {"\033[Z", 3},
/* 3D */ {"\033[E", 3}
};