Lugaru's Epsilon
Programmer's
Editor

Context:
Epsilon User's Manual and Reference
   Commands by Topic
      . . .
      The Screen
         Display Commands
         Horizontal Scrolling
         Windows
         . . .
         The Bell
      Buffers and Files
         . . .
         Files
         File Variables
         Internet Support
            Secure Shell and SCP Support
            URL Syntax
         Unicode Features
         Printing
         . . .
      Starting and Stopping Epsilon
         Session Files
         File Associations
         Sending Files to a Prior Instance
         MS-Windows Integration Features
      . . .

Previous   Up    Next
Vi/Vim File Variables  Commands by Topic   Secure Shell and SCP Support


Epsilon User's Manual and Reference > Commands by Topic > Buffers and Files >

Internet Support

Epsilon for Windows or Unix has several commands and facilities that make it easy for you to edit files on other computers using the Internet.

The find-file and dired commands, as well as a few others, understand Internet URLs. If you provide the URL ftp://user@example.com/myfile.c to a file-reading command like find-file, Epsilon will engage in an FTP interaction to download the file and display it in a buffer. All of the Internet activity happens in the background, so you don't have to wait for the file to download before continuing with your work. In fact, the file appears in the buffer as it downloads (syntax highlighted if appropriate), so you can be editing the beginning of a large file while the rest of it downloads.

Saving a file in such a buffer, or writing a buffer to a file name that starts with ftp://, will cause Epsilon to send the file to the remote computer. Upload and download status is indicated in the mode line, and there's also a show-connections command (on Ctrl-Alt-C) that shows the status of all Internet activities and buffers. As in bufed, you can select a buffer and press <Enter> to switch to it, or press <Escape> to remain in the current buffer. Use the kill-process command to cancel an FTP transfer or Telnet session (see below) in progress in the current buffer.

FTP and SCP URLs (the latter described in the next section) work with dired also, so if you do a dired (or a find-file) on ftp://user@example.com, you'll get a directory listing of the files on the remote machine example.com, in a familiar dired context. Dired knows how to delete and rename remote files, and sort by size, date, file name or extension. To make Epsilon work with certain host computers (systems running VMS, for example), you may need to set the variables ftp-ascii-transfers or ftp-compatible-dirs; see the descriptions of those variables in the online help. Other systems may require you to set the variable ftp-passive-transfers.

The telnet command lets you connect to a command shell on a remote computer. It puts you in a buffer that works much like the Epsilon process buffer, except the commands you type are executed on the remote machine. Provide a numeric prefix argument and telnet will connect on the specified port instead of the default port. Or use the syntax hostname:port for the host name to specify a different port. You can either use the telnet command directly, or specify a telnet: URL to find-file. (Epsilon ignores any username or password included in the URL.) Also see the ssh command described in the next section. Typing Ctrl-C Ctrl-C in telnet or ssh buffers sends an interrupt signal to the remote system, aborting the current program.

In a telnet or ssh buffer, the telnet-interpret-output variable controls whether Epsilon interprets certain ANSI color-setting escape sequences and similar things. Epsilon also looks for password requests from the remote system, using the recognize-password-pattern variable, so it can hide the password as you type it. Also see the recognize-password-prompt variable, and the send-invisible command.

Normally Epsilon doesn't send a line in a telnet buffer until you press <Enter>. Type Ctrl-U <Enter> to send a partial line immediately.

As in a concurrent process buffer, you can press Alt-P or Alt-N to access a telnet buffer's command history. With a numeric prefix argument, these keys show a menu of all previous commands. You can select one to repeat.

If you specify an http: URL to find-file (for example, http://www.lugaru.com), Epsilon will use the HTTP protocol to retrieve the HTML code from the given location. The HTML code will appear in an appropriately named buffer, syntax highlighted. Header information for the URL will be appended to a buffer named "HTTP Headers".

You can tell Epsilon to send its requests by way of a proxy by setting the variables http-proxy-server, http-proxy-port, and http-proxy-exceptions. You can tell Epsilon to identify itself to the server as a different program by setting http-user-agent, or set http-force-headers to entirely replace Epsilon's HTTP request with another, or to add other headers. The http-log-request variable makes Epsilon copy the entire request it sends to the HTTP Headers buffer.

The Alt-E and Alt-<Down> keys in find-file come in handy when you want to follow links in an HTML buffer; see Command History for information on Alt-E and Completion & Defaults for information on Alt-<Down>. Also see the find-linked-file command on Ctrl-X Ctrl-L.

The command view-web-site on Shift-F8 searches for the next URL in the buffer. It prompts with that URL, and after you modify it if necessary, it then launches an external browser on the URL. The view-lugaru-web-site command launches a browser and points it to Lugaru's web site. Epsilon for Unix uses a shell script named goto_url to run a browser. See Web-based Epsilon Documentation. Epsilon for Windows uses the system's default browser.

The finger command prompts for a string like "user@example.com", then uses the finger protocol to query the given machine for information about the given user. The output appears in an appropriately named buffer.

If you run a compiler via telnet or a similar process in an Epsilon buffer, you can set up the next-error command on Ctrl-X Ctrl-N so that when it parses a file name in an error message, it translates it into a URL-style file name that Epsilon can use to access the file. To do this, you'll need to write your own telnet_error_converter() subroutine in EEL. See the sample one in the Epsilon source file epsnet.e for details.

Standard bindings:

  Ctrl-Alt-C  show-connections
 Telnet mode only: Alt-n  process-next-cmd
 Telnet mode only: Alt-p  process-previous-cmd
   telnet
   telnet-mode
   finger
   view-web-site
   view-lugaru-web-site
 

Subtopics:

Secure Shell and SCP Support
URL Syntax



Previous   Up    Next
Vi/Vim File Variables  Commands by Topic   Secure Shell and SCP Support


Lugaru Copyright (C) 1984, 2012 Lugaru Software Ltd. All Rights Reserved.