[28.02.02 17:22 +0200] Vasilis Vasaitis <-- : > On Thu, Feb 28, 2002 at 03:26:38PM +0100, Erika Pacholleck wrote: > > expected behaviour from this: > > - typing [Ctrl]+[o] sending Control_o (switch to G0) > > - typing [Ctrl]+[n] sending Control_n (switch to G1) > > Expected behaviour where? You can't expect terminal applications > to just echo every character they receive to the terminal. > A notable exception to this is cat(1), which will just echo at its > output whatever it receives in its input. In fact, cat is very useful > for tests like this. > As I said, just because you press ^N or ^O at the bash prompt, doesn't > mean that it will echo them to the terminal. Use cat and it will do what > you expect. Thanks, NOW I understand!! So a description how to produce that is type cat, press [ENTER], [Ctrl]+[n] or +[o], [ENTER], [Ctrl]+[d], [ENTER] and that really works, great. I simply did not understand the docs. > To summarize, remember that ^N and ^O, like most other codes, change the > state of the terminal when they are output to it, not when they are input > from it.
That was what I wanted to achieve, have ls $HOME output in graphical mode, and to output it like that I needed to set the terminal to that state first. > As a rule of thumb, the ASCII value for ^X, where X is any letter of > the english alphabet, equals the position of that letter in the alphabet. I did not know that, this is really a good way to remember it. Thanks very much, everything is fine now. -- Erika Pacholleck <[EMAIL PROTECTED]> for private replies unhex my last name -- Linux-UTF8: i18n of Linux on all levels Archive: http://mail.nl.linux.org/linux-utf8/
