The control code ^_ (0x1f) should really be called "us" rather than "ns".

In the mean time, accept both "us" and "ns" in the keymap file as ^_
for the compatibility with the existing keymap files.
This commit is contained in:
Kazutaka YOKOTA 1998-08-06 09:44:23 +00:00
parent 08b66b4483
commit b897510f7a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38139
2 changed files with 4 additions and 3 deletions

View File

@ -28,7 +28,7 @@
#ifndef lint
static const char rcsid[] =
"$Id: kbdcontrol.c,v 1.15 1998/08/03 09:12:39 yokota Exp $";
"$Id: kbdcontrol.c,v 1.16 1998/08/03 11:33:22 yokota Exp $";
#endif /* not lint */
#include <ctype.h>
@ -45,7 +45,7 @@ char ctrl_names[32][4] = {
"nul", "soh", "stx", "etx", "eot", "enq", "ack", "bel",
"bs ", "ht ", "nl ", "vt ", "ff ", "cr ", "so ", "si ",
"dle", "dc1", "dc2", "dc3", "dc4", "nak", "syn", "etb",
"can", "em ", "sub", "esc", "fs ", "gs ", "rs ", "ns "
"can", "em ", "sub", "esc", "fs ", "gs ", "rs ", "us "
};
char acc_names[15][5] = {

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: lex.l,v 1.6 1998/01/07 08:43:28 yokota Exp $
* $Id: lex.l,v 1.7 1998/08/03 11:33:22 yokota Exp $
*/
%{
@ -93,6 +93,7 @@ FS|fs { number = 28; return TNUM; }
GS|gs { number = 29; return TNUM; }
RS|rs { number = 30; return TNUM; }
NS|ns { number = 31; return TNUM; }
US|us { number = 31; return TNUM; }
SP|sp { number = 32; return TNUM; }
DEL|del { number = 127; return TNUM; }