8000 GitHub - spencerolson/chat: terminal based chat app demoing OTP 28's "raw mode"
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

spencerolson/chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat

To start the application, run

$ cd chat/
$ mix run -e Chat.start

Alernatively, the project can be installed and run as an escript:

$ mix escript.install github spencerolson/chat
$ chat

Once started, type help to see all options.

Try running the application in multiple terminal windows, or even on multiple machines within the same network!

Demo

What is this?

A terminal-based chat app that demos the "raw mode" coming to OTP 28. Thanks to @zachallaun for the awesome writeup. He sums it up best:

If you’re unfamiliar with raw mode, the gist of it is that it allows terminals to read input without waiting for a newline, allowing for much more responsive terminal UIs.

Note that you need to have OTP 28 installed locally, or else "raw mode" won't be available and the app won't work as expected. For the asdf version manager, I installed and activated it via:

$ asdf install erlang ref:master
$ asdf global erlang ref:master

TODO

  • Decide if i should be using multi_call instead of abcast for message broadcast

About

terminal based chat app demoing OTP 28's "raw mode"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0