Welcome to my Code Snippets

MyCodeSnippets.Space

Console Prompt Customization

ReAdABLE Source (What is the ReAdABLE Human Format?)

http://mycodesnippets.space/redlang/console-prompt.red

Demo

Type in red-lang console:

do read http://mycodesnippets.space/redlang/src/console-prompt.red

https://i.imgur.com/UwpyYEs.png

https://i.imgur.com/dP1AGMH.png

https://i.imgur.com/f45frTN.png

Code Snippet

https://i.imgur.com/VSMS0ax.png


system/console/prompt: does [

    now-time: now/time
    either ((now-time > 12:00) and (now-time < 14:00)) [
        rejoin [now-time " Lunch Time!!! >> "]
    ][
        rejoin [to-local-file system/options/path " > " now-time " >> "]
    ]
]