Re: Searching the Forth Dictionary

Liste des GroupesRevenir à cl forth 
Sujet : Re: Searching the Forth Dictionary
De : albert (at) *nospam* spenarnc.xs4all.nl
Groupes : comp.lang.forth
Date : 01. Jan 2025, 15:48:15
Autres entêtes
Organisation : KPN B.V.
Message-ID : <nnd$50f9fc21$209434dd@dbc233185a827d16>
References : 1 2 3 4
User-Agent : trn 4.0-test77 (Sep 1, 2010)
In article <20241231192509.3f7fa2025df5fcfc08c50feb@gmail.com>,
Sidney Reilley  <sidney.reilley.ii@gmail.com> wrote:
On Wed, 1 Jan 2025 13:10:02 +1100
dxf <dxforth@gmail.com> wrote:
>
On 1/01/2025 12:52 pm, Sidney Reilley wrote:
On Wed, 1 Jan 2025 12:31:46 +1100
dxf <dxforth@gmail.com> wrote:
>
According to the pforth docs it
has:
>
  WORDS.LIKE <name>
>
Many thanks! I installed pforth by cloning its from githup
repo. No docs in there. Where did you find the docs please?
TIA ..
>
https://www.softsynth.com/pforth/pf_ref.php
>
The source file is here:
>
https://github.com/philburk/pforth/blob/master/fth/wordslik.fth
>
Don't know if automatically included or whether you need to do it
yourself.
>
Got it - thx! I need to get used to "the lay of the land" so to
speak. Anyway, pforth does not have an `edit' word built in. I
like the way swiftforth launches your default editor when calling
`edit <filename>' ! Thx again ...

I find it decreasingly useful to be able to do that.
My editor edits multiple files at the same time with
blindly fast switches. With a built in command to save one file,
that you are working on, it is way more convenient to start the
editor in a separate window.

Suppose you do
  rlwrap myforth
  ...
rlwrap adds logging and command history and line editing to myforth.

My editor interprets ^C as 8 lines down. Before the ^C gets
to the editor, it is interpreted by rlwrap and it terminates
the whole shebang. Unpleasant things may happen with ^S ^Q ^D too.

I have a defining word OS-IMPORT for the situation that you
would run a command from the operating system:

"TYPE   "   OS-IMPORT cat
"ECHO   "   OS-IMPORT echo
"MORE<  "   OS-IMPORT more
\ "LIST  "   OS-IMPORT more
"DIR    "   OS-IMPORT ls
"COPY   "   OS-IMPORT cp
"DEL    "   OS-IMPORT rm
"EDIT   "   OS-IMPORT ed
"ee     "   OS-IMPORT ee  \ My favorite editor
""          OS-IMPORT !!

Note that this is for windows, to behave like unix commands.

Duke
** Bottom-posting, text-only is the netiquette way! **

Groetjes Albert
--
Temu exploits Christians: (Disclaimer, only 10 apostles)
Last Supper Acrylic Suncatcher - 15Cm Round Stained Glass- Style Wall
Art For Home, Office And Garden Decor - Perfect For Windows, Bars,
And Gifts For Friends Family And Colleagues.

Date Sujet#  Auteur
1 Jan 25 * Searching the Forth Dictionary8Sidney Reilley
1 Jan 25 +* Re: Searching the Forth Dictionary6dxf
1 Jan 25 i`* Re: Searching the Forth Dictionary5Sidney Reilley
1 Jan 25 i +* Re: Searching the Forth Dictionary3dxf
1 Jan 25 i i`* Re: Searching the Forth Dictionary2Sidney Reilley
1 Jan 25 i i `- Re: Searching the Forth Dictionary1albert
1 Jan 25 i `- Re: Searching the Forth Dictionary1albert
1 Jan 25 `- Re: Searching the Forth Dictionary1albert

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal