We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d37d0ce commit c50a2caCopy full SHA for c50a2ca
examples/*repl-prompt*.janet
@@ -0,0 +1,9 @@
1
+(var ncmd 0)
2
+
3
+(defn my-prompt
4
+ `Takes a single argument p, the parser, and returns a prompt string.`
5
+ [p]
6
+ (++ ncmd)
7
+ (string/format "[%d]> " ncmd))
8
9
+(setdyn :repl-prompt my-prompt)
0 commit comments