$MORSE.REX: Difference between revisions
Content added Content deleted
m (→{{header|REXX}}: added a link to the LINESIZE.REX program.) |
m (added whitespace around links and references to links.) |
||
Line 1: | Line 1: | ||
The following is the '''$MORSE.REX''' (REXX) program. |
The following is the '''$MORSE.REX''' (REXX) program. |
||
<br>The help for the '''$MORSE.REX''' REXX program is included here ──► [[$MORSE.HEL]]. |
<br>The help for the '''$MORSE.REX''' REXX program is included here ──► [[$MORSE.HEL]]. |
||
<br><br>This program supports the ''International Morse code'' as well as the ''USA Morse code'' (the later being primarily used by the North American Railroads). |
<br><br>This program supports the ''International Morse code'' as well as the ''USA Morse code'' (the later being primarily used by the North American Railroads). |
||
<br>Some translation is done for unsupported characters such as braces '''{''' '''}''', brackets '''[''' ''']''' and the like. |
<br>Some translation is done for unsupported characters such as braces '''{''' '''}''', brackets '''[''' ''']''' and the like. |
||
Line 6: | Line 6: | ||
<br><br>This REXX programs only works for Regina and PC/REXX, but other REXXes (specifically R4) will only display the Morse code, but not sound it. |
<br><br>This REXX programs only works for Regina and PC/REXX, but other REXXes (specifically R4) will only display the Morse code, but not sound it. |
||
<br><br>The '''$MORSE.REX''' REXX program makes use of '''LINESIZE''' REXX program (or BIF) which is used to determine the screen width (or linesize) of the terminal (console). |
<br><br>The '''$MORSE.REX''' REXX program makes use of '''LINESIZE''' REXX program (or BIF) which is used to determine the screen width (or linesize) of the terminal (console). |
||
<br>The '''LINESIZE.REX''' REXX program is included here ──► [[LINESIZE.REX]]. |
<br>The '''LINESIZE.REX''' REXX program is included here ──► [[LINESIZE.REX]]. |
||
<br><br>The '''$MORSE.REX''' REXX program makes use of '''$T.REX''' REXX program which is used to display text and/or write the text to a file. |
<br><br>The '''$MORSE.REX''' REXX program makes use of '''$T.REX''' REXX program which is used to display text and/or write the text to a file. |
||
<br>The '''$T.REX''' REXX program is included here ──► [[$T.REX]]. |
<br>The '''$T.REX''' REXX program is included here ──► [[$T.REX]]. |
||
<br><br>The '''$MORSE.REX''' REXX program makes use of '''$ERR.REX''' REXX program which is used to display error messages (via '''$T.REX'''). |
<br><br>The '''$MORSE.REX''' REXX program makes use of '''$ERR.REX''' REXX program which is used to display error messages (via '''$T.REX'''). |
||
<br>The '''$ERR.REX ''' REXX program is included here ──► [[$ERR.REX]]. |
<br>The '''$ERR.REX ''' REXX program is included here ──► [[$ERR.REX]]. |
||
<br><br>The '''$MORSE.REX''' REXX program makes use of '''SOUND.REX''' REXX program which is used to express sound (via the internal speaker). |
<br><br>The '''$MORSE.REX''' REXX program makes use of '''SOUND.REX''' REXX program which is used to express sound (via the internal speaker). |
||
<br>The '''SOUND.REX''' REXX program is included here ──► [[SOUND.REX]]. |
<br>The '''SOUND.REX''' REXX program is included here ──► [[SOUND.REX]]. |
||
<br><br>Some older REXXes don't have a '''changestr''' BIF, so one is included here ──► [[CHANGESTR.REX]]. |
<br><br>Some older REXXes don't have a '''changestr''' BIF, so one is included here ──► [[CHANGESTR.REX]]. |
||
<lang rexx>/**/trace off; parse arg !; if !all(arg()) then exit |
<lang rexx>/**/trace off; parse arg !; if !all(arg()) then exit |
||
if !cms then address '' |
if !cms then address '' |