Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
£ (UK Pound) symbol
#1
Tip of the day:

Clearly, a US keyboard doesn't have this £ thing. I have no idea if it's on a spanish or austrian one. I doubt it. So, just in case you need it, with a default US character set, the ` (back quote) seems to do the same job in compiled code.

Chances are I'm the only person that's relevant to. But hey I'm sharing anyway. Hush.
Reply
#2
britlion Wrote:Tip of the day:

Clearly, a US keyboard doesn't have this £ thing. I have no idea if it's on a spanish or austrian one. I doubt it. So, just in case you need it, with a default US character set, the ` (back quote) seems to do the same job in compiled code.

Chances are I'm the only person that's relevant to. But hey I'm sharing anyway. Hush.

thanks, britlion. :-) The compiler just convert source strings to bytes, so bquote maps on pound symbol. However there is some support for Spectrum special chars ala Basin e.g. \c maps to copyright symbol
Reply
#3
It does?

That's a new one on me.

Basin does allow \` as a pound symbol, apparently. And \\ as a backslash, and \@ as an @ (what's wrong with using "@" to represent "@", I have to wonder!?)

A handy thing is \a for a graphic A. I think ZX Basic follows that convention, yes?

It also allows \#nnn (where nnn is 000 to 255).

But \c is new on me. That's excellent news.
Reply
#4
There is no such thing like austrian Keyboard. We in austria are damned to use the german keyboards :wink: And there is no Pound sign on them. But I knew about the possibility to use control chars as boriel described. He wrote about them in one of the "Whats new" threads after releasing a new version of ZXBC... I even added a UDG/control char/colour control codes "typewriter" for the IDE I'm working on.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply
#5
I've been trying to make sure the wiki is reasonably up to date on information that Boriel posts (notice it lists load and save as reserved words, for example).

Documentation is /hard/ !
Reply
#6
Well... Please check version history of all announced versions in this forum for tracking all additions.
britlion Wrote:Documentation is /hard/ !
Absolutly true...
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply
#7
Just completed BorIDEs ASCII Table and testet it. \c does not put a copyright sign, but UDG C, as expected. Anyway, I hardcoded copyright symbol as CHR(127) into the editor. I wonder how it was done in BasIN
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply
#8
Did we ever track down the © symbol code?

Clearly \c is a graphics C.
Reply
#9
britlion Wrote:Did we ever track down the © symbol code?

Clearly \c is a graphics C.
If I recall correctly, Copyright symbol is \* as in BASIN. Not sure if this is already documented in the wiki (Graphics symbol and PRINT).
Reply
#10
boriel Wrote:If I recall correctly, Copyright symbol is \* as in BASIN. Not sure if this is already documented in the wiki (Graphics symbol and PRINT).

I just tweaked the Syntax page to list it with the block graphics characters. Thanks!

(Incidentally, the BASin help file doesn't list \* )
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)