If no 'begin' key on keypad, use 'home' instead since PC keyboards
authormillert <millert@openbsd.org>
Sun, 12 Mar 2000 00:42:16 +0000 (00:42 +0000)
committermillert <millert@openbsd.org>
Sun, 12 Mar 2000 00:42:16 +0000 (00:42 +0000)
have 'home', not 'begin'.

usr.bin/mg/ttykbd.c

index 52febf6..f4a1679 100644 (file)
@@ -43,6 +43,8 @@ ttykeymapinit()
                dobindkey(map_table[0].p_map, "next-line", key_down);
        if (key_beg)
                dobindkey(map_table[0].p_map, "beginning-of-line", key_beg);
+       else if (key_home)
+               dobindkey(map_table[0].p_map, "beginning-of-line", key_home);
        if (key_end)
                dobindkey(map_table[0].p_map, "end-of-line", key_end);
        if (key_npage)