[UP]


Manual Reference Pages  - update (3)

NAME

update(3f) - [M_escape] update internal dictionary given keyword and value (LICENSE:PD)

CONTENTS

Synopsis
Description
Options
Example
Author
License

SYNOPSIS

subroutine update(key,val)

   character(len=*),intent(in)           :: key
   character(len=*),intent(in),optional  :: val

DESCRIPTION

Update internal dictionary in M_escape(3fm) module.

OPTIONS

key name of keyword to add, replace, or delete from dictionary
val if present add or replace value associated with keyword. If not present remove keyword entry from dictionary.

EXAMPLE

Sample program

   program demo_update
   use M_escape, only : esc, update
      write(*,’(a)’) esc(’<clear>TEST CUSTOMIZED:’)
      ! add custom keywords
      call update(’blink’,char(27)//’[5m’)
      call update(’/blink’,char(27)//’[38m’)

write(*,’(a)’) esc(’<blink>Items for Friday</blink>’)

write(*,’(a)’,advance=’no’) esc(’<r>RED</r>,’) write(*,’(a)’,advance=’no’) esc(’<b>BLUE</b>,’) write(*,’(a)’,advance=’yes’) esc(’<g>GREEN</g>’)

! delete call update(’r’) call update(’/r’) ! replace call update(’b’,’<<<<’) call update(’/b’,’>>>>’) write(*,’(a)’,advance=’no’) esc(’<r>RED</r>,’) write(*,’(a)’,advance=’no’) esc(’<b>BLUE</b>,’) write(*,’(a)’,advance=’yes’) esc(’<g>GREEN</g>’)

end program demo_update

AUTHOR

John S. Urban, 2020

LICENSE

Public Domain


update (3) March 11, 2021
Generated by manServer 1.08 from fbb89e1f-df21-476d-948b-0650cec928ac using man macros.