DisplayPackageΒΆ
out.spad line 121 [edit on github]
DisplayPackage allows one to print strings in a nice manner, including highlighting substrings.
- bright: List String -> List String
bright(l)sets the font property of a list of strings,l, to bold-face type.
- center: (List String, Integer, String) -> List String
center(l, i, s)takes a list of stringsl, and centers them within a list of strings which isicharacters long, in which the remaining spaces are filled with strings composed of as many repetitions as possible of the last string parameters.
- center: (String, Integer, String) -> String
center(s, i, s)takes the first strings, and centers it within a string of lengthi, in which the other elements of the string are composed of as many replications as possible of the second indicated string,swhich must have a length greater than that of an empty string.
- copies: (Integer, String) -> String
copies(i, s)will take a stringsand create a new string composed oficopies ofs.
- newLine: () -> String
newLine()sends a new line command to output.