Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Part II. Chat Phase 1: GUI You are asked to implementa program that allows you to chat with people over the network like the instant
Part II. Chat Phase 1: GUI You are asked to implementa program that allows you to chat with people over the network like the instant messaging. In this part, we are concerned about the screen control only. We will use the curses library to achieve our goal. First of all, your program must ask for user name and password ("xyz"). When the password is typed in, the echo must be turn off and a s shown at the next position on the screen. Thereafter, you should split the screen into two windows, the output window occupies the top part and the input window the bottom part. You can assume the screen is 24 rows and 80 columns. Your program should keep receiving input (line by line, allows the Window to scroll from the input window and print each line, preceded by the use r name, to the output window (again, allows the window to scroll). Your program should terminate l when the string "exit" is typed In order to use the curses library, you must link it when you compile your project. The following is a sample gcc -o proj proj. c-lcurses
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started