Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:30 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : CMM2: Extend file read/write functions to work with terminal in/out ?

Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 12:51pm 20 Aug 2020
Copy link to clipboard 
Print this post

Would it be a good idea / possible to have LINE INPUT #nbr, PRINT #nbr and all their friends work with #nbr = 0 meaning read / write from the terminal ? i.e. the same as vanilla LINE INPUT and PRINT.

This would be convenient and avoid an IF statement or two when writing programs where reading/writing both to files or the terminal are valid.

Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 01:01pm 20 Aug 2020
Copy link to clipboard 
Print this post

Have you tried it?
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 01:08pm 20 Aug 2020
Copy link to clipboard 
Print this post

  matherp said  Have you tried it?


Obviously not or I would have found out it already works    

Proof, if it were needed, that I spend too much time on the forum and not enough time on the CMM2 ... or my day job for that matter.

Cheers,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025