Skip to content

Instantly share code, notes, and snippets.

@wilbeibi
Created December 3, 2013 18:44
Show Gist options
  • Save wilbeibi/7775113 to your computer and use it in GitHub Desktop.
Save wilbeibi/7775113 to your computer and use it in GitHub Desktop.
cli() ->
io:fwrite("Welcome to hash function.~n"),
{ok, [Cmd]} = io:fread("Enter a command:", "~s"),
{ok, [String]} = io:fread("Enter a String:", "~s"),
io:fwrite("Output: Command: ~s, String: ~s.~n", [Cmd, String]),
SecondThread = spawn(hello, op, []),
SecondThread ! {self(), [Cmd, String]},
'UI finished'.
@wilbeibi
Copy link
Author

wilbeibi commented Dec 3, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment