April 22, 1987 RWBLIB Utility Library CVA*, CV*A - Integer/Floating <-> ASCII Conversions _____ ____ SPLINP - Single-character input ______ CURSAV, TWOCOL, _______ _______ ONELIN, CENTER - Cursor control routines _______ ______ MSGPRT - Message-typing routine ______ PARSE - Filespec parser _____ Written by: R. W. Barnard Sandia National Laboratories Minicomputer Software Division 7523 Albuquerque, NM 87185 These files have been substantially improved since they were previously submitted to the tape. They are written to be used with RT-11 FORTRAN-77. CVAI, CVAJ, CVIA, CVJA, CVAF, CVFA _____ _____ _____ _____ _____ ____ These routines convert ASCII strings into single-precision integers (CVAI), double-precision integers (CVAJ), or single- precision floating point (CVAF) numbers. The corresponding rou- tines CV*A convert numbers to ASCII strings. If the string has trailing blanks, the number gets properly right-justified. The routines have an optional error return when it is inappropriate to give a written error message. The routines will properly handle negative numbers or strings with leading - sign. The floating point routines convert a single-precision floating point number into an ASCII string (left-justified), or vice-versa. The string in these routines is a character vari- able, but it may be a byte string in the calling routine. Field formats of F (default), E or G can be specified. SPLINP ______ The subroutine SPLINP does single-character input. It can process single character entries from the keyboard and escape sequence inputs without the need of a carriage return. The char- acters may be echoed to the screen if desired. RWBLIB Page 2 CURSAV, TWOCOL, ONELIN, CENTER _______ _______ _______ ______ The subroutine CURSAV uses the VT-100 cursor position report to generate cursor position variables which can be saved and reused. This is different from SAVCUR and RESCUR because the values are saved in memory, not in the terminal. Subroutine TWOCOL positions the cursor at specified columns for output by the calling program. The row index is updated after every call, and is used to determine the output row. The routine can be called in either absolute or relative mode; the latter allows scrolling of the information within a scrolling region. Subroutine ONELIN allows a sequence of numbers to be output- ted following the same prompt line. Subroutine CENTER locates a string in the center of a screen (either 80 or 132 columns). The string can be either single- or double-width characters. MSGPRT ______ The subroutine MSGPRT will take a message string and print it, providing carriage returns before and after the string, as desired. It does not use the FORTRAN I/O services. A number can be appended to the MESSAG string. The message may be given spe- cial video attributes, such as bold or blink. PARSE _____ The subroutine PARSE routine takes a filespec and provides the portions not supplied by the input. Subsequent calls to PARSE can be used to generate new filespecs which differ from the orig- inal only in the extension.