Search found 16 matches

by UKenGB
Fri Feb 23, 2018 1:20 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: carriage return
Replies: 34
Views: 18499

Re: carriage return

I can only explain why it is why it is. I believe you underestimate the scope of impact on backward compatibility It would break almost all existing scripts in an ugly way. I dropped the use of "return" as a constant the moment I moved to MetaCard, reserving it's use strictly for functions. I use C...
by UKenGB
Wed Feb 21, 2018 8:18 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: carriage return
Replies: 34
Views: 18499

Re: carriage return

I do understand the difficulties involved here, but, and it's a big but, that's what 'return' is for. It is the non platform specific line ending that allows any app using that code to work on different platforms. I applaud that. But, CR and LF are the very opposite of that. They indicate an exact c...
by UKenGB
Wed Feb 21, 2018 6:20 pm
Forum: CGIs and the Server
Topic: How to Instal LiveCode Server on OS X Server
Replies: 3
Views: 6729

Re: How to Instal LiveCode Server on OS X Server

I'm sure others have figured this out by now, but I've not seen it written up, so this is how I did it on MacOS 10.13 High Sierra:- First of all, MacOS Server keeps all this stuff in /Library/Server/Web so that's where to start looking. Then, I didn't want to use .htaccess file(s), nor did I want to...
by UKenGB
Wed Feb 21, 2018 4:20 pm
Forum: CGIs and the Server
Topic: LiveCode scripting
Replies: 0
Views: 3246

LiveCode scripting

This came about when installing and figuring out LiveCode Server for CGI use. I read an install guide that suggested trying a basic file from the command line just to check it was working. The file would contain the LC code within <?lc and ?> tags. Having figured out how to get line endings that wor...
by UKenGB
Wed Feb 21, 2018 10:21 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: carriage return
Replies: 34
Views: 18499

Re: carriage return

Unfortunately there is probably way too much inertia to make CR and LF actually mean what they say... internally everything is LF and converted upon output to the local standard except for MacOS X (where it still uses CR). I’ve asked about changing that for Mac but there is a concern about things b...
by UKenGB
Tue Feb 20, 2018 9:42 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: carriage return
Replies: 34
Views: 18499

Re: carriage return

I think I can see what's going on. As this is the Mac version of LiveCode Server it is translating all lineend/feeds into the ASCII 13 character which is normally used by the Mac. But Terminal and less are unix environments and expect ASCII 10. This mucks up Terminal display and I just get to see th...
by UKenGB
Tue Feb 20, 2018 9:28 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: carriage return
Replies: 34
Views: 18499

Re: carriage return

Ok, I tried piping the output to less and I can now see that it IS outputting all the text, but there's a ^M showing where I try to put return or CR or LF. If the output is sent to the terminal, it simply doesn't display anything before that character. So the problem appears to be that any of the ab...
by UKenGB
Tue Feb 20, 2018 9:18 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: carriage return
Replies: 34
Views: 18499

Re: carriage return

Outputting line endings to stdout is a a common necessity, one which has worked reliably here in all versions of LC I've ever used up through v9dp11. If the script Klaus posts isn't working, we'll have to figure out why it doesn't work there but works here and for Klaus. Which OS version are you us...
by UKenGB
Tue Feb 20, 2018 9:10 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: carriage return
Replies: 34
Views: 18499

Re: carriage return

Whoah, that's a bit worrying that something so simple is a problem like this. Not a good intro to LiveCode. Certainly the problem exists with both 8.1.9 and 9.0.0. I'll try with a variable. <?lc put "Hello World!" && the date && the time & return into myVariable put myVariable ?> Same problem, no ou...
by UKenGB
Tue Feb 20, 2018 8:37 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: carriage return
Replies: 34
Views: 18499

Re: carriage return

No. I tried CR and simply return, which is the same thing, but if at the end of that line, when run there's no output at all which doesn't make any sense. I tried putting it in the middle (I forget exactly where) and it output "urn", so it really does look like it's messing up. Since this seems so m...
by UKenGB
Tue Feb 20, 2018 7:23 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: carriage return
Replies: 34
Views: 18499

Re: carriage return

HTML markup would only work if running this script in a browser. Running it from the command line is different. It just outputs the text as specified (-: except for a carriage return). If I use any HTML tags, it simply outputs those exact strings, so if I include a <br> or even <br />, that's what I...
by UKenGB
Tue Feb 20, 2018 11:36 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: carriage return
Replies: 34
Views: 18499

carriage return

I'm sorry this is so basic, but it's got me foxed. I'm actually setting up LiveCode Server, but first testing it on the command line with a simple test script:- <?lc put "Hello World!" && the date && the time ?> This works, but I want to output a carriage return at the end and I've not been able to ...
by UKenGB
Tue Dec 15, 2015 3:35 pm
Forum: Multimedia
Topic: Play Audio
Replies: 8
Views: 6372

Re: Play Audio

What about TV-OS? No support for TV, at least not yet. I don't know if there are plans for it. I see that as quite a big thing, to complete what LiveCode offers. Well, that and WatchOS I guess. But they're both just variations of iOS are they not, so I wouldn't have thought it would take too much e...
by UKenGB
Mon Dec 14, 2015 3:42 pm
Forum: Multimedia
Topic: Play Audio
Replies: 8
Views: 6372

Re: Play Audio

I rather had the impression that the player controls being referred to were external modules of some sort. If it just means LiveCode's available controls, then I understand. Like I said, early days yet. Only been playing with it for a couple of days, so plenty yet to learn. Looks like I'll end up ne...
by UKenGB
Fri Dec 11, 2015 10:04 am
Forum: Multimedia
Topic: Play Audio
Replies: 8
Views: 6372

Re: Play Audio

Hi UKenGB, 1. welcome to the forum! :D What I have read indicates this might be a problem for LiveCode. 2. Where and what did you read? Klaus I was searching the forums for '"audio" I think and saw several posts that indicated a problem. One I think said 'controls' were not available for mobile. I'...

Go to advanced search