Skip to content

MomoClubProg/tui-chat-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tui-chat-components

Simple chat components for the tui

Install

npm i tui-chat-components

Example

const { Chat } = require('tui-chat-components');

const chat = new Chat('MyUserName');

chat.addMessage('UserA', 'first message!');

chat.addPrompt(({ user, message }) => {
  // Send data to server
});

chat.addFooter(`\tESC - Command Mode\t\tDown Arrow - Insert Mode`);

chat.render();

Documentation for the Chat is accessible here

Documentation for the Form is accessible here

About

nodejs blessed bindings for tui chat interfaces, used by the chatbox client

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages