🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Greg Franks Tue, 21 Oct 1986 21:05
Search terminator in MicroEMACS 3.7
#2176
Author: Greg Franks
Date: Tue, 21 Oct 1986 21:05
10 lines
967 bytes
Good Day!

Has anyone out in net land implemented the capability of mapping the
terminator (<esc>) in search and replace, and the control characters in
incremental search, in MicroEMACS 3.7? I have set up my terminal as a
vt220, so I am forced to type <ctrl-3> for <esc>.  I would rather define
it to something easier to type (like <function-11>).

Thanks in advance.
  Greg Franks
Re: Search terminator in MicroEMACS 3.7
#2182
Author: Paul Placeway
Date: Fri, 24 Oct 1986 20:12
23 lines
1404 bytes
In article <340@xios.UUCP> greg@xios.UUCP (Greg Franks) writes:
>Has anyone out in net land implemented the capability of mapping the
>terminator (<esc>) in search and replace, and the control characters in
>incremental search, in MicroEMACS 3.7? ...

Yes, it's quite easy, although in a strange place.  To change the things
in the file search.c, in the routine readpattern(), (in 3.7 NOT i, line 255)
change the line that reads:

<	s = mlreplyt(tpat, tpat, NPAT, 27);  /* Read pattern */

to:

>	s = mlreplyt(tpat, tpat, NPAT, '\n');  /* Read pattern (PWP: was 27) */


in iseach.c, change the #define for IS_QUIT to whatever you like
(0x1B is ESC).

			-- Paul Placeway
			   The Ohio State University CIS-CF
			   paul@ohio-state.arpa (CSNet & ARPA)
			   ...!cbosgd!osu-eddie!paul (UUCP)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads