hi all Does anybody know, where on my susesystem i could find a complete ASCII table? the background to this ques is: licq (which i installed yesterday, thanks for all the hints i got on the compile prob) has a config file in which you can set the caption that will appear on the system menu, and i would like to see the smiley on that button. i know there should be an ascii code for it , since i saw it on a windows sys. Thanks, Alex -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Well, I've included a C program below that will attempt to print
all ASCII characters. However, be aware that some of them are
non-printable, so some of the output may seem a little odd. It
also includes the number (0-255) of the current ASCII character.
Unfortunately, I have no clue how to map the keys to keyboard
input, but that shouldn't be a problem if you only need the
ASCII code.
Just compile the program and pipe it through less.
Kevin
#----- BEGIN PROGRAM -----
#include
From: Robert Alexander Stragies
hi all Does anybody know, where on my susesystem i could find a complete ASCII table? the background to this ques is: licq (which i installed yesterday, thanks for all the hints i got on the compile prob) has a config file in which you can set the caption that will appear on the system menu, and i would like to see the smiley on that button. i know there should be an ascii code for it , since i saw it on a windows sys.
Thanks, Alex
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
The Perl version is:
perl -e 'foreach $i (32..127) { printf( "%c %02X\n", $i, $i); }'
Change the obvious numbers if you want non printing chars, but you can't assume non ASCII chars will display the same on different platforms or even Linux installations. Kevin Sandy wrote:
Well, I've included a C program below that will attempt to print all ASCII characters. However, be aware that some of them are non-printable, so some of the output may seem a little odd. It also includes the number (0-255) of the current ASCII character. Unfortunately, I have no clue how to map the keys to keyboard input, but that shouldn't be a problem if you only need the ASCII code.
Just compile the program and pipe it through less.
Kevin
#----- BEGIN PROGRAM ----- #include
void main (void) { int ctr; for (ctr = 0; ctr <= 255; ctr++) { printf ("%3.0d - %s", ctr, &ctr); } } #----- END PROGRAM -----
From: Robert Alexander Stragies
hi all Does anybody know, where on my susesystem i could find a complete ASCII table? the background to this ques is: licq (which i installed yesterday, thanks for all the hints i got on the compile prob) has a config file in which you can set the caption that will appear on the system menu, and i would like to see the smiley on that button. i know there should be an ascii code for it , since i saw it on a windows sys.
Thanks, Alex
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
A little nitpick with your C program... On Thu, 28 Oct 1999 12:33:07 -0400, you wrote:
Just compile the program and pipe it through less.
Kevin
#----- BEGIN PROGRAM ----- #include
void main (void)
This is non-standard C, and I have no idea if GCC or ECGS will accept the above line. The ANSI C version is: int main() or int main(void) to use anything else is non-standard, and non-portable. See the C-FAQ for more details at: http://www.eskimo.com/~scs/C-faq/top.html
{ int ctr; for (ctr = 0; ctr <= 255; ctr++) { printf ("%3.0d - %s", ctr, &ctr); } } #----- END PROGRAM -----
Otherwise, I commend you on your little C program. It is one of the first C programs I ever wrote, and I still find it useful every once in a while. To do the same program in C++ try: using namespace std; int main(void) { for (ctr =0; ctr <=255; ctr++) { cout << "ASCii code " << ctr << "is" << (char) ctr << endl; } return 0; } Apologies for the mini-C standard discussion, it is one of my pet peeves, for whatever that is worth. Stuart -- Stuart Hall Cheshire, Connecticut, USA Linux User# 141732 -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
No problem. I understand that my C may leave a little to be desired. I haven't messed with it to much since a C class in college (about two and a half years ago). It does compile with gcc, but now that you've pointed it out, the mistake is rather obvious. As for C++, I definitely plan on learning it, but it seems that perhaps I should concentrate on refreshing my knowledge of C for now! Thanks! Kevin
From: Stuart Hall
A little nitpick with your C program...
#----- BEGIN PROGRAM ----- #include
void main (void)
This is non-standard C, and I have no idea if GCC or ECGS will accept the above line. The ANSI C version is:
int main()
or
int main(void)
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
At 02:03 PM 10/28/1999 -0400, Kevin Sandy wrote:
No problem. I understand that my C may leave a little to be desired. I haven't messed with it to much since a C class in college (about two and a half years ago). It does compile with gcc, but now that you've pointed it out, the mistake is rather obvious.
As for C++, I definitely plan on learning it, but it seems that perhaps I should concentrate on refreshing my knowledge of C for now!
And then there is Java <grin>
Thanks!
Kevin
From: Stuart Hall
A little nitpick with your C program...
#----- BEGIN PROGRAM ----- #include
void main (void)
This is non-standard C, and I have no idea if GCC or ECGS will accept the above line. The ANSI C version is:
int main()
or
int main(void)
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com
Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
On Thu, 28 Oct 1999, Stuart Hall wrote:
A little nitpick with your C program...
int main()
or
int main(void)
to use anything else is non-standard, and non-portable. See the C-FAQ for more details at: http://www.eskimo.com/~scs/C-faq/top.html
Turnabout is fair play. Shouldn't it be int main(int argc, char *argv[]) ? ------------------------------------------------------------------- DDDD David Kramer http://kramer.ne.mediaone.net DK KD In times of rapid changes, learners inherit the earth, DKK D while the learned find themselves beautifully equipped to DK KD deal with a world that no longer exists. DDDD --Eric Hoffer (Former Labor Boss) -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Hi! On 28-Oct-99 David Kramer wrote:
On Thu, 28 Oct 1999, Stuart Hall wrote:
A little nitpick with your C program...
int main()
or
int main(void)
to use anything else is non-standard, and non-portable. See the C-FAQ for more details at: http://www.eskimo.com/~scs/C-faq/top.html
Turnabout is fair play. Shouldn't it be int main(int argc, char *argv[]) ? only if you would want to use command line parameters, which in this case isn't necessary...
grtx,
JJ
----------------------------------
E-Mail: JJ Hendriksen
Alex, A plain "man ascii" should do it in any Linux/Unix box. Nitebirdz On Thu, 28 Oct 1999, Robert Alexander Stragies wrote:
hi all
Does anybody know, where on my susesystem i could find a complete ASCII table? the background to this ques is: licq (which i installed yesterday, thanks for all the hints i got on the compile prob) has a config file in which you can set the caption that will appear on the system menu, and i would like to see the smiley on that button. i know there should be an ascii code for it , since i saw it on a windows sys.
Thanks, Alex
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
+----- On Thu, 28 Oct 1999 18:17:09 +0200, Robert Alexander Stragies writes: | hi all | | Does anybody know, where on my susesystem i could find a complete | ASCII table? the background to this ques is: licq (which i | installed yesterday, thanks for all the hints i got on the compile | prob) has a config file in which you can set the caption that will | appear on the system menu, and i would like to see the smiley on | that button. i know there should be an ascii code for it , since i | saw it on a windows sys. A somewhat belated reply but my favorite is: xfd -fn fixed It gives you the character codes for any glyph that you can display. /Michael -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Hello, Robert! Forget it ;( Even if you find the smiley in your table (for normal dos/windows it has code #1 and inverted smile - #2), you won`t be able to display it under Linux without additional fonts installation, or smth. like that. I know only, that X fonts are not considered to have those symbols. Thanks, Egor. -----Original Message----- From: Michael Salmon [mailto:Michael.Salmon@uab.ericsson.se] Sent: Montag, 15. November 1999 14:04 To: suse-linux-e@suse.com; egm@csie.nsys.by Subject: Re: [SLE] smiley +----- On Thu, 28 Oct 1999 18:17:09 +0200, Robert Alexander Stragies writes: | hi all | | Does anybody know, where on my susesystem i could find a complete | ASCII table? the background to this ques is: licq (which i | installed yesterday, thanks for all the hints i got on the compile | prob) has a config file in which you can set the caption that will | appear on the system menu, and i would like to see the smiley on | that button. i know there should be an ascii code for it , since i | saw it on a windows sys. A somewhat belated reply but my favorite is: xfd -fn fixed It gives you the character codes for any glyph that you can display. /Michael -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/ -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (10)
-
david@kramer.ne.mediaone.net
-
egm@csie.nsys.by
-
fountai@hursley.ibm.com
-
jj-mail@eastsite.nl
-
Michael.Salmon@uab.ericsson.se
-
netadmin@surge.net
-
nitebirdz@uswest.net
-
rost0005@stud.uni-sb.de
-
samelash@ix.netcom.com
-
stuarthall@mailandnews.com