Code Monkey home page Code Monkey logo

networkededitor's Introduction

NetworkedEditor

A networked text editor

Key Combinations:

  • Ctrl+W: change windows
  • Ctrl+Q: exit the editor (without saving)
  • Ctrl+S: force a sync with the server (should not be required as this happens periodically anyways)
  • :w <filename> in the command window: save the file on the server
  • :wl <filename> in the command window: save the file locally
  • :e <filename> in the command window: load a file on the server
  • :cc in the command window: get the number of clients currently connected

Command Line Options:

  • -a: address to connect to (string)
  • -sp: port to connect to (string)
  • -p : port to start server on (string)
  • --server: start the server, even if the -a flag exists

If -a is set, a server is not launched, unless --server is also specified.

Example Usage

  • ./editor normal invocation
  • ./editor -a localhost connect to an already running server on this machine
  • ./editor -a 192.168.1.100 connect to a server running on the IP 192.168.1.100 using the default port

More Details

  • Compiling this editor requires g++ 4.9 or above due to the use of C++11 regex.
  • Compiling this editor requires ncurses to be installed.
  • To use the lockfree version, you must enable it at compile time:
    • make clean && make LOCKFREE=1
  • This uses ncurses default coloring system, so make sure your terminal supports colors to see the syntax highlighting
  • The default port is 29629, so make sure this isn't blocked

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.