mirror of
https://codeberg.org/scip/rpnc.git
synced 2025-12-16 20:11:02 +01:00
add screencast (#8)
This commit is contained in:
@@ -23,6 +23,9 @@ Features:
|
|||||||
- history
|
- history
|
||||||
- comments (comment character is `#`)
|
- comments (comment character is `#`)
|
||||||
|
|
||||||
|
## Demo
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
## Working principle
|
## Working principle
|
||||||
|
|
||||||
|
|||||||
7
demo/Makefile
Normal file
7
demo/Makefile
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
all:
|
||||||
|
asciinema rec --cols 80 --row 25 -c "env - PS1='> ' PATH=..:$PATH /bin/bash --norc --noprofile" --overwrite demo.cast
|
||||||
|
agg demo.cast demo.gif
|
||||||
|
|
||||||
3
demo/demo.cast
Normal file
3
demo/demo.cast
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{"version": 2, "width": 80, "height": 25, "timestamp": 1699358215, "env": {"SHELL": "/bin/bash", "TERM": "tmux-256color"}}
|
||||||
|
[0.005628, "o", "> "]
|
||||||
|
[0.941195, "o", "exit\r\n"]
|
||||||
BIN
demo/demo.gif
Normal file
BIN
demo/demo.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 613 KiB |
18
demo/sessions.txt
Normal file
18
demo/sessions.txt
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# demo sessions, used to create an interactive rpn recording
|
||||||
|
|
||||||
|
# part 1: interactive
|
||||||
|
|
||||||
|
# put some numbers onto the stack
|
||||||
|
2 4 6
|
||||||
|
8
|
||||||
|
10
|
||||||
|
|
||||||
|
# take a look at the stack
|
||||||
|
dump
|
||||||
|
|
||||||
|
# add the last 2
|
||||||
|
+
|
||||||
|
|
||||||
|
# multiply the result and the previous
|
||||||
|
*
|
||||||
|
|
||||||
Reference in New Issue
Block a user