Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I try to do things like Alt-0160 in Linux
on the numberpad but they don't see to
work. Can I still do these on Linux?

Yep. Not sure about under X (I think its application dependant or you have to modify the keymap) but in text mode you use the octal number for the character, eg:
charater = a
hex = 61
dec = 97
octal = 141So you can either do:
Alt & 141
or
$ echo -e "\141"
or
$ perl -e 'print "\141\n";'
I suppose you could do the last two in an terminal under X.Here is a c program you can use to convert decimal ascii codes into charaters. It is a bit like the DOS chr program, ($ chr 97 would return "a")
#include <stdio.h>
#include <stdlib.h>int main(int argc, char *argv[])
{
char c[] = {atoi(argv[1]), '\0'};printf("%s\n", c);
return EXIT_SUCCESS;
}

![]() |
How to install AC97 onboa...
|
FormMail & Sendmail
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |