new feat to markslider: autoexec
This commit is contained in:
@@ -109,6 +109,7 @@ do
|
||||
LINES=$( tput lines )
|
||||
[ "$cmd" = "e" ] && read -N 1 foo
|
||||
display_slide "$1" $i
|
||||
|
||||
# save cursor location
|
||||
echo -ne "${E}s"
|
||||
# ask for user input
|
||||
@@ -121,6 +122,7 @@ do
|
||||
echo -ne "${E}1B${E}3Dq:x"
|
||||
echo -ne "${E}1B${E}3Dm:▲${E}4A"
|
||||
}
|
||||
[[ -z "$MARKSLIDER_AUTOEXEC" ]] || slide_exec "$1" $i
|
||||
read -s -N 1 cmd
|
||||
# Escape inputed if arrow keys used
|
||||
[ "$cmd" = "" ] && read -s -N 2 cmd
|
||||
@@ -244,6 +246,9 @@ $( gnuplot -e "set term dumb 60 15 enhanced; set parametric; set trange [0:10*pi
|
||||
&( xeyes )
|
||||
$( ls )
|
||||
[s$( echo You can hide commands too... )[1K[uHidden command
|
||||
* Commands are auto-run, if MARKSLIDER_AUTOEXEC=true
|
||||
${H}${R}NOTE: This setting is potentially dangerous, don't view anyones
|
||||
presentations but yours with the setting!${Z}
|
||||
|
||||
# Hints: Other tools
|
||||
|
||||
|
||||
Reference in New Issue
Block a user