Print a prompt, Computer Engineering

When your shell is waiting for input from the user, it should first print a prompt. The prompt should consist of the current working directory followed by the _>_ character. Here is an example of the prompt:

/home/ p r o j e c t s / cs200 / spring13 / s h e l l >

After a user performs a command, the prompt should be printed again on a new line. If the user changes the current working directory, your prompt should show the change. I would recommend using the printf() function from stdio.h for printing the prompt.

Posted Date: 4/3/2013 2:54:20 AM | Location : United States







Related Discussions:- Print a prompt, Assignment Help, Ask Question on Print a prompt, Get Answer, Expert's Help, Print a prompt Discussions

Write discussion on Print a prompt
Your posts are moderated
Related Questions
a. Determine the non-functional system requirements that might be chosen for an application for a particular style and structures? b. Write the benefits of broadcast model appro

Throughput of a system is? Ans. "Throughput" of a system is no. of programs processed by this per unit time.

Customized User Preferences offer tremendous versatility to your individual Bugzilla experience. Let's plunge into what you can do! The first step is to click the "Edit prefs" link

a. Determine any three restrictions that apply to class members. b. Is it possible for single class to be a friend of another class? Illustrate this using a suitable C++ program

Why SRAM are said to be volatile? Because their contents are lost when power is interrupted. So SRAM are said to be volatile.

Vector-Memory Instructions : When vector operations with memory M are executed then these are vector-memory instructions. These instructions are denoted with the many function mapp

What is 1 00 line exchange with one two-motion selector per subscriber. Design: In, Strowger switching system is designed by using one two-motion selector for all subscrib

Your company is planning a party for employees, and you have been asked to set up a spreadsheet to track the attendees and to measure the associated cost. Every employee is permitt

How will you reuse a plan? Reuse is an benefit of OO technology. Two aspects of reuse: Using existing things and making reusable new things It is simpler to reus

What is a binary tree? A binary tree 'T' is described as A finite set of elements, known as nodes, such that: either (i) or (ii) happens: (i) T is empty (known as the 'nu