visible(3f) - [M_strings:NONALPHA] expand a string to control and meta-control representations (LICENSE:PD)
Synopsis
Description
Examples
Bugs
Author
License
function visible(input) result(output)
character(len=*),intent(in) :: input character(len=:),allocatable :: output
visible(3f) expands characters to commonly used sequences used to represent the characters as control sequences or meta-control sequences.
Sample Program:
program demo_visible use M_strings, only : visible integer :: i do i=0,255 write(*,(i0,1x,a))i,visible(char(i)) enddo end program demo_visible
The expansion is not reversible, as input sequences such as "M-" or "^a" will look like expanded sequences.
John S. Urban
Public Domain
Nemo Release 3.1 | visible (3m_strings) | January 10, 2025 |