function equivalent to Spec 'curs' (from cenpiccurs)
function equivalent to Spec 'curs' (from cenpiccurs)
~ to draw a cursor allowing user to go to a particular point
-
doc -
tests
poke @valentin.valls
/segfs/bliss/source/spec/macros/graphical.mac
/segfs/bliss/source/spec/macros/cenpiccurs.mac
if (_key == "q"){
exit
}
else if (_key == "+"){
__i++
}
else if (_key == "-") {
__i--
}
else if (_key == "g"){
#__mystr = sprintf("umv " motor_mne(_m[0]) " " SCAN_D[__i][pl_x])
__mystr = "umv " motor_mne(_m[0]) " " SCAN_D[__i][pl_x]
print __mystr
eval(__mystr)
exit
}
else{
print "what ??"
}
Edited by Cyril Guilloud