Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 16:59 19 Jan 2026 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 : Option Prompt

Author Message
kermess
Regular Member

Joined: 04/04/2013
Location: Spain
Posts: 46
Posted: 08:48am 18 Jan 2026
Copy link to clipboard 
Print this post

Good morning.
Is it possible to change the generic ">_" prompt to an alternative, for example, "AR_Motor >_" or "DEC_Motor >_"? This is simply to avoid confusion about which session you're in when you have multiple sessions open (Teraterm).
Un saludo.
David.
 
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8453
Posted: 09:26am 18 Jan 2026
Copy link to clipboard 
Print this post

I don't think that's possible.
If you have multiple sessions in Windows you could put them on different desktops and switch them using Ctrl-Win-arrow. With different desktop pictures/colours it would be easy to know where you are. :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10868
Posted: 10:02am 18 Jan 2026
Copy link to clipboard 
Print this post

Put this in the library
Sub mm.prompt
Print "Myprompt >";
End Sub
 
ville56
Guru

Joined: 08/06/2022
Location: Austria
Posts: 376
Posted: 10:12am 18 Jan 2026
Copy link to clipboard 
Print this post

Same here, I'm using OPTION PLATFORM to set where I am. OPTION LIST reveals it then.
                                                                 
73 de OE1HGA, Gerald
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2940
Posted: 10:17am 18 Jan 2026
Copy link to clipboard 
Print this post

Manual page 23 expands Peters answer.
  Quote  MM.PROMPT
If a subroutine with this name exists it will be automatically executed by MMBasic instead of displaying the command prompt. This can be used to display a custom prompt, set colours, define variables, etc all of which will be active at the command prompt.
Note that MMBasic will clear all variables and I/O pin settings when a program is run so anything set in this subroutine will only be valid for commands typed at the command prompt (i.e. in immediate mode).
As an example the following will display a custom prompt:
SUB MM.PROMPT
PRINT TIME$ "> ";
END SUB
Note that while constants can be defined, they will not be visible because a constant defined inside a subroutine is local to a subroutine. However, DIM will create variables that are global that that should be used instead.

Edited 2026-01-18 20:19 by phil99
 
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 2026