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.
2 parents d37d0ce + 434f146 commit 8aecb34Copy full SHA for 8aecb34
examples/_42repl-prompt_42.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