Skip to content

User should be warned when $position(arg[0], arg[1]) returns a value outside of the screen #11

Description

@cirillom

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions