When a user tries to print a string with 40 or more characters from the middle of the screen using:
loadn r1, $position(eval((40-int(defs["var_len"]))//2),0)
defs["var_len"] will be greater than 40, when this happens the first argument of $position(arg[0], arg[1]) is a negative value, and the screen can only print from 0 to 1199, so the user should be warned when $position(arg[0], arg[1]) returns a value outside this range.
Originally posted by @cirillom in #10 (comment)
When a user tries to print a string with 40 or more characters from the middle of the screen using:
defs["var_len"]will be greater than 40, when this happens the first argument of$position(arg[0], arg[1])is a negative value, and the screen can only print from 0 to 1199, so the user should be warned when$position(arg[0], arg[1])returns a value outside this range.Originally posted by @cirillom in #10 (comment)