Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Toy code for currency handling Date: Wed, 06 Dec 2017 20:39:51 -0800 Organization: None to speak of Lines: 28 Message-ID: References: <3HQVB.175748$E01.77780@fx09.am4> <_u%VB.198174$pG.159657@fx18.am4> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="fae1ac5c9407cdfb1598afb8c33a9a20"; logging-data="5040"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+PtrDzae537jqvrXnJ1kt6" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:9M9B+EXPXifubls6+E3/cbTqTeE= sha1:wiuvKg0K6oD/g7ZuJm4btCgn3OQ= Xref: csiph.com comp.lang.c:123967 bartc writes: [...] > Slight change of subject, but out of interest, how did anybody ever > manage to code in C when using a terminal that only did upper case? If I recall correctly, the "stty xcase" command is supposed to map uppercase input to lowercase, while letting you precede a letter with a backslash if you need an actual uppercase letter. Since UNIX commands and C source tend to be mostly lowercase, it worked reasonably well. For example echo Hello World might look something like ECHO \HELLO \WORLD or perhaps echo \hello \world if your terminal can display lowercase letters but you can't enter them. This would have been in the days of line-oriented editors like "ed". A quick Google search and a brief experiment indicate that it probably doesn't work on modern systems. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"