LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to type characters with ALT+ASCIICODE ? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-type-characters-with-alt-asciicode-134815/)

juliancoccia 01-14-2004 02:52 PM

How to type characters with ALT+ASCIICODE ?
 
This sounds like a newbie question, but I doubt it is.

I know there are character map applications and other ways to type extended characters but in my debian distribution, I can do ALT+ASCIICODE and I get the char, just like in Windows. This only works in a text VT. My questions are:

How do I replicate this with another (non-debian) distro ?
What causes this behaviour ?
How do I get this to work with KDE ?

Thanks!
Julian

scott_R 01-14-2004 08:18 PM

>"How do I replicate this with another (non-debian) distro ?"
Any distro set up similarly should do it. If anything, it's the xfree86/window manager combo that handles this.

>"What causes this behaviour ?"
The keyboard itself. When you hit alt+number on the separate number keys, you alter the signal that's sent to the keyboard controller on your motherboard. Because old PC's were intended as cheaper versions of IT mainframes, they included a number of functions that programmers happened to like. (Nobody, not even IBM, truely expected "lowly" secretaries would ever use a PC, despite the way it's portrayed these days.) With this feature, if you had a problem (in ancient, ancient programs), you could sometimes alter the way the program ran by entering a code this way. Later, it became a way to extend the limitations of the keyboard, and then it drifted out of use with the introduction of multitasking systems.

This is because there wasn't much need of it with a multitasking system. If your program does something unexpected, you simply open another window to alter it's function, or kill it. With older "real mode" programs, there was no way to signal the processor to alter it's function (aside from just killing it, which sometimes didn't work if the processor locked up), as the processor is only doing one thing, running your program. This was a way to bypass that, provided the programmer built the functionality into the program. This never really made it into the mainstream, even later on, because it added a lot of code to programs that were barely small enough to run in the first place. Well, that and it opened a big door to anyone that wanted to screw up your data.

Actually, I'd like to know if this is the same for USB keyboards as well, as they don't necessarily have to support "legacy" applications.

>"How do I get this to work with KDE ?"
Don't, know, I use GNOME. :) It should be relatively easy, however.

urka58 01-15-2004 05:09 PM

I'm a little confused, but I try to give you a response (you might find it not useful)
I you need such characters when logged into graphical mode (wathever KDE Gnome etc)
~ alt gr + ì
{ alt gr + 7
} alt gr + 0
and so on
you will have different characters according to your keyboard layout (US Eng German ....)
as I'm using the italian keymap at the moment
Also remember this is valid for terminal emulators as well (ie Konsole etc)
Ciao

DavidMcCann 11-10-2006 10:55 AM

Entering characters by code
 
I can do this with Fedora and Gnome by holding down CtrlShift and entering U followed by the decimal code. Thus Ctrl-Shift-U2202 gives a bullet. Give it a try.

tim1348 11-10-2006 12:34 PM

<---Ok, tried it, lol. Ctrl-Shift-U2202


All times are GMT -5. The time now is 04:05 PM.